check_snmp_int.pl - Weird behaviour

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: check_snmp_int.pl - Weird behaviour

Post by nscott »

Aurelien,

When you execute it from the command line, are you running as root? If you are, could you try running as nagios?
Nicholas Scott
Former Nagios employee
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: check_snmp_int.pl - Weird behaviour

Post by srrhd »

It's works also when running as nagios:

Code: Select all

[root@localhost libexec]# sudo -u nagios ./check_snmp_netint.pl -H HOST_IP -C SNMP_COMMUNITY -2 -r -n "VLAN 00010 (NET_A1)" -fY -kBu -w 50,50 -c 70,70
VLAN 00010 (NET_A1):UP (no usable data - 201 rows) :(1 UP): OK |
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: check_snmp_int.pl - Weird behaviour

Post by nscott »

Aurelien,

I think this issue may be related to your other issue that is going on in the other thread. Lets keep the discussion going in there and see if that resolves the issue, if it doesn't we'll come back and track this one down.
Nicholas Scott
Former Nagios employee
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: check_snmp_int.pl - Weird behaviour

Post by srrhd »

I just upgrade to R1.5 and this issue seems to be solved ! As after restarting the monitoring engine was solving evrything just for a while, i wait a bit before claming victory. I will tell you later on.
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: check_snmp_int.pl - Weird behaviour

Post by nscott »

Sounds good! Glad its working. :)
Nicholas Scott
Former Nagios employee
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: check_snmp_int.pl - Weird behaviour

Post by srrhd »

Great everything looks fine until now ! Thanks for your work guys !
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: check_snmp_int.pl - Weird behaviour

Post by mguthrie »

Excellent, glad to hear it! Let us know if you have any additional questions.
eclypse
Posts: 50
Joined: Thu Dec 01, 2011 4:55 pm

Re: check_snmp_int.pl - Weird behaviour

Post by eclypse »

nscott wrote:The _cisco part is appeneded to the check, which I"m thinking cause nagios to setup the graph to read differently.
Yes, because pnp will try to match the command to a graph template. In this case, the comman "check_snmp_int" matches against "/usr/local/nagios/share/pnp/templates.dist/check_snmp_int.php", and therefore uses that to make the stacked graphs. In the case where the command is named something else, like "check_snmp_int2" or "check_snmp_int_cisco", PNP will default to using standard perfparse graphing where you get one graph per datasource. The fact that the snmp string is passed in either via an argument or in the command string makes no difference.