Problem with the "proc" directive

CHAUCHON Frédéric <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I want to monitor futhers machines from a Linux machine. I have 2 machines to watch, a Linux and a Windows XP...
Under the Linux machine, I have no problem to get the prCount of some processes. My snmpd.conf file is like that :
rocommunity public localhost
rocommunity public 172.16.16.0/24
proc  heartbeat 0 4
proc  httpd2-worker 0 3
proc  java 0 1
proc  postmaster 0 4

And my command gives :
snmpwalk -c public -v 2c 172.16.16.213 .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::prIndex.3 = INTEGER: 3
UCD-SNMP-MIB::prIndex.4 = INTEGER: 4
UCD-SNMP-MIB::prNames.1 = STRING: heartbeat
UCD-SNMP-MIB::prNames.2 = STRING: httpd2-worker
UCD-SNMP-MIB::prNames.3 = STRING: java
UCD-SNMP-MIB::prNames.4 = STRING: postmaster
UCD-SNMP-MIB::prMin.1 = INTEGER: 4
UCD-SNMP-MIB::prMin.2 = INTEGER: 3
UCD-SNMP-MIB::prMin.3 = INTEGER: 1
UCD-SNMP-MIB::prMin.4 = INTEGER: 4
UCD-SNMP-MIB::prMax.1 = INTEGER: 0
UCD-SNMP-MIB::prMax.2 = INTEGER: 0
UCD-SNMP-MIB::prMax.3 = INTEGER: 0
UCD-SNMP-MIB::prMax.4 = INTEGER: 0
UCD-SNMP-MIB::prCount.1 = INTEGER: 0
UCD-SNMP-MIB::prCount.2 = INTEGER: 0
UCD-SNMP-MIB::prCount.3 = INTEGER: 0
UCD-SNMP-MIB::prCount.4 = INTEGER: 0
UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: 1
UCD-SNMP-MIB::prErrorFlag.2 = INTEGER: 1
UCD-SNMP-MIB::prErrorFlag.3 = INTEGER: 1
UCD-SNMP-MIB::prErrorFlag.4 = INTEGER: 1
UCD-SNMP-MIB::prErrMessage.1 = STRING: Too few heartbeat running (# = 0)
UCD-SNMP-MIB::prErrMessage.2 = STRING: Too few httpd2-worker running (# = 0)
UCD-SNMP-MIB::prErrMessage.3 = STRING: Too few java running (# = 0)
UCD-SNMP-MIB::prErrMessage.4 = STRING: Too few postmaster running (# = 0)
UCD-SNMP-MIB::prErrFix.1 = INTEGER: 0
UCD-SNMP-MIB::prErrFix.2 = INTEGER: 0
UCD-SNMP-MIB::prErrFix.3 = INTEGER: 0
UCD-SNMP-MIB::prErrFix.4 = INTEGER: 0
UCD-SNMP-MIB::prErrFixCmd.1 = STRING:
UCD-SNMP-MIB::prErrFixCmd.2 = STRING:
UCD-SNMP-MIB::prErrFixCmd.3 = STRING:
UCD-SNMP-MIB::prErrFixCmd.4 = STRING:

The prCount are 0 because the process are stoped, but the results are always true.

On the 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.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.