snmp traps

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

Re: snmp traps

Post by hanya.radwan »

[root@nms ~]# cd /usr/local/nagios/libexec
You have mail in /var/spool/mail/root
[root@nms libexec]# su - nagios ./check_snmp -H 10.202.6.23 -P 2c -C public -o numberOfSessions.6 -u sessions --rate --rate-multiplier 300 -w 5: -c 1:
su: invalid option -- 'H'
Try `su --help' for more information.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: snmp traps

Post by sreinhardt »

My mistake, I forgot a flag and quotes.

Code: Select all

su - nagios -c "./check_snmp -H 10.202.6.23 -P 2c -C public -o numberOfSessions.6 -u sessions --rate --rate-multiplier 300 -w 5: -c 1:"
If that does not work try:

Code: Select all

su nagios -s /bin/bash
./check_snmp -H 10.202.6.23 -P 2c -C public -o numberOfSessions.6 -u sessions --rate --rate-multiplier 300 -w 5: -c 1:
exit
Please make sure in both cases you are already in /usr/local/nagios/libexec/
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

Re: snmp traps

Post by hanya.radwan »

when I run the first command, asked for password??

[nagios@nms libexec]$ su nagios -s /bin/bash
Password:
when try command:
[nagios@nms libexec]$ ./check_snmp -H 10.202.6.23 -P 2c -C public -o numberOfSessions.6 -u sessions --rate --rate-multiplier 300 -w 5: -c 1: External command error: Bad SIZE syntax (OCTETSTRING): At line 203 in /usr/share/snmp/mibs/HPOV-NNM.txt
Bad parse of OBJECT-TYPE: At line 203 in /usr/share/snmp/mibs/HPOV-NNM.txt
Did not find 'openViewSeverity' in module HPOV-NNM-MIB (/usr/share/snmp/mibs/ALCATEL-NMC-PROXY-AGENT-MIB.txt)
Timeout: No Response from 10.202.6.23:161.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: snmp traps

Post by sreinhardt »

Well it certainly seems that it is not responding to snmp. There isn't much I can do to help with that, but I did offer a remote session in your other thread.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked