Any thoughts on what I need to do to resolve? This is running on a VM with CentOS Linux release 7.0.1406 (Core) My Nagios XI version is Nagios XI 2014R2.7ls -l /usr/local/nagios
total 28
drwxrwxr-x. 2 nagios nagios 4096 Aug 21 14:15 bin
drwsrwsr-x. 7 apache nagios 4096 Aug 21 14:18 etc
drwxr-xr-x. 2 root root 6 Aug 21 14:14 include
drwxrwxr-x. 2 nagios nagios 4096 Sep 4 11:38 libexec
drwxrwxr-x. 2 nagios nagios 4096 Aug 21 14:13 sbin
drwxrwxr-x. 14 nagios nagios 4096 Aug 21 14:15 share
drwxrwxr-x. 6 nagios nagios 4096 Sep 8 09:21 var
ls -l /usr/local/nagios/libexec/
total 10064
-rwxr-xr-x. 1 root root 203973 Aug 21 14:14 check_apt
-rwxr-xr-x. 1 root root 6897 Aug 21 14:15 check_asterisk.pl
-rwxr-xr-x. 1 root root 4173 Aug 21 14:16 check_bl
-rwxr-xr-x. 1 root root 2287 Aug 21 14:16 check_bpi.php
-rwxr-xr-x. 1 root root 2248 Aug 21 14:14 check_breeze
-rwxr-xr-x. 1 root root 208198 Aug 21 14:14 check_by_ssh
lrwxrwxrwx. 1 root root 9 Aug 21 14:14 check_clamd -> check_tcp
-rwxr-xr-x. 1 root root 152710 Aug 21 14:14 check_cluster
-r-sr-xr-x. 1 root root 200967 Aug 21 14:14 check_dhcp
-rwxr-xr-x. 1 root root 200032 Aug 21 14:14 check_dig
-rwxr-xr-x. 1 root root 3861 Aug 21 14:15 check_dir
-rwxr-xr-x. 1 root root 220885 Aug 21 14:14 check_disk
-rwxr-xr-x. 1 root root 9286 Aug 21 14:14 check_disk_smb
-rwxr-xr-x. 1 root root 218066 Aug 21 14:14 check_dns
-rwxr-xr-x. 1 root root 8515 Aug 21 14:16 check_domain.php
-rwxr-xr-x. 1 root root 116868 Aug 21 14:14 check_dummy
-rwxr-xr-x. 1 root root 5625 Aug 21 14:16 check_em01.pl
-rwxr-xr-x. 1 root root 38345 Aug 21 14:16 check_email_delivery
-rwxr-xr-x. 1 root root 20511 Aug 21 14:16 check_email_delivery_epn
-rwxr-xr-x. 1 root root 20039 Aug 21 14:15 check_email_loop.pl
-rwxr-xr-x. 1 root root 82841 Aug 21 14:16 check_esx3.pl
-rwxr-xr-x. 1 root root 3346 Aug 21 14:14 check_file_age
-rwxr-xr-x. 1 root root 6312 Aug 21 14:14 check_flexlm
-rwxr-xr-x. 1 root root 206754 Aug 21 14:14 check_fping
lrwxrwxrwx. 1 root root 9 Aug 21 14:14 check_ftp -> check_tcp
-rwxr-xr-x. 1 root root 3446 Aug 21 14:16 check_ftp_fully
-rwxr-xr-x. 1 root root 201945 Aug 21 14:14 check_hpjd
-rwxr-xr-x. 1 root root 336915 Aug 21 14:14 check_http
-r-sr-xr-x. 1 root root 213350 Aug 21 14:14 check_icmp
-rwxr-xr-x. 1 root root 163624 Aug 21 14:14 check_ide_smart
-rwxr-xr-x. 1 root root 1794 Aug 21 14:16 check_ifoperstatnag
-rwxr-xr-x. 1 root root 15120 Aug 21 14:14 check_ifoperstatus
-rwxr-xr-x. 1 root root 12597 Aug 21 14:14 check_ifstatus
lrwxrwxrwx. 1 root root 9 Aug 21 14:14 check_imap -> check_tcp
-rwxr-xr-x. 1 root root 35413 Aug 21 14:16 check_imap_receive
-rwxr-xr-x. 1 root root 15576 Aug 21 14:16 check_imap_receive_epn
-rwxr-xr-x. 1 root root 6884 Aug 21 14:14 check_ircd
lrwxrwxrwx. 1 root root 9 Aug 21 14:14 check_jabber -> check_tcp
-rwxr-xr-x. 1 root root 180303 Aug 21 14:14 check_ldap
lrwxrwxrwx. 1 root root 10 Aug 21 14:14 check_ldaps -> check_ldap
-rwxr-xr-x. 1 root root 176845 Aug 21 14:14 check_load
-rwxr-xr-x. 1 root root 5981 Aug 21 14:14 check_log
-rwxr-xr-x. 1 root root 21477 Aug 21 14:14 check_mailq
-rwxr-xr-x. 1 root root 56350 Aug 21 14:16 check_mongodb.py
-rwxr-xr-x. 1 root root 162850 Aug 21 14:14 check_mrtg
-rwxr-xr-x. 1 root root 162695 Aug 21 14:14 check_mrtgtraf
-rwxr-xr-x. 1 root root 17546 Aug 21 14:16 check_mssql
-rwxr-xr-x. 1 root root 14446 Aug 21 14:16 check_mssql_database.py
-rwxr-xr-x. 1 root root 20473 Aug 21 14:16 check_mssql_server.py
-rwxr-xr-x. 1 root root 199243 Aug 21 14:14 check_mysql
-rwxr-xr-x. 1 root root 122020 Aug 21 14:15 check_mysql_health
-rwxr-xr-x. 1 root root 185601 Aug 21 14:14 check_mysql_query
-rwxr-xr-x. 1 root root 176141 Aug 21 14:14 check_nagios
-rwxr-xr-x. 1 root root 14602 Aug 21 14:16 check_nagioslogserver.php
-rwxr-xr-x. 1 root root 7465 Aug 21 14:16 check_nagios_performance.php
-rwxr-xr-x. 1 root root 20661 Aug 21 14:16 check_nagiosxiserver.php
-rwxr-xr-x. 1 root root 4283 Aug 21 14:16 check_ncpa.py
-rwxr-xr-x. 1 root root 10037 Aug 21 14:16 check_nna.py
lrwxrwxrwx. 1 root root 9 Aug 21 14:14 check_nntp -> check_tcp
lrwxrwxrwx. 1 root root 9 Aug 21 14:14 check_nntps -> check_tcp
-rwxrwxr-x. 1 nagios nagios 81494 Aug 21 14:15 check_nrpe
-rwxr-xr-x. 1 root root 209295 Aug 21 14:14 check_nt
-rwxr-xr-x. 1 root root 212838 Aug 21 14:14 check_ntp
-rwxr-xr-x. 1 root root 201895 Aug 21 14:14 check_ntp_peer
-rwxr-xr-x. 1 root root 197060 Aug 21 14:14 check_ntp_time
-rwxr-xr-x. 1 root root 239836 Aug 21 14:14 check_nwstat
-rwxr-xr-x. 1 root root 8779 Aug 21 14:14 check_oracle
-rwxr-xr-x. 1 root root 182558 Aug 21 14:14 check_overcr
-rwxr-xr-x. 1 root root 189628 Aug 21 14:14 check_pgsql
-rwxr-xr-x. 1 root root 212347 Aug 21 14:14 check_ping
-rwxr-xr-x. 1 nagios nagios 6179 Aug 21 14:15 check_pnp_rrds.pl
lrwxrwxrwx. 1 root root 9 Aug 21 14:14 check_pop -> check_tcp
-rwxr-xr-x. 1 root root 388326 Aug 21 14:16 check_postgres.pl
-rwxr-xr-x. 1 root root 212652 Aug 21 14:14 check_procs
-rwxr-xr-x. 1 root root 29938 Aug 21 14:16 check_radius_adv
-rwxr-xr-x. 1 root root 179468 Aug 21 14:14 check_real
-rwxr-xr-x. 1 root root 9578 Aug 21 14:14 check_rpc
-rwxr-xr-x. 1 root root 9743 Aug 21 14:15 check_rrdtraf
-rwxr-xr-x. 1 root root 5299 Aug 21 14:15 check_rrdtraf.php
-rwxr-xr-x. 1 root root 1453 Aug 21 14:14 check_sensors
lrwxrwxrwx. 1 root root 9 Aug 21 14:14 check_simap -> check_tcp
-rw-r--r--. 1 root root 7599 Aug 21 14:15 check_sip
-rwxr-xr-x. 1 root root 269646 Aug 21 14:14 check_smtp
-rwxr-xr-x. 1 root root 20226 Aug 21 14:16 check_smtp_send
-rwxr-xr-x. 1 root root 10440 Aug 21 14:16 check_smtp_send_epn
-rwxr-xr-x. 1 root root 255380 Aug 21 14:14 check_snmp
-rwxr-xr-x. 1 root root 10951 Aug 21 14:15 check_snmp_boostedge.pl
-rwxr-xr-x. 1 root root 17866 Aug 21 14:15 check_snmp_cpfw.pl
-rwxr-xr-x. 1 root root 8747 Aug 21 14:15 check_snmp_css_main.pl
-rwxr-xr-x. 1 root root 16786 Aug 21 14:15 check_snmp_css.pl
-rwxr-xr-x. 1 root root 33562 Aug 21 14:15 check_snmp_env.pl
-rwxr-xr-x. 1 root root 23464 Aug 21 14:16 check_snmp_generic.pl
-rwxr-xr-x. 1 root root 31919 Aug 21 14:15 check_snmp_int.pl
-rwxr-xr-x. 1 root root 10108 Aug 21 14:15 check_snmp_linkproof_nhr.pl
-rwxr-xr-x. 1 root root 22839 Aug 21 14:16 check_snmp_load.pl
-rwxr-xr-x. 1 root root 23886 Aug 21 14:16 check_snmp_load_wizard.pl
-rwxr-xr-x. 1 root root 18734 Aug 21 14:15 check_snmp_mem.pl
-rwxr-xr-x. 1 root root 11898 Aug 21 14:15 check_snmp_nsbox.pl
-rwxr-xr-x. 1 root root 26182 Aug 21 14:16 check_snmp_process.pl
-rwxr-xr-x. 1 root root 26183 Aug 21 14:16 check_snmp_process_wizard.pl
-rwxr-xr-x. 1 root root 25483 Aug 21 14:16 check_snmp_storage.pl
-rwxr-xr-x. 1 root root 25484 Aug 21 14:16 check_snmp_storage_wizard.pl
-rwxr-xr-x. 1 root root 14489 Aug 21 14:15 check_snmp_vrrp.pl
-rwxr-xr-x. 1 root root 12058 Aug 21 14:16 check_snmp_win.pl
lrwxrwxrwx. 1 root root 9 Aug 21 14:14 check_spop -> check_tcp
-rwxr-xr-x. 1 root root 178947 Aug 21 14:14 check_ssh
-rwxr-xr-x. 1 root root 8337 Aug 21 14:16 check_ssh_expect.pl
lrwxrwxrwx. 1 root root 9 Aug 21 14:14 check_ssmtp -> check_tcp
-rwxr-xr-x. 1 root root 160626 Aug 21 14:14 check_swap
-rwxr-xr-x. 1 root root 255585 Aug 21 14:14 check_tcp
-rwxr-xr-x. 1 root root 180654 Aug 21 14:14 check_time
-rwxr-xr-x 1 apache apache 9583 Sep 4 11:38 check_ucs
lrwxrwxrwx. 1 root root 9 Aug 21 14:14 check_udp -> check_tcp
-rwxr-xr-x. 1 root root 193222 Aug 21 14:14 check_ups
-rwxr-xr-x. 1 root root 153332 Aug 21 14:14 check_uptime
-rwxr-xr-x. 1 root root 151774 Aug 21 14:14 check_users
-rwxr-xr-x. 1 root root 2933 Aug 21 14:14 check_wave
-rwxr-xr-x. 1 root root 307 Aug 21 14:15 check_webinject.sh
-rwxr-xr-x. 1 root root 7065 Aug 21 14:16 check_win_snmp_disk.pl
-rwxr-xr-x. 1 root root 2405 Aug 21 14:16 check_wmi_plus.conf
-rwxr-xr-x. 1 root root 64477 Aug 21 14:16 check_wmi_plus.ini
-rwxr-xr-x. 1 root root 237155 Aug 21 14:16 check_wmi_plus.pl
-rwxr-xr-x. 1 root root 147769 Aug 21 14:14 negate
-rwxr-xr-x. 1 nagios nagios 42802 Aug 21 14:15 process_perfdata.pl
-rwxr-xr-x. 1 root root 73399 Aug 21 14:15 send_nsca
-rwxr-xr-x 1 apache apache 11469 Sep 8 09:19 sgichk_cisco_chassis.pl
-rwxr-xr-x 1 apache apache 17200 Sep 4 11:37 snmp_cisco_info.sh
-rwxr-xr-x. 1 root root 144769 Aug 21 14:14 urlize
-rwxr-xr-x. 1 root root 1887 Aug 21 14:14 utils.pm
-rwxr-xr-x. 1 root root 2791 Aug 21 14:14 utils.sh
Unable to install plugins. Getting permissions error
Unable to install plugins. Getting permissions error
I am trying to install a few plugins and a few have installed without error, but have a few failing with the error message Plugin could not be installed - directory permissions may be incorrect. I checked the permissions on /usr/local/nagios/libexec/ and get the following
Re: Unable to install plugins. Getting permissions error
What are the names of the plugins that you are trying to install?
Can you run the following and post the results?
Run the following tail command while you upload the plugin and post the output.
Can you run the following and post the results?
Code: Select all
grep nag /etc/passwd
grep nag /etc/group
chage -l nagiosCode: Select all
tail -f /var/log/httpd/error_logBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Unable to install plugins. Getting permissions error
and[root@frack ~]# grep nag /etc/passwd
nagios1001
:/home/nagios:/bin/bash
[root@frack ~]# grep nag /etc/group
nagios1001:nagios,apache
nagcmd1002:nagios,apache
[root@frack ~]# chage -l nagios
Last password change : Aug 21, 2015
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
[root@frack ~]# tail -f /var/log/httpd/error_log
[Tue Sep 08 09:55:22.361938 2015] [:error] [pid 11581] [client 10.0.219.126:32550] PHP Notice: Undefined index: tfArg3 in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/common_settings.php on line 124, referer: http://frack/nagiosxi/includes/components/ccm/index.php
[Tue Sep 08 09:55:22.362357 2015] [:error] [pid 11581] [client 10.0.219.126:32550] PHP Notice: Undefined index: initial_state in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 117, referer: http://frack/nagiosxi/includes/components/ccm/index.php
[Tue Sep 08 09:55:22.362386 2015] [:error] [pid 11581] [client 10.0.219.126:32550] PHP Notice: Undefined index: initial_state in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 117, referer: http://frack/nagiosxi/includes/components/ccm/index.php
[Tue Sep 08 09:55:22.362395 2015] [:error] [pid 11581] [client 10.0.219.126:32550] PHP Notice: Undefined index: initial_state in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 117, referer: http://frack/nagiosxi/includes/components/ccm/index.php
[Tue Sep 08 09:55:22.362402 2015] [:error] [pid 11581] [client 10.0.219.126:32550] PHP Notice: Undefined index: check_interval in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/check_settings.php on line 30, referer: http://frack/nagiosxi/includes/components/ccm/index.php
[Tue Sep 08 09:55:22.362410 2015] [:error] [pid 11581] [client 10.0.219.126:32550] PHP Notice: Undefined index: retry_interval in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/check_settings.php on line 34, referer: http://frack/nagiosxi/includes/components/ccm/index.php
[Tue Sep 08 09:56:44.790133 2015] [:error] [pid 11542] [client 10.0.219.126:32607] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://frack/nagiosxi/includes/componen ... -index.php
[Tue Sep 08 09:56:53.690006 2015] [:error] [pid 17008] [client 10.0.219.126:32634] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://frack/nagiosxi/includes/componen ... 26page%3D1
[Tue Sep 08 09:57:03.909925 2015] [:error] [pid 11581] [client 10.0.219.126:32643] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://frack/nagiosxi/includes/componen ... -index.php
[Tue Sep 08 09:57:06.531189 2015] [:error] [pid 11581] [client 10.0.219.126:32643] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://frack/nagiosxi/includes/componen ... -index.php
Re: Unable to install plugins. Getting permissions error
Also the plugins I'm having issue with are check_snmp_load.pl, check_cisco_ucs, and check_ucs.
Re: Unable to install plugins. Getting permissions error
Do they have any special characters in the names or are the exact file names the same as what you posted?
There error for check_snmp_load.pl is because you already have it and it's owned by root.root. You can remove the file or chown apache.apache /usr/local/nagios/libexec/check_snmp_load.pl and try it again.
What is the output of this command?
There error for check_snmp_load.pl is because you already have it and it's owned by root.root. You can remove the file or chown apache.apache /usr/local/nagios/libexec/check_snmp_load.pl and try it again.
What is the output of this command?
Code: Select all
sestatusRe: Unable to install plugins. Getting permissions error
Are you having permission issues with installing any other plugins? In regards to the "check_snmp_load.pl" plugin - you already have it installed and it is not group writable, so I assume this is why the install is failing.
Code: Select all
-rwxr-xr-x. 1 root root 22839 Aug 21 14:16 check_snmp_load.plBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Unable to install plugins. Getting permissions error
I see the following after running sestatus
SELinux status: disabled
Re: Unable to install plugins. Getting permissions error
Are you having permission issues with installing any other plugins?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Unable to install plugins. Getting permissions error
No apparently I'm not. I guess someone else had installed the ucs plugin and I just found it in the list. Thanks for your help.
Re: Unable to install plugins. Getting permissions error
Are we all right to mark this thread resolved and lock it?Atria wrote:No apparently I'm not. I guess someone else had installed the ucs plugin and I just found it in the list. Thanks for your help.
Former Nagios Employee.
me.
me.