Page 1 of 1

Dashlet Installation Error

Posted: Thu Nov 03, 2016 9:11 am
by maartin.pii
Hi Guys,

I've been having the following issue-> When I try to install the GeoMap Dashlet

1) First it failed and from the logs I've seen this errors:

[Tue Nov 01 17:21:16.920612 2016] [:error] [pid 20378] [client 10.20.186.126:54375] PHP Warning: move_uploaded_file(/usr/local/nagiosxi/tmp/dashlet-googlemap.zip): failed to open stream: Permission denied in /usr/local/nagiosxi/html/admin/dashlets.php on line 245, referer: http://10.20.234.166/nagiosxi/admin/dashlets.php?&=
[Tue Nov 01 17:21:16.920688 2016] [:error] [pid 20378] [client 10.20.186.126:54375] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phptYV5Fr' to '/usr/local/nagiosxi/tmp/dashlet-googlemap.zip' in /usr/local/nagiosxi/html/admin/dashlets.php on line 245, referer: http://10.20.234.166/nagiosxi/admin/dashlets.php?&=
[Tue Nov 01 17:21:27.025508 2016] [:error] [pid 25922] [client 10.20.186.126:54382] PHP Warning: move_uploaded_file(/usr/local/nagiosxi/tmp/dashlet-googlemap.zip): failed to open stream: Permission denied in /usr/local/nagiosxi/html/admin/dashlets.php on line 245, referer: http://10.20.234.166/nagiosxi/admin/dashlets.php
[Tue Nov 01 17:21:27.025574 2016] [:error] [pid 25922] [client 10.20.186.126:54382] PHP Warning: move_uploaded_file(): Unable to move '/tmp/php5FKM0U' to '/usr/local/nagiosxi/tmp/dashlet-googlemap.zip' in /usr/local/nagiosxi/html/admin/dashlets.php on line 245, referer: http://10.20.234.166/nagiosxi/admin/dashlets.php


2) I try to correct the permissions by hand as you can see on the attached files and then I received the message 'dashlet scheduled for installation' and nothing happend.

I tried to restart httpd and Nagios but the error still persist. I also tied to follow this kb doc -> https://support.nagios.com/kb/article.php?id=174


Any help will be fine,

Regards

Re: Dashlet Installation Error

Posted: Thu Nov 03, 2016 10:51 am
by avandemore
What version of XI are you using? The dashlet installs fine for me on 5.3.2.

Re: Dashlet Installation Error

Posted: Mon Nov 07, 2016 1:32 pm
by maartin.pii
I have Nagios 5.2.9! I am kinf of confused about the error:

[Mon Nov 07 15:29:31.871650 2016] [:error] [pid 27080] [client :49734] PHP Warning: move_uploaded_file(/usr/local/nagiosxi/tmp/dashlet-googlemap.zip): failed to open stream: Permission denied in /usr/local/nagiosxi/html/admin/dashlets.php on line 245, referer: http:///nagiosxi/admin/dashlets.php?&=
[Mon Nov 07 15:29:31.871763 2016] [:error] [pid 27080] [client :49734] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phprSAH9W' to '/usr/local/nagiosxi/tmp/dashlet-googlemap.zip' in /usr/local/nagiosxi/html/admin/dashlets.php on line 245, referer: http:///nagiosxi/admin/dashlets.php?&=

Re: Dashlet Installation Error

Posted: Mon Nov 07, 2016 1:57 pm
by maartin.pii
I am also kind of confused with the message that I get 'Dashlet Installation scheduled' and then nothing happens... Is there any way to install it by hand? or by cli ?

Re: Dashlet Installation Error

Posted: Mon Nov 07, 2016 3:24 pm
by avandemore
While 5.2.9 isn't ancient by any means, it's definitely not current. There have be some permission and other issues resolved between then and 5.3.2. If you aren't opposed to an upgrade, I would do that first.

It also seems we have different permissions:

Code: Select all

ls -la /usr/local/nagiosxi/tmp/
total 0
drwsrwsr-x.  2 nagios nagios  6 Oct 31 11:37 .
drwxr-xr-x. 10 nagios nagios 94 Oct 31 11:35 ..

Re: Dashlet Installation Error

Posted: Thu Nov 10, 2016 3:33 pm
by maartin.pii
That's ok guys I will upgrade it and let you know how it goes.

Re: Dashlet Installation Error

Posted: Thu Nov 10, 2016 3:45 pm
by avandemore
I'll leave the thread open in case the upgrade doesn't work for you. Please let us know if it does.

Re: Dashlet Installation Error

Posted: Mon Jan 02, 2017 10:25 am
by maartin.pii
This thread could be closed.

Regards,