Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

Perf Plugin error/bug report

Discuss anything to do with plugins

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
Bartender
Posts: 2
Joined: June 7th, 2010, 6:37 pm

Perf Plugin error/bug report

Post by Bartender »

Hi guys,

first of all, I've read all documentation available on this one. Here's the problem:

$dll(perf,4,5,\System\Processes)
$dll(perf,4,5,\Paging File(_Total)\% Usage)
$dll(perf,4,5,\Network Interface(Atheros L1 Gigabit Ethernet 10_100_1000Base-T Controller)\Current Bandwidth)
$dll(perf,4,5,\Network Interface(Atheros L1 Gigabit Ethernet 10_100_1000Base-T Controller)\Packets Received Unknown)

...are all working fine. However:

$dll(perf,4,5,\Network Interface(Atheros L1 Gigabit Ethernet 10_100_1000Base-T Controller)\Bytes Received/sec)

...is NOT working, I'm getting the "[Bad counter]" error message.

Also, when I change the "Bytes Received/sec" to "Bytes Received\sec" or anything else, I get a slightly different error message: "[Bad Counter]" (with capital C), so the Perf Plugin is in some way detecting the parameter.

The parameters are copied directly from a Performance Monitor export file, so there are not misspellings here. Actually, from what I can see, no values with a forward slash is working. And - all without a forward slash are working.

I'm using the latest versions of Perf Plugin, LCD Smartie and Windows 7.

Any workaround or other solutions out there?

Really appreciate all input on this one.
mattcro
Forum Supporter
Posts: 590
Joined: March 8th, 2006, 1:58 pm
Location: Scotland

Re: Perf Plugin error/bug report

Post by mattcro »

Hi Bartender - saw your PM and tried the same thing on my setup.

Code: Select all

$dll(perf,4,5,\Network Interface(ASUS 802.11g Network Adapter - Packet Scheduler Miniport)\Bytes Received/sec)
The above works fine for me, giving sensible values with no errors. Perf also works for me with other counters that have a forward slash (other networking counters with "/sec" etc). I assume the counters you mentioned in your post work in PerfMonitor?

I've got Smartie 5.4.1 beta (internal version 5.4.1.7, from http://forums.lcdsmartie.org/viewtopic. ... 45&p=16493 ) and perf.dll v1.0 (internal version 0.0.0.5 from http://forums.lcdsmartie.org/viewtopic.php?f=8&t=1134 ) on WinXP 32bit. I don't know if the versions are significant. I wonder if there's some issue with perf (or even Smartie) and new versions of Windows (ie 7) and .NET frameworks... I don't have a newer machine to test on.

I wonder if anyone else has come across this issue?
Bartender
Posts: 2
Joined: June 7th, 2010, 6:37 pm

Re: Perf Plugin error/bug report

Post by Bartender »

mattcro,

thanks for your feedback. To be absolutely sure, I downloaded the latest versions from the links you mentioned - but unfortunately there's no difference.

I can add that this also applies to the software adapter:

Code: Select all

$dll(perf,4,5,\Network Interface(Local Area Connection*)\Bytes Received/sec)
...isn't working, while:

Code: Select all

$dll(perf,4,5,\Network Interface(Local Area Connection*)\Current Bandwidth)
...is.

And yes, the counters do all work fine in the Windows Performance Monitor.
caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Re: Perf Plugin error/bug report

Post by caesar »

I suspect it has something to do with the locale settings, [.] vs [,] thing. I can't see any other reason if they show up fine in Performance Monitor
Post Reply