problem in sessions
-
hanya.radwan
- Posts: 194
- Joined: Tue Feb 25, 2014 6:12 am
- Location: palestine
problem in sessions
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
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
You do not have the required permissions to view the files attached to this post.
Re: problem in sessions
Does it work if you use the full OID instead of "-o numberOfSessions.6"?
What does a snmpwalk reveal about numberOfSessions.6?
What does a snmpwalk reveal about numberOfSessions.6?
Former Nagios employee
-
hanya.radwan
- Posts: 194
- Joined: Tue Feb 25, 2014 6:12 am
- Location: palestine
Re: problem in sessions
[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?
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
You can run:
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.
Code: Select all
snmpwalk -v 2c -c public 10.202.6.23 > /tmp/snmpwalk.txtYou can walk a specified OID by passing the "-CE" flag to your command.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
hanya.radwan
- Posts: 194
- Joined: Tue Feb 25, 2014 6:12 am
- Location: palestine
Re: problem in sessions
I run the command . please find attached snmpwalk, but is the result which can I get to fix this case.
You do not have the required permissions to view the files attached to this post.
Re: problem in sessions
Rerun the command as such:
and post the "snmpwalk2.txt" file.
Also, upload the "GLENAYRE-ILSP2-ASU-ALARMS-MIB".
Code: Select all
snmpwalk -v 2c -c public 10.202.6.23 -On > /tmp/snmpwalk2.txtAlso, upload the "GLENAYRE-ILSP2-ASU-ALARMS-MIB".
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
hanya.radwan
- Posts: 194
- Joined: Tue Feb 25, 2014 6:12 am
- Location: palestine
Re: problem in sessions
please find the attached.
You do not have the required permissions to view the files attached to this post.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: problem in sessions
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.txtNagios-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: problem in sessions
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]#
[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
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
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