Page 2 of 2
Re: snmp traps
Posted: Tue Jun 10, 2014 1:57 pm
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.
Re: snmp traps
Posted: Tue Jun 10, 2014 4:15 pm
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/
Re: snmp traps
Posted: Wed Jun 11, 2014 2:38 am
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.
Re: snmp traps
Posted: Wed Jun 11, 2014 9:23 am
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.