2012 R1.6 : apply configuration doesn't work

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

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

Post by Frédéric GRANAT »

Thanks,
Done, but that doesn't solve my problem.

Rgds,

Frederic
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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)?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

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

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

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

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

Post 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)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

What values are you using for the $ARGn$s?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

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

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post by slansing »

What does the console tell you when you run the command directly from the command line? Bypassing the Nagios side configuration entirely.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

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

Post 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:
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked