Plugins won't install through web interface.
Plugins won't install through web interface.
Hello,
I found a plugin in the Nagios Exchange that I would like to use and used these instructions https://assets.nagios.com/downloads/nag ... ios-XI.pdf for installing. When I click on the 'upload' button I get an error stating that plugin couldn't install - directory permissions may be incorrect.
I found this forum chat dealing with the issue https://support.nagios.com/forum/viewto ... 784#p12030 and tried following the methods that were listed. I don't see the fixperms.sh script in /usr/local/nagiosxi/scripts/ but I tried the rest without success. Not sure if the script is the missing link to my problem.
--Berto
I found a plugin in the Nagios Exchange that I would like to use and used these instructions https://assets.nagios.com/downloads/nag ... ios-XI.pdf for installing. When I click on the 'upload' button I get an error stating that plugin couldn't install - directory permissions may be incorrect.
I found this forum chat dealing with the issue https://support.nagios.com/forum/viewto ... 784#p12030 and tried following the methods that were listed. I don't see the fixperms.sh script in /usr/local/nagiosxi/scripts/ but I tried the rest without success. Not sure if the script is the missing link to my problem.
--Berto
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Plugins won't install through web interface.
Can you please post the results of these commands:
Also, can you please provide us with the link to the plugin you found so we can test it uploads OK.
What version of Nagios XI are you using?
Code: Select all
ls -al /usr/local/nagios/libexec/
grep nagios /etc/groupWhat version of Nagios XI are you using?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Plugins won't install through web interface.
Here is the requested output.
Here is the link to the plugin...https://exchange.nagios.org/directory/P ... ne/details
Nagios XI version is 2014R2.7
/etc/group doesn't have nagios as I created an LDAP group for nagios, does it need to be in /etc/group?
--Berto
Code: Select all
[root~]# ls -al /usr/local/nagios/libexec/
total 9128
drwxrwxr-x 2 nagios nagios 4096 Aug 8 11:53 .
drwxr-xr-x 9 root root 4096 Aug 8 11:51 ..
-rwxr-xr-x 1 root root 179386 Aug 8 11:51 check_apt
-rwxr-xr-x 1 root root 6897 Aug 8 11:51 check_asterisk.pl
-rwxr-xr-x 1 root root 4173 Aug 8 11:52 check_bl
-rwxr-xr-x 1 root root 2287 Aug 8 11:52 check_bpi.php
-rwxr-xr-x 1 root root 2252 Aug 8 11:51 check_breeze
-rwxr-xr-x 1 root root 179811 Aug 8 11:51 check_by_ssh
lrwxrwxrwx 1 root root 9 Aug 8 11:51 check_clamd -> check_tcp
-rwxr-xr-x 1 root root 137133 Aug 8 11:51 check_cluster
-r-sr-xr-x 1 root root 175434 Aug 8 11:51 check_dhcp
-rwxr-xr-x 1 root root 174533 Aug 8 11:51 check_dig
-rwxr-xr-x 1 root root 3861 Aug 8 11:51 check_dir
-rwxr-xr-x 1 root root 193508 Aug 8 11:51 check_disk
-rwxr-xr-x 1 root root 9290 Aug 8 11:51 check_disk_smb
-rwxr-xr-x 1 root root 189187 Aug 8 11:51 check_dns
-rwxr-xr-x 1 root root 8515 Aug 8 11:52 check_domain.php
-rwxr-xr-x 1 root root 85171 Aug 8 11:51 check_dummy
-rwxr-xr-x 1 root root 5625 Aug 8 11:52 check_em01.pl
-rwxr-xr-x 1 root root 38345 Aug 8 11:52 check_email_delivery
-rwxr-xr-x 1 root root 20511 Aug 8 11:52 check_email_delivery_epn
-rwxr-xr-x 1 root root 20039 Aug 8 11:51 check_email_loop.pl
-rwxr-xr-x 1 root root 82841 Aug 8 11:53 check_esx3.pl
-rwxr-xr-x 1 root root 3350 Aug 8 11:51 check_file_age
-rwxr-xr-x 1 root root 6316 Aug 8 11:51 check_flexlm
-rwxr-xr-x 1 root root 180909 Aug 8 11:51 check_fping
lrwxrwxrwx 1 root root 9 Aug 8 11:51 check_ftp -> check_tcp
-rwxr-xr-x 1 root root 3446 Aug 8 11:52 check_ftp_fully
-rwxr-xr-x 1 root root 175504 Aug 8 11:51 check_hpjd
-rwxr-xr-x 1 root root 335996 Aug 8 11:51 check_http
-r-sr-xr-x 1 root root 182091 Aug 8 11:51 check_icmp
-rwxr-xr-x 1 root root 146251 Aug 8 11:51 check_ide_smart
-rwxr-xr-x 1 root root 1794 Aug 8 11:53 check_ifoperstatnag
-rwxr-xr-x 1 root root 15124 Aug 8 11:51 check_ifoperstatus
-rwxr-xr-x 1 root root 12601 Aug 8 11:51 check_ifstatus
lrwxrwxrwx 1 root root 9 Aug 8 11:51 check_imap -> check_tcp
-rwxr-xr-x 1 root root 35413 Aug 8 11:52 check_imap_receive
-rwxr-xr-x 1 root root 15576 Aug 8 11:52 check_imap_receive_epn
-rwxr-xr-x 1 root root 6888 Aug 8 11:51 check_ircd
lrwxrwxrwx 1 root root 9 Aug 8 11:51 check_jabber -> check_tcp
-rwxr-xr-x 1 root root 157786 Aug 8 11:51 check_ldap
lrwxrwxrwx 1 root root 10 Aug 8 11:51 check_ldaps -> check_ldap
-rwxr-xr-x 1 root root 158188 Aug 8 11:51 check_load
-rwxr-xr-x 1 root root 5989 Aug 8 11:51 check_log
-rwxr-xr-x 1 root root 21481 Aug 8 11:51 check_mailq
-rwxr-xr-x 1 root root 56350 Aug 8 11:52 check_mongodb.py
-rwxr-xr-x 1 root root 144365 Aug 8 11:51 check_mrtg
-rwxr-xr-x 1 root root 145410 Aug 8 11:51 check_mrtgtraf
-rwxr-xr-x 1 root root 17546 Aug 8 11:52 check_mssql
-rwxr-xr-x 1 root root 14446 Aug 8 11:52 check_mssql_database.py
-rwxr-xr-x 1 root root 20473 Aug 8 11:52 check_mssql_server.py
-rwxr-xr-x 1 root root 190960 Aug 8 11:51 check_mysql
-rwxr-xr-x 1 root root 122024 Aug 8 11:51 check_mysql_health
-rwxr-xr-x 1 root root 175430 Aug 8 11:51 check_mysql_query
-rwxr-xr-x 1 root root 157502 Aug 8 11:51 check_nagios
-rwxr-xr-x 1 root root 14602 Aug 8 11:52 check_nagioslogserver.php
-rwxr-xr-x 1 root root 7465 Aug 8 11:52 check_nagios_performance.php
-rwxr-xr-x 1 root root 20661 Aug 8 11:52 check_nagiosxiserver.php
-rwxr-xr-x 1 root root 4283 Aug 8 11:52 check_ncpa.py
-rwxr-xr-x 1 root root 10037 Aug 8 11:52 check_nna.py
lrwxrwxrwx 1 root root 9 Aug 8 11:51 check_nntp -> check_tcp
lrwxrwxrwx 1 root root 9 Aug 8 11:51 check_nntps -> check_tcp
-rwxrwxr-x 1 nagios nagios 76841 Aug 8 11:51 check_nrpe
-rwxr-xr-x 1 root root 179898 Aug 8 11:51 check_nt
-rwxr-xr-x 1 root root 184233 Aug 8 11:51 check_ntp
-rwxr-xr-x 1 root root 173238 Aug 8 11:51 check_ntp_peer
-rwxr-xr-x 1 root root 171491 Aug 8 11:51 check_ntp_time
-rwxr-xr-x 1 root root 212455 Aug 8 11:51 check_nwstat
-rwxr-xr-x 1 root root 8779 Aug 8 11:51 check_oracle
-rwxr-xr-x 1 root root 160229 Aug 8 11:51 check_overcr
-rwxr-xr-x 1 root root 164331 Aug 8 11:51 check_pgsql
-rwxr-xr-x 1 root root 183778 Aug 8 11:51 check_ping
-rwxr-xr-x 1 nagios nagios 6183 Aug 8 11:51 check_pnp_rrds.pl
lrwxrwxrwx 1 root root 9 Aug 8 11:51 check_pop -> check_tcp
-rwxr-xr-x 1 root root 388326 Aug 8 11:52 check_postgres.pl
-rwxr-xr-x 1 root root 187057 Aug 8 11:51 check_procs
-rwxr-xr-x 1 root root 29938 Aug 8 11:53 check_radius_adv
-rwxr-xr-x 1 root root 157687 Aug 8 11:51 check_real
-rwxr-xr-x 1 root root 9582 Aug 8 11:51 check_rpc
-rwxr-xr-x 1 root root 9743 Aug 8 11:51 check_rrdtraf
-rwxr-xr-x 1 root root 5299 Aug 8 11:51 check_rrdtraf.php
-rwxr-xr-x 1 root root 1453 Aug 8 11:51 check_sensors
lrwxrwxrwx 1 root root 9 Aug 8 11:51 check_simap -> check_tcp
-rw-r--r-- 1 root root 7599 Aug 8 11:51 check_sip
-rwxr-xr-x 1 root root 247954 Aug 8 11:51 check_smtp
-rwxr-xr-x 1 root root 20226 Aug 8 11:52 check_smtp_send
-rwxr-xr-x 1 root root 10440 Aug 8 11:52 check_smtp_send_epn
-rwxr-xr-x 1 root root 251361 Aug 8 11:51 check_snmp
-rwxr-xr-x 1 root root 10951 Aug 8 11:51 check_snmp_boostedge.pl
-rwxr-xr-x 1 root root 17866 Aug 8 11:51 check_snmp_cpfw.pl
-rwxr-xr-x 1 root root 8747 Aug 8 11:51 check_snmp_css_main.pl
-rwxr-xr-x 1 root root 16786 Aug 8 11:51 check_snmp_css.pl
-rwxr-xr-x 1 root root 33562 Aug 8 11:51 check_snmp_env.pl
-rwxr-xr-x 1 root root 23464 Aug 8 11:53 check_snmp_generic.pl
-rwxr-xr-x 1 root root 31919 Aug 8 11:51 check_snmp_int.pl
-rwxr-xr-x 1 root root 10108 Aug 8 11:51 check_snmp_linkproof_nhr.pl
-rwxr-xr-x 1 root root 22839 Aug 8 11:53 check_snmp_load.pl
-rwxr-xr-x 1 root root 23886 Aug 8 11:52 check_snmp_load_wizard.pl
-rwxr-xr-x 1 root root 18734 Aug 8 11:51 check_snmp_mem.pl
-rwxr-xr-x 1 root root 11898 Aug 8 11:51 check_snmp_nsbox.pl
-rwxr-xr-x 1 root root 26182 Aug 8 11:53 check_snmp_process.pl
-rwxr-xr-x 1 root root 26183 Aug 8 11:52 check_snmp_process_wizard.pl
-rwxr-xr-x 1 root root 25483 Aug 8 11:53 check_snmp_storage.pl
-rwxr-xr-x 1 root root 25484 Aug 8 11:52 check_snmp_storage_wizard.pl
-rwxr-xr-x 1 root root 14489 Aug 8 11:51 check_snmp_vrrp.pl
-rwxr-xr-x 1 root root 12058 Aug 8 11:53 check_snmp_win.pl
lrwxrwxrwx 1 root root 9 Aug 8 11:51 check_spop -> check_tcp
-rwxr-xr-x 1 root root 155515 Aug 8 11:51 check_ssh
-rwxr-xr-x 1 root root 8337 Aug 8 11:53 check_ssh_expect.pl
lrwxrwxrwx 1 root root 9 Aug 8 11:51 check_ssmtp -> check_tcp
-rwxr-xr-x 1 root root 141193 Aug 8 11:51 check_swap
-rwxr-xr-x 1 root root 230877 Aug 8 11:51 check_tcp
-rwxr-xr-x 1 root root 156673 Aug 8 11:51 check_time
lrwxrwxrwx 1 root root 9 Aug 8 11:51 check_udp -> check_tcp
-rwxr-xr-x 1 root root 168677 Aug 8 11:51 check_ups
-rwxr-xr-x 1 root root 138067 Aug 8 11:51 check_uptime
-rwxr-xr-x 1 root root 136217 Aug 8 11:51 check_users
-rwxr-xr-x 1 root root 2937 Aug 8 11:51 check_wave
-rwxr-xr-x 1 root root 307 Aug 8 11:51 check_webinject.sh
-rwxr-xr-x 1 root root 7065 Aug 8 11:53 check_win_snmp_disk.pl
-rwxr-xr-x 1 root root 2405 Aug 8 11:53 check_wmi_plus.conf
-rwxr-xr-x 1 root root 64477 Aug 8 11:53 check_wmi_plus.ini
-rwxr-xr-x 1 root root 237155 Aug 8 11:53 check_wmi_plus.pl
-rwxr-xr-x 1 root root 131646 Aug 8 11:51 negate
-rwxr-xr-x 1 nagios nagios 42802 Aug 8 11:51 process_perfdata.pl
-rwxr-xr-x 1 root root 64714 Aug 8 11:51 send_nsca
-rwxr-xr-x 1 root root 125892 Aug 8 11:51 urlize
-rwxr-xr-x 1 root root 1913 Aug 8 11:51 utils.pm
-rwxr-xr-x 1 root root 2791 Aug 8 11:51 utils.shNagios XI version is 2014R2.7
/etc/group doesn't have nagios as I created an LDAP group for nagios, does it need to be in /etc/group?
--Berto
Last edited by tmcdonald on Thu Aug 13, 2015 12:58 am, edited 1 time in total.
Reason: Please use [code][/code] tags around long output
Reason: Please use [code][/code] tags around long output
Re: Plugins won't install through web interface.
Below is the default groups created in the /etc/group file.
Try and recreate that using the LDAP account and see if that fixes it for you.
Code: Select all
nagios:x:500:nagios,apache,snmptt
nagcmd:x:501:nagios,apache,snmpttBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Plugins won't install through web interface.
I changed /etc/group but I'm still getting "Plugin could not be installed - directory permissions may be incorrect."
--Berto
--Berto
Re: Plugins won't install through web interface.
Try running to see if this fixes the permissions for you.
Run the following and post the output here if it still fails.
Code: Select all
cd /usr/local/nagiosxi/scripts/
./reset_config_perms.sh
Code: Select all
ll /usr/local/nagios
grep nag /etc/group
grep nag /etc/passwdBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Plugins won't install through web interface.
I still get the same error after running reset_config_perms.sh
Here is the output requested;
[root@scripts]# ll /usr/local/nagios
total 28
drwxrwxr-x 2 nagios nagios 4096 Aug 8 11:51 bin
drwsrwsr-x 7 apache nagios 4096 Aug 8 13:13 etc
drwxr-xr-x 2 root root 4096 Aug 8 11:51 include
drwxrwxr-x 2 nagios nagios 4096 Aug 12 17:39 libexec
drwxrwxr-x 2 nagios nagios 4096 Aug 8 11:50 sbin
drwxrwxr-x 14 nagios nagios 4096 Aug 8 11:52 share
drwxrwxr-x 6 nagios nagios 4096 Aug 12 19:17 var
I created in LDAP a user nagios and groups for nagios so /etc/group and /etc/passwd would be empty.
--Berto
Here is the output requested;
[root@scripts]# ll /usr/local/nagios
total 28
drwxrwxr-x 2 nagios nagios 4096 Aug 8 11:51 bin
drwsrwsr-x 7 apache nagios 4096 Aug 8 13:13 etc
drwxr-xr-x 2 root root 4096 Aug 8 11:51 include
drwxrwxr-x 2 nagios nagios 4096 Aug 12 17:39 libexec
drwxrwxr-x 2 nagios nagios 4096 Aug 8 11:50 sbin
drwxrwxr-x 14 nagios nagios 4096 Aug 8 11:52 share
drwxrwxr-x 6 nagios nagios 4096 Aug 12 19:17 var
I created in LDAP a user nagios and groups for nagios so /etc/group and /etc/passwd would be empty.
--Berto
Re: Plugins won't install through web interface.
Can you tail the Apache error log while you try to upload the plugin and post the output?
Another option is that you can use Secure Copy to copy the plugin manually to the system.
This is the folder where you copy the plugin to.
Can you create the entries in the /etc/group file like my example to see it that fixes it?
Code: Select all
tail -f /var/log/httpd/error_logThis is the folder where you copy the plugin to.
Code: Select all
/usr/local/nagios/libexecBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Plugins won't install through web interface.
Here is the requested output.
tail -f /var/log/httpd/error_log
[Thu Aug 13 15:52:56 2015] [error] [client 158.147.155.65] PHP Notice: Undefined variable: sync_table_status in /usr/lo cal/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://lnsvr0615.gcsd.harri s.com/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 13 15:52:58 2015] [error] [client 158.147.155.65] 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://lnsvr0615.gcsd.har ris.com/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 13 15:52:58 2015] [error] [client 158.147.155.65] PHP Notice: Undefined variable: sync_table_status in /usr/lo cal/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://lnsvr0615.gcsd.harri s.com/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 13 15:53:48 2015] [error] [client 127.0.0.1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html /includes/components/ccm/includes/common_functions.inc.php on line 710
[Thu Aug 13 15:53:48 2015] [error] [client 127.0.0.1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html /includes/components/ccm/includes/common_functions.inc.php on line 711
[Thu Aug 13 15:53:49 2015] [error] [client 127.0.0.1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html /includes/components/ccm/includes/common_functions.inc.php on line 710
[Thu Aug 13 15:53:49 2015] [error] [client 127.0.0.1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html /includes/components/ccm/includes/common_functions.inc.php on line 711
[Thu Aug 13 15:55:40 2015] [error] [client 158.147.155.65] 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://lnsvr0615.gcsd.har ris.com/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 13 15:55:58 2015] [error] [client 127.0.0.1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html /includes/components/ccm/includes/common_functions.inc.php on line 710
[Thu Aug 13 15:55:58 2015] [error] [client 127.0.0.1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html /includes/components/ccm/includes/common_functions.inc.php on line 711
I did add the entries to /etc/group but I still got the error.
--Berto
tail -f /var/log/httpd/error_log
[Thu Aug 13 15:52:56 2015] [error] [client 158.147.155.65] PHP Notice: Undefined variable: sync_table_status in /usr/lo cal/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://lnsvr0615.gcsd.harri s.com/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 13 15:52:58 2015] [error] [client 158.147.155.65] 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://lnsvr0615.gcsd.har ris.com/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 13 15:52:58 2015] [error] [client 158.147.155.65] PHP Notice: Undefined variable: sync_table_status in /usr/lo cal/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://lnsvr0615.gcsd.harri s.com/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 13 15:53:48 2015] [error] [client 127.0.0.1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html /includes/components/ccm/includes/common_functions.inc.php on line 710
[Thu Aug 13 15:53:48 2015] [error] [client 127.0.0.1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html /includes/components/ccm/includes/common_functions.inc.php on line 711
[Thu Aug 13 15:53:49 2015] [error] [client 127.0.0.1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html /includes/components/ccm/includes/common_functions.inc.php on line 710
[Thu Aug 13 15:53:49 2015] [error] [client 127.0.0.1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html /includes/components/ccm/includes/common_functions.inc.php on line 711
[Thu Aug 13 15:55:40 2015] [error] [client 158.147.155.65] 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://lnsvr0615.gcsd.har ris.com/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 13 15:55:58 2015] [error] [client 127.0.0.1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html /includes/components/ccm/includes/common_functions.inc.php on line 710
[Thu Aug 13 15:55:58 2015] [error] [client 127.0.0.1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html /includes/components/ccm/includes/common_functions.inc.php on line 711
I did add the entries to /etc/group but I still got the error.
--Berto
Re: Plugins won't install through web interface.
Can you run the following and post the output here?
Code: Select all
ll /usr/local/nagios/libexec/Be sure to check out our Knowledgebase for helpful articles and solutions!