Page 5 of 6

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 19, 2013 2:40 am
by Frédéric GRANAT
Thanks,
Done, but that doesn't solve my problem.

Rgds,

Frederic

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 19, 2013 9:35 am
by lmiltchev
Can you show the exact command that you are running from the command line, and the output of it (hide the sensitive data)?

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 19, 2013 10:31 am
by Frédéric GRANAT
Hi,

Code: Select all

[root@nagiosxi libexec]# ll | grep 500
-rwxr-xr-x 1    500 nagios   6897 Sep 27  2011 check_asterisk.pl
-rw-r--r-- 1    500 nagios      0 Sep  6  2011 check.bat
-rwxr-xr-x 1    500 users    4173 Oct 22 11:49 check_bl
-rwxr-xr-x 1    500 nagios   2289 Oct 22 11:49 check_bpi.php
-rwxr-xr-x 1    500 nagios     45 Sep  6  2011 check_dummy.sh
-rwxr-xr-x 1    500 nagios  38345 Oct 22 11:49 check_email_delivery
-rwxr-xr-x 1    500 nagios  20511 Oct 22 11:49 check_email_delivery_epn
-rwxr-xr-x 1    500 nagios  20039 Aug 29  2011 check_email_loop.pl
-rwxr-xr-x 1    500 nagios  82841 Oct 22 11:49 check_esx3.pl
-rwxr-xr-x 1    500 nagios   3437 Oct 22 11:49 check_ftp_fully
-rwxr-xr-x 1    500 nagios  18663 Oct 25 12:28 check_iftraffic3.pl
-rwxr-xr-x 1    500 nagios  35413 Oct 22 11:49 check_imap_receive
-rwxr-xr-x 1    500 nagios  15576 Oct 22 11:49 check_imap_receive_epn
-rwxr-xr-x 1    500 nagios  12537 Oct 22 11:49 check_mssql
-rwxr-xr-x 1    500 nagios  98717 Aug 29  2011 check_mysql_health
-rwxr-xr-x 1    500 nagios   6364 Oct 22 11:49 check_nagios_performance.php
-rwxr-xr-x 1    500 nagios  17400 Oct 22 11:49 check_nagiosxiserver.php
-rwxrwxr-x 1    500 nagios  62333 Sep 27  2011 check_nrpe
drwxr-xr-x 5    500 nagios   4096 Oct 20  2011 check_oracle_health-1.7.2
-rwxr-xr-x 1    500 nagios   6189 Oct 22 11:42 check_pnp_rrds.pl
-rwxr-xr-x 1    500 nagios 281655 Oct 22 11:49 check_postgres.pl
-rwxr-xr-x 1    500 nagios  23327 Oct 22 11:49 check_radius_adv
-rwxr-xr-x 1    500 nagios   6768 Sep 19 11:06 check_riverbed_status
-rwxr-xr-x 1    500 nagios   2998 Oct 24 09:08 check_route
-rwxr-xr-x 1    500 nagios   9232 Aug 29  2011 check_rrdtraf
-rwxr-xr-x 1    500 nagios   5299 Aug 29  2011 check_rrdtraf.php
-rwxr-xr-x 1    500 nagios     76 Sep  6  2011 check.sh
-rwxr-xr-x 1    500 nagios   6563 Sep  6  2011 check_shinken.py
-rwxr-xr-x 1    500 nagios   7599 Sep 27  2011 check_sip
-rwxr-xr-x 1    500 nagios  20226 Oct 22 11:49 check_smtp_send
-rwxr-xr-x 1    500 nagios  10440 Oct 22 11:49 check_smtp_send_epn
-rwxr-xr-x 1    500 nagios  10951 Aug 29  2011 check_snmp_boostedge.pl
-rwxr-xr-x 1    500 nagios  17866 Aug 29  2011 check_snmp_cpfw.pl
-rwxr-xr-x 1    500 nagios   8747 Aug 29  2011 check_snmp_css_main.pl
-rwxr-xr-x 1    500 nagios  16786 Aug 29  2011 check_snmp_css.pl
-rwxr-xr-x 1    500 nagios  33562 Aug 29  2011 check_snmp_env.pl
-rwxr-xr-x 1    500 nagios  31919 Aug 29  2011 check_snmp_int.pl
-rwxr-xr-x 1    500 nagios  10108 Aug 29  2011 check_snmp_linkproof_nhr.pl
-rwxr-xr-x 1    500 nagios  22839 Oct 22 11:49 check_snmp_load.pl
-rwxr-xr-x 1    500 nagios  18734 Aug 29  2011 check_snmp_mem.pl
-rwxr-xr-x 1    500 nagios  53265 Sep  5  2011 check_snmp_mgeeaton_ups.pl
-rwxr-xr-x 1    500 nagios   4312 Sep  5  2011 check_snmp_mge_ups
-rwxr-xr-x 1    500 nagios  11898 Aug 29  2011 check_snmp_nsbox.pl
-rwxr-xr-x 1    500 nagios  26182 Oct 22 11:49 check_snmp_process.pl
-rwxr-xr-x 1    500 nagios  25483 Oct 22 11:49 check_snmp_storage.pl
-rwxr-xr-x 1    500 nagios  14489 Aug 29  2011 check_snmp_vrrp.pl
-rwxr-xr-x 1    500 nagios  12058 Oct 22 11:49 check_snmp_win.pl
-rwxr-xr-x 1    500 nagios    169 Sep 27  2011 check_vmware_config_vcenter01_example
-rwxr-xr-x 1    500 nagios  59991 Sep 27  2011 check_vmware.pl
-rwxr-xr-x 1    500 nagios    307 Aug 29  2011 check_webinject.sh
-rwxr-xr-x 1    500 nagios   2411 Oct 22 13:58 check_wmi_plus.conf
-rw-r--r-- 1    500 nagios   2358 Sep 23  2011 check_wmi_plus.conf.sample
drwxr-xr-x 2    500 nagios   4096 Oct 22 13:56 check_wmi_plus.d
-rwxr-xr-x 1    500 nagios  46543 Oct 22 11:50 check_wmi_plus.ini
-rwxr-xr-x 1    500 nagios 237169 Oct 22 15:21 check_wmi_plus.pl
-rw-r--r-- 1    500 nagios  83948 Sep 23  2011 check_wmi_plus.README.txt
-rw-r--r-- 1    500 nagios    215 Sep 19  2011 cookie.txt
-rw-r--r-- 1    500 nagios    258 Sep  6  2011 getwmic.sh
-rwxr-xr-x 1    500 nagios   6263 Sep  6  2011 link_vmware_host_vm.py
-rwxr-xr-x 1    500 nagios     47 Sep 23  2011 lol.pl
-rwxr-xr-x 1    500 nagios  12029 Sep  6  2011 nmap_discovery_runner.py
-rwxr-xr-x 1    500 nagios     90 Sep  6  2011 notify.sh
-rw-r--r-- 1    500 nagios   6014 Sep  6  2011 nsca_client.py
-rwxr-xr-x 1    500 nagios  42724 Oct 22 11:42 process_perfdata.pl
-rwxr-xr-x 1    500 nagios   2523 Sep  6  2011 sendmailhost.pl
-rwxr-xr-x 1    500 nagios   2721 Sep  6  2011 sendmailservices.pl
[root@nagiosxi libexec]# find /usr/local/nagios/libexec -user 500 -exec chown nagios.nagios {} \;
[root@nagiosxi libexec]# ll | grep 500
[root@nagiosxi libexec]#

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 19, 2013 10:38 am
by lmiltchev
I am sorry I was not clear on this. I need the command that you are having issues with (your second problem)...
2) 1 service in critical state, type = Bandwidth

