problem in sessions

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

problem in sessions

Post 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
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: problem in sessions

Post by tmcdonald »

Does it work if you use the full OID instead of "-o 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

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: problem in sessions

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

Post by hanya.radwan »

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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: problem in sessions

Post 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".
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

Post by hanya.radwan »

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

Post 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
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: problem in sessions

Post 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]#
belvdr
Posts: 81
Joined: Tue Oct 08, 2013 9:17 pm

Re: problem in sessions

Post 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
Locked