Hi all,
On a Windows XP machine, I installed Net-Snmp 5.3.1-1
package, and created a snmpd.conf file like that :
rocommunity public localhost
rocommunity public 172.16.16.0/24
proc putty.exe
proc firefox.exe
The SNMP Windows agent is stopped, and the Net-Snmp
service is started. When I call the agent to get my
informations, I have that :
snmpwalk -c public -v 2c 172.16.16.75 .1.3.6.1.4.1.2021.2.1
UCD-SNMP-MIB::prIndex.1 = INTEGER: 1
UCD-SNMP-MIB::prIndex.2 = INTEGER: 2
UCD-SNMP-MIB::prNames.1 = STRING: putty.exe
UCD-SNMP-MIB::prNames.2 = STRING: firefox.exe
UCD-SNMP-MIB::prMin.1 = INTEGER: 0
UCD-SNMP-MIB::prMin.2 = INTEGER: 0
UCD-SNMP-MIB::prMax.1 = INTEGER: 0
UCD-SNMP-MIB::prMax.2 = INTEGER: 0
UCD-SNMP-MIB::prCount.1 = INTEGER: -1
UCD-SNMP-MIB::prCount.2 = INTEGER: -1
UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: 0
UCD-SNMP-MIB::prErrorFlag.2 = INTEGER: 0
UCD-SNMP-MIB::prErrMessage.1 = STRING:
UCD-SNMP-MIB::prErrMessage.2 = STRING:
UCD-SNMP-MIB::prErrFix.1 = INTEGER: 0
UCD-SNMP-MIB::prErrFix.2 = INTEGER: 0
UCD-SNMP-MIB::prErrFixCmd.1 = STRING:
UCD-SNMP-MIB::prErrFixCmd.2 = STRING:
As you can see, my prCount values are -1... And with 0,
1, 2 or 10000 putty lanched on the Windows XP machine,
I have the same result...
I searched on the web about my problem, but I did'nt
find something intersting...
Tanks you for your help
Best regards
Fred.
Logged In: YES
user_id=88893
Originator: NO
The code for detecting/counting running processes is currently
very Unix-centric (with a fallback method of executing "ps"
and searching the output). It doesn't work under Windows.
Suggestions of an appropriate sh_count_procs() routine
gratefully received.