Page 2 of 2

Re: check_snmp_int.pl - Weird behaviour

Posted: Mon Jun 20, 2011 12:48 pm
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?

Re: check_snmp_int.pl - Weird behaviour

Posted: Wed Jun 22, 2011 1:48 am
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 |

Re: check_snmp_int.pl - Weird behaviour

Posted: Wed Jun 22, 2011 3:20 pm
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.

Re: check_snmp_int.pl - Weird behaviour

Posted: Mon Jun 27, 2011 6:32 am
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.

Re: check_snmp_int.pl - Weird behaviour

Posted: Mon Jun 27, 2011 9:37 am
by nscott
Sounds good! Glad its working. :)

Re: check_snmp_int.pl - Weird behaviour

Posted: Tue Jun 28, 2011 12:26 am
by srrhd
Great everything looks fine until now ! Thanks for your work guys !

Re: check_snmp_int.pl - Weird behaviour

Posted: Tue Jun 28, 2011 11:01 am
by mguthrie
Excellent, glad to hear it! Let us know if you have any additional questions.

Re: check_snmp_int.pl - Weird behaviour

Posted: Thu Feb 14, 2013 3:06 pm
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.