Linux process monitoring traps not being sent

Anthony Gibson <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,  I have been reading around this for days and trying to trouble shoot with no luck

I have OpenNMS (Horizon) running in my lab and have installed net-snmp on  at least 2 CentOS servers.
The NMS can poll the servers fine, get the syscontact info and syslocation info perfectly.

Restarting the snmpd service, as per documentation, sends an shutdown trap followed by coldStart trap, again perfect
Not ony do I see the traps in the NMS, I see them in Wireshark on the Linux server, even better.

Here is the snmpd.conf file, removed all the comments to make it smaller for the mail
#
rocommunity public default
#
proc  ntpd
proc  httpd
disk  / 75%
#
syslocation  TheLab
syscontact  TheBoss
#
trap2sink  10.30.1.7
#

I want to be able to monitor running processes(ntpd and httpd are for testing purposes) and free diskspace.
So I stop the ntpd service, no traps sent.  I check with snmpwalk
snmpwalk -v 2c -c public localhost 1.3.6.1.4.1.2021.2
UCD-SNMP-MIB::prIndex.1 = INTEGER: 1
UCD-SNMP-MIB::prIndex.2 = INTEGER: 2
UCD-SNMP-MIB::prNames.1 = STRING: ntpd
UCD-SNMP-MIB::prNames.2 = STRING: httpd
UCD-SNMP-MIB::prMin.1 = INTEGER: 1
UCD-SNMP-MIB::prMin.2 = INTEGER: 1
UCD-SNMP-MIB::prMax.1 = INTEGER: 0
UCD-SNMP-MIB::prMax.2 = INTEGER: 0
UCD-SNMP-MIB::prCount.1 = INTEGER: 0
UCD-SNMP-MIB::prCount.2 = INTEGER: 6
UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: error(1)
UCD-SNMP-MIB::prErrorFlag.2 = INTEGER: noError(0)
UCD-SNMP-MIB::prErrMessage.1 = STRING: No ntpd process running
UCD-SNMP-MIB::prErrMessage.2 = STRING:
UCD-SNMP-MIB::prErrFix.1 = INTEGER: noError(0)
UCD-SNMP-MIB::prErrFix.2 = INTEGER: noError(0)
UCD-SNMP-MIB::prErrFixCmd.1 = STRING:
UCD-SNMP-MIB::prErrFixCmd.2 = STRING
Or
snmpwalk -v 2c -c public localhost 1.3.6.1.2.1.25.4.2.1.2 | grep "ntpd"
returns no results

So I think net-snmp is monitoring correctly but trap sending is not being triggered.
It’s not at the NMS end as I don’t see traps in the wireshark trace on the source server

I have done nothing with snmptrapd.conf as that is for receiving traps and not sending, if I am reading docs correctly.

I can send test traps with snmptrap and it can be seen in the wireshark and the NMS receives it.  So the only problem is with traps from monitored processes.  Have I missed anything in the setup configuration anywhere, do I need snmptrad to receive the traps locally and then forward on?  I think not else the snmpd stop/start ones wouldn’t flow nor the test ones.

Regards
Anthony

_______________________________________________
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.