Page 1 of 2

problem in sessions

Posted: Wed Jul 02, 2014 3:01 am
by hanya.radwan
this service shows the following error:

COMMAND: /usr/local/nagios/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: -t 30

[07-02-2014 10:54:01] SERVICE ALERT: jaw-mas-001;Paltel Sessions;UNKNOWN;SOFT;3;External command error: Error in packet

Re: problem in sessions

Posted: Wed Jul 02, 2014 10:56 am
by tmcdonald
Does it work if you use the full OID instead of "-o numberOfSessions.6"?

What does a snmpwalk reveal about numberOfSessions.6?

Re: problem in sessions

Posted: Thu Jul 03, 2014 6:04 am
by hanya.radwan
[root@nms ~]# /usr/local/nagios/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: -t 30
External command error: Error in packet
Reason: (genError) A general failure occured
Failed object: GLENAYRE-ILSP2-ASU-ALARMS-MIB::numberOfSessions.6

please what is the command for snmpwalk and full OID?

Re: problem in sessions

Posted: Thu Jul 03, 2014 11:12 am
by lmiltchev
You can run:

Code: Select all

snmpwalk -v 2c -c public 10.202.6.23 > /tmp/snmpwalk.txt
then open the "snmpwalk.txt" file that was created from running the above command in a text editor and review it.

You can walk a specified OID by passing the "-CE" flag to your command.

Re: problem in sessions

Posted: Mon Jul 07, 2014 7:54 am
by hanya.radwan
I run the command . please find attached snmpwalk, but is the result which can I get to fix this case.

Re: problem in sessions

Posted: Mon Jul 07, 2014 1:41 pm
by lmiltchev
Rerun the command as such:

Code: Select all

snmpwalk -v 2c -c public 10.202.6.23 -On > /tmp/snmpwalk2.txt
and post the "snmpwalk2.txt" file.

Also, upload the "GLENAYRE-ILSP2-ASU-ALARMS-MIB".

Re: problem in sessions

Posted: Tue Jul 08, 2014 7:34 am
by hanya.radwan
please find the attached.

Re: problem in sessions

Posted: Tue Jul 08, 2014 12:26 pm
by sreinhardt
It doesn't look like your snmpwalk came up with any oids that would match your mib. We can try a few other commands and see what comes up, but I would also ask if this is supposed to integrate with the default linux snmp agent or if this provides it's own agent.

Code: Select all

snmpwalk -v 2c -c public -On 10.202.6.23 .1.3.6.1.4.1.1383 > /tmp/snmpwalk-glenayre.txt
snmpwalk -v 2c -c public -On 10.202.6.23 .1.3.6.1.4.1.1383.1011 > /tmp/snmpwalk-Gasu.txt
snmpwalk -v 2c -c public -On 10.202.6.23 .1.3.6.1.4.1.1383.1012 > /tmp/snmpwalk-Gsgf.txt
snmpwalk -v 2c -c public -On 10.202.6.23 .1.3.6.1.4.1.1383.2000 > /tmp/snmpwalk-Gfred.txt

Re: problem in sessions

Posted: Wed Jul 09, 2014 2:35 am
by hanya.radwan
when I run the command. the following, and all the files empty:
[root@nms ~]# snmpwalk -v 2c -c public -On 10.202.6.23 .1.3.6.1.4.1.1383 > /tmp/snmpwalk-glenayre.txt
Timeout: No Response from 10.202.6.23
[root@nms ~]# snmpwalk -v 2c -c public -On 10.202.6.23 .1.3.6.1.4.1.1383.1011 > /tmp/snmpwalk-Gasu.txt
Timeout: No Response from 10.202.6.23
[root@nms ~]# snmpwalk -v 2c -c public -On 10.202.6.23 .1.3.6.1.4.1.1383.1012 > /tmp/snmpwalk-Gsgf.txt
Timeout: No Response from 10.202.6.23
[root@nms ~]# snmpwalk -v 2c -c public -On 10.202.6.23 .1.3.6.1.4.1.1383.2000 > /tmp/snmpwalk-Gfred.txt
You have new mail in /var/spool/mail/root
[root@nms ~]# cd /tmp
[root@nms tmp]# ls -ltr
total 65916
drwxr-xr-x. 4 root root 4096 Jul 14 2012 vmware-tools-distrib
-r--r--r--. 1 root root 65792741 Jun 11 2013 VMwareTools-9.0.0-782409.tar.gz
drwxr-xr-x 4 root root 4096 Jun 4 12:07 xidashlets_backup
-rw-r--r-- 1 root root 798720 Jul 7 15:47 snmpwalk.txt
-rw-r--r-- 1 root root 766038 Jul 8 15:31 snmpwalk2.txt
-rw-r--r-- 1 nagios nagios 8071 Jul 9 10:27 tmp_Nagios_int.10.202.6.9.bond0
-rw-r--r-- 1 nagios nagios 8065 Jul 9 10:29 tmp_Nagios_int.10.200.28.47.eth0
-rw-r--r-- 1 root root 0 Jul 9 10:30 snmpwalk-glenayre.txt
-rw-r--r-- 1 root root 0 Jul 9 10:30 snmpwalk-Gasu.txt
-rw-r--r-- 1 root root 0 Jul 9 10:30 snmpwalk-Gsgf.txt
-rw-r--r-- 1 root root 110513 Jul 9 10:31 snmpwalk-Gfred.txt
[root@nms tmp]#

Re: problem in sessions

Posted: Wed Jul 09, 2014 7:21 am
by belvdr
If you are getting a timeout with snmpwalk, then there are a few things to check:

1. Is the community name correct?
2. Does the host allow your nagios server to connect to it with that community name?
3. UDP port 161 must be open from your Nagios server to your server name