Status information : Return code of 13 is out of bounds

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 19, 2013 11:00 am
by Frédéric GRANAT
check_snmp_int_bw
commande line = $USER1$/check_iftraffic3.pl -H $HOSTADDRESS$ -C $ARG1$ -i $ARG2$ $ARG3$
command defined at the service level (not at template level)

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 19, 2013 11:11 am
by abrist
What values are you using for the $ARGn$s?

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 19, 2013 11:25 am
by Frédéric GRANAT
ARG1=ro
ARG2=226
ARG3=-b 1 -u g -w 80 -c 90

That check doesn't work since update 2012 R.1.6

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Tue Mar 19, 2013 12:55 pm
by slansing
What does the console tell you when you run the command directly from the command line? Bypassing the Nagios side configuration entirely.

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Thu Mar 21, 2013 3:48 am
by Frédéric GRANAT
1) By Using SSH :

/usr/local/nagios/libexec/check_iftraffic3.pl -H 172.31.0.2 -C ro -i 226 -b 1 -u g -w 80 -c 90
Average IN: 7.17KBs (0.01%), Average OUT: 7.13KBs (0.01%)
Total RX: 6223.67 MBytes, Total TX: 6219.56 MBytes|inUsage=0.01%;80;90 outUsage=0.01%;80;90 inBandwidth=7.17KBs outBandwidth=7.13KBs inAbsolut=6525988376 outAbsolut=6521679682

2) By testing check command (on service) :

Testing check from command line...

COMMAND: /usr/local/nagios/libexec/check_iftraffic3.pl -H 172.31.0.2 -C ro -i 226 -b 1 -u g -w 80 -c 90
OUTPUT:

Re: 2012 R1.6 : apply configuration doesn't work

Posted: Thu Mar 21, 2013 7:09 am
by scottwilkerson
can we see the current permissions of this exact plugin

Code: Select all

ls -l /usr/local/nagios/libexec/check_iftraffic3.pl
Also, can you run

Code: Select all

cat /etc/group|nag