Active Directory Integration Nagios Fusion - Upload Failed
Active Directory Integration Nagios Fusion - Upload Failed
Hello,
First of all my company is a customer of Nagios, I'm just not sure how to access the customers section of the support forum.
Anyway, I'm trying to add the Active Directory Integration for component for Nagios Fusion. As instructed I did install the php-ldap package first.
However, when I attempt to upload the component, an error message 'Component upload failed' is displayed and it does not upload.
Any ideas on how this AD component is added to Fusion?
REF: https://exchange.nagios.org/directory/A ... on/details
First of all my company is a customer of Nagios, I'm just not sure how to access the customers section of the support forum.
Anyway, I'm trying to add the Active Directory Integration for component for Nagios Fusion. As instructed I did install the php-ldap package first.
However, when I attempt to upload the component, an error message 'Component upload failed' is displayed and it does not upload.
Any ideas on how this AD component is added to Fusion?
REF: https://exchange.nagios.org/directory/A ... on/details
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Active Directory Integration Nagios Fusion - Upload Fail
Can you please email [email protected] requesting for your user account thur686 to be granted access to the customer support forums.
What version of Nagios Fusion do you have?
I tried on a system here and it worked ok.
It could be possible your download was corrupted.
I did an md5sum on the download and got the following:
Make sure you upload the ZIP file, don't extract it and try to upload the individual files.
Run this command in an SSH session on your fusion server:
Then try and upload the component again via Admin > System Extensions > Manage Components.
Is anything output in the SSH session?
What version of Nagios Fusion do you have?
I tried on a system here and it worked ok.
It could be possible your download was corrupted.
I did an md5sum on the download and got the following:
Code: Select all
md5sum active_directory.zip
1d22eda8b78a287217e2edeb16be323a active_directory.zipRun this command in an SSH session on your fusion server:
Code: Select all
tail -f /var/log/httpd/error_logIs anything output in the SSH session?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Active Directory Integration Nagios Fusion - Upload Fail
Thank you Box293, I have emailed Nagios as you suggested.
So I ran md5sum on the zip I downloaded from the exchange and it returned this;
1d22eda8b78a287217e2edeb16be323a active_directory.zip
So the download is good.
As suggested, I tailed the httpd error_log and found this;
[Tue Oct 27 10:29:16 2015] [error] [client 10.10.10.30] PHP Warning: move_uploaded_file(/usr/local/nagiosfusion/tmp/component-active_directory.zip): failed to open stream: Permission denied in /usr/local/nagiosfusion/html/admin/components.php on line 389, referer: http://10.20.20.30/nagiosfusion/admin/components.php
[Tue Oct 27 10:29:16 2015] [error] [client 10.10.10.30] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpTV98Eq' to '/usr/local/nagiosfusion/tmp/component-active_directory.zip' in /usr/local/nagiosfusion/html/admin/components.php on line 389, referer: http://10.20.20.30/nagiosfusion/admin/components.php
Reading the file components.php on line 389 reveals this;
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)){
So I ran md5sum on the zip I downloaded from the exchange and it returned this;
1d22eda8b78a287217e2edeb16be323a active_directory.zip
So the download is good.
As suggested, I tailed the httpd error_log and found this;
[Tue Oct 27 10:29:16 2015] [error] [client 10.10.10.30] PHP Warning: move_uploaded_file(/usr/local/nagiosfusion/tmp/component-active_directory.zip): failed to open stream: Permission denied in /usr/local/nagiosfusion/html/admin/components.php on line 389, referer: http://10.20.20.30/nagiosfusion/admin/components.php
[Tue Oct 27 10:29:16 2015] [error] [client 10.10.10.30] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpTV98Eq' to '/usr/local/nagiosfusion/tmp/component-active_directory.zip' in /usr/local/nagiosfusion/html/admin/components.php on line 389, referer: http://10.20.20.30/nagiosfusion/admin/components.php
Reading the file components.php on line 389 reveals this;
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)){
Re: Active Directory Integration Nagios Fusion - Upload Fail
Also, the version of Fusion we are using is 2014R1.1
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Active Directory Integration Nagios Fusion - Upload Fail
Thanks for the information.
Can you please upload the file:
/etc/sudoers
Also, any files in /etc/sudoers.d/
What is the output of:
Can you please upload the file:
/etc/sudoers
Also, any files in /etc/sudoers.d/
What is the output of:
Code: Select all
grep apache /etc/passwd
grep apache /etc/group
ls -al /tmp
ls -al /usr/local/nagiosfusion/tmpAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Active Directory Integration Nagios Fusion - Upload Fail
Thanks Box293, I've attached the sudoers file as requested.
grep apache /etc/passwd
apache
48:48:Apache:/var/www:/sbin/nologin
grep apache /etc/group
apache
48:
ls -al /tmp
total 64
drwxrwxrwt. 6 root root 4096 Oct 28 11:36 .
dr-xr-xr-x. 23 root root 4096 Oct 20 15:25 ..
-rw-r--r-- 1 root root 24111 Oct 27 10:28 active_directory.zip
drwxrwxrwt 2 root root 4096 Oct 20 15:25 .ICE-unix
-rw-------. 1 root root 44 Jul 22 13:17 ntpUYSBYr
srwxrwxrwx 1 postgres postgres 0 Oct 28 11:05 .s.PGSQL.5432
-rw------- 1 postgres postgres 25 Oct 28 11:05 .s.PGSQL.5432.lock
-r--r----- 1 root root 4229 Oct 28 11:36 sudoers
drwxr-xr-x 2 root root 4096 Jul 27 11:36 vmware-config0
drwx------. 2 root root 4096 Oct 20 15:25 vmware-root
drwxr-xr-x. 3 root root 4096 Jul 27 11:34 vmwareupdates
ls -al /usr/local/nagiosfusion/tmp
total 36
drwsrwsr-x. 2 nagios 500 4096 Sep 11 14:10 .
drwxr-xr-x. 8 nagios 500 4096 Nov 15 2012 ..
-rw-r--r-- 1 root 500 9116 Sep 11 14:00 fusion_mod_trial.zip
-rw-r--r-- 1 root 500 12806 Jun 26 14:26 mod_trial.php
grep apache /etc/passwd
apache
grep apache /etc/group
apache
ls -al /tmp
total 64
drwxrwxrwt. 6 root root 4096 Oct 28 11:36 .
dr-xr-xr-x. 23 root root 4096 Oct 20 15:25 ..
-rw-r--r-- 1 root root 24111 Oct 27 10:28 active_directory.zip
drwxrwxrwt 2 root root 4096 Oct 20 15:25 .ICE-unix
-rw-------. 1 root root 44 Jul 22 13:17 ntpUYSBYr
srwxrwxrwx 1 postgres postgres 0 Oct 28 11:05 .s.PGSQL.5432
-rw------- 1 postgres postgres 25 Oct 28 11:05 .s.PGSQL.5432.lock
-r--r----- 1 root root 4229 Oct 28 11:36 sudoers
drwxr-xr-x 2 root root 4096 Jul 27 11:36 vmware-config0
drwx------. 2 root root 4096 Oct 20 15:25 vmware-root
drwxr-xr-x. 3 root root 4096 Jul 27 11:34 vmwareupdates
ls -al /usr/local/nagiosfusion/tmp
total 36
drwsrwsr-x. 2 nagios 500 4096 Sep 11 14:10 .
drwxr-xr-x. 8 nagios 500 4096 Nov 15 2012 ..
-rw-r--r-- 1 root 500 9116 Sep 11 14:00 fusion_mod_trial.zip
-rw-r--r-- 1 root 500 12806 Jun 26 14:26 mod_trial.php
You do not have the required permissions to view the files attached to this post.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Active Directory Integration Nagios Fusion - Upload Fail
It looks like the apache user is not a member of the Nagios group which is most likely the cause of this problem.
Please type this command:
Now reboot and let us know if that fixes the problem.
Please type this command:
Code: Select all
usermod -a -G nagios apacheAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Active Directory Integration Nagios Fusion - Upload Fail
Thanks Box293, your suggestions helped me find the problem. This has been resolved.
It turns out that the groups 'nagios' and 'nagcmd' did not even exist.
So I created the groups 'nagios' and 'nagcmd and added the users 'nagios' and 'apache' to those groups. After that, I rebooted the server and was able to upload the Active Directory component.
FYI, this Fusion box is a virtual CentOS appliance (.ova) that I downloaded from Nagios months ago.
It turns out that the groups 'nagios' and 'nagcmd' did not even exist.
So I created the groups 'nagios' and 'nagcmd and added the users 'nagios' and 'apache' to those groups. After that, I rebooted the server and was able to upload the Active Directory component.
FYI, this Fusion box is a virtual CentOS appliance (.ova) that I downloaded from Nagios months ago.
Re: Active Directory Integration Nagios Fusion - Upload Fail
Nice to see this has been resolved! Do you mind if I close this thread out now?
Former Nagios Employee
Re: Active Directory Integration Nagios Fusion - Upload Fail
Yes, it can be closed.