Google map dashlet upload failed
Google map dashlet upload failed
We are using the trial version of XI 5.4.2
We were able to get Google maps working however, the google maps dashlet, dashlet-googlemaps.zip fails to upload. We have installed other dashlets successfully but this one is failing.
Where are we going wrong?
We were able to get Google maps working however, the google maps dashlet, dashlet-googlemaps.zip fails to upload. We have installed other dashlets successfully but this one is failing.
Where are we going wrong?
Last edited by spike on Thu Mar 09, 2017 12:04 pm, edited 1 time in total.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Google map dashlet upload failed
Can you post a screenshot of what you see at http://YOURSERVER/nagiosxi/admin/dashlets.php ?
I'm wondering if it's already installed.
If not, try to upload again and then immediately run tail 50 /var/log/httpd/error_log and post the results here in a code block.
I'm wondering if it's already installed.
If not, try to upload again and then immediately run tail 50 /var/log/httpd/error_log and post the results here in a code block.
Re: Google map dashlet upload failed
The dashlet was not listed in http://YOURSERVER/nagiosxi/admin/dashlets.php so I tried to upload the dashlet again and captured the tail. Also, I tried the dashlet upload logged in as nagiosadmin and my user account which has admin permissions.
The text from the tail is below.
[Thu Mar 09 10:50:00.154524 2017] [:error] [pid 19493] [client :55087] PHP Warning: move_uploaded_file(/usr/local/nagiosxi/tmp/dashlet-dashlet-googlemap.zip): failed to open stream: Permission denied in /usr/local/nagiosxi/html/admin/dashlets.php on line 240, referer: http://XISERVER/nagiosxi/admin/dashlets.php?&=
[Thu Mar 09 10:50:00.154570 2017] [:error] [pid 19493] [client :55087] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpIjC69S' to '/usr/local/nagiosxi/tmp/dashlet-dashlet-googlemap.zip' in /usr/local/nagiosxi/html/admin/dashlets.php on line 240, referer: http://XISERVER/nagiosxi/admin/dashlets.php?&=
[Thu Mar 09 10:54:05.650247 2017] [:error] [pid 18801] [client :55434] PHP Notice: Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 223, referer: http://XISERVER/nagiosxi/login.php
[Thu Mar 09 10:54:05.651113 2017] [:error] [pid 18801] [client :55434] PHP Notice: Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 223, referer: http://XISERVER/nagiosxi/login.php
[Thu Mar 09 10:54:53.090919 2017] [:error] [pid 13170] [client :55491] PHP Warning: move_uploaded_file(/usr/local/nagiosxi/tmp/dashlet-dashlet-googlemap.zip): failed to open stream: Permission denied in /usr/local/nagiosxi/html/admin/dashlets.php on line 240, referer: http://XISERVER/nagiosxi/admin/dashlets.php
[Thu Mar 09 10:54:53.090967 2017] [:error] [pid 13170] [client :55491] PHP Warning: move_uploaded_file(): Unable to move '/tmp/php45Zuci' to '/usr/local/nagiosxi/tmp/dashlet-dashlet-googlemap.zip' in /usr/local/nagiosxi/html/admin/dashlets.php on line 240, referer: http://XISERVER/nagiosxi/admin/dashlets.php
The text from the tail is below.
[Thu Mar 09 10:50:00.154524 2017] [:error] [pid 19493] [client :55087] PHP Warning: move_uploaded_file(/usr/local/nagiosxi/tmp/dashlet-dashlet-googlemap.zip): failed to open stream: Permission denied in /usr/local/nagiosxi/html/admin/dashlets.php on line 240, referer: http://XISERVER/nagiosxi/admin/dashlets.php?&=
[Thu Mar 09 10:50:00.154570 2017] [:error] [pid 19493] [client :55087] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpIjC69S' to '/usr/local/nagiosxi/tmp/dashlet-dashlet-googlemap.zip' in /usr/local/nagiosxi/html/admin/dashlets.php on line 240, referer: http://XISERVER/nagiosxi/admin/dashlets.php?&=
[Thu Mar 09 10:54:05.650247 2017] [:error] [pid 18801] [client :55434] PHP Notice: Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 223, referer: http://XISERVER/nagiosxi/login.php
[Thu Mar 09 10:54:05.651113 2017] [:error] [pid 18801] [client :55434] PHP Notice: Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 223, referer: http://XISERVER/nagiosxi/login.php
[Thu Mar 09 10:54:53.090919 2017] [:error] [pid 13170] [client :55491] PHP Warning: move_uploaded_file(/usr/local/nagiosxi/tmp/dashlet-dashlet-googlemap.zip): failed to open stream: Permission denied in /usr/local/nagiosxi/html/admin/dashlets.php on line 240, referer: http://XISERVER/nagiosxi/admin/dashlets.php
[Thu Mar 09 10:54:53.090967 2017] [:error] [pid 13170] [client :55491] PHP Warning: move_uploaded_file(): Unable to move '/tmp/php45Zuci' to '/usr/local/nagiosxi/tmp/dashlet-dashlet-googlemap.zip' in /usr/local/nagiosxi/html/admin/dashlets.php on line 240, referer: http://XISERVER/nagiosxi/admin/dashlets.php
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Google map dashlet upload failed
What's the output of the following command? (example output included)
Also, what's the output of the following command? (example output included)
Code: Select all
[root@sender services]# ll -d /usr/local/nagiosxi/tmp/
drwsrwsr-x 2 apache nagios 124 Mar 9 13:20 /usr/local/nagiosxi/tmp/
Code: Select all
[root@sender services]# ll /usr/local/nagiosxi/html/admin/dashlets.php
-rwxr-xr-x 1 nagios nagios 10967 Feb 17 13:57 /usr/local/nagiosxi/html/admin/dashlets.php
Re: Google map dashlet upload failed
The results of the two commands are below respectively
[root@NAGIOSXI libexec]# ll -d /usr/local/nagiosxi/tmp/
drwsrwsr-x. 2 apache nagios 4096 Mar 8 09:40 /usr/local/nagiosxi/tmp/
[root@NAGIOSXI libexec]# ll /usr/local/nagiosxi/html/admin/dashlets.php
-rwxr-xr-x. 1 nagios nagios 10967 Mar 1 12:59 /usr/local/nagiosxi/html/admin/dashlets.php
[root@NAGIOSXI libexec]# ll -d /usr/local/nagiosxi/tmp/
drwsrwsr-x. 2 apache nagios 4096 Mar 8 09:40 /usr/local/nagiosxi/tmp/
[root@NAGIOSXI libexec]# ll /usr/local/nagiosxi/html/admin/dashlets.php
-rwxr-xr-x. 1 nagios nagios 10967 Mar 1 12:59 /usr/local/nagiosxi/html/admin/dashlets.php
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Google map dashlet upload failed
I suspect we have found our culprit then:
You get the t with chmod +t /tmp, but for your issue, the other letters are more important.
Code: Select all
[root@sender services]# ll -d /tmp
drwxrwxrwt. 18 root root 4096 Mar 9 14:18 /tmp
Re: Google map dashlet upload failed
[root@NAGIOSXI ~]# ll -d /tmp
drwxrwxrwt. 26 root root 4096 Mar 9 15:51 /tmp
drwxrwxrwt. 26 root root 4096 Mar 9 15:51 /tmp
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Google map dashlet upload failed
What the output of df -h and df -i?
Can you send me your Profile? You can download it by going to Admin > System Config > System Profile and click the Download Profile button in the top right corner. If for whatever reason you cannot download the profile, please put the output of View System Info (that will at least get us some info).
Also, can you attach you /usr/local/nagiosxi/html/admin/dashlets.php
Can you send me your Profile? You can download it by going to Admin > System Config > System Profile and click the Download Profile button in the top right corner. If for whatever reason you cannot download the profile, please put the output of View System Info (that will at least get us some info).
Also, can you attach you /usr/local/nagiosxi/html/admin/dashlets.php
Re: Google map dashlet upload failed
Results of df -h
[root@NAGIOSXI ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 50G 4.8G 46G 10% /
devtmpfs 5.8G 0 5.8G 0% /dev
tmpfs 5.8G 0 5.8G 0% /dev/shm
tmpfs 5.8G 217M 5.6G 4% /run
tmpfs 5.8G 0 5.8G 0% /sys/fs/cgroup
/dev/sda1 497M 213M 285M 43% /boot
/dev/mapper/centos-home 124G 33M 124G 1% /home
tmpfs 1.2G 0 1.2G 0% /run/user/1000
tmpfs 1.2G 0 1.2G 0% /run/user/0
[root@deer-mo-0 ~]#
Results of df -i
[root@NAGIOSXI ~]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/centos-root 52428800 146498 52282302 1% /
devtmpfs 1514791 356 1514435 1% /dev
tmpfs 1517462 1 1517461 1% /dev/shm
tmpfs 1517462 540 1516922 1% /run
tmpfs 1517462 16 1517446 1% /sys/fs/cgroup
/dev/sda1 512000 344 511656 1% /boot
/dev/mapper/centos-home 129572864 22 129572842 1% /home
tmpfs 1517462 1 1517461 1% /run/user/1000
tmpfs 1517462 1 1517461 1% /run/user/0
Will send the others next.
[root@NAGIOSXI ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 50G 4.8G 46G 10% /
devtmpfs 5.8G 0 5.8G 0% /dev
tmpfs 5.8G 0 5.8G 0% /dev/shm
tmpfs 5.8G 217M 5.6G 4% /run
tmpfs 5.8G 0 5.8G 0% /sys/fs/cgroup
/dev/sda1 497M 213M 285M 43% /boot
/dev/mapper/centos-home 124G 33M 124G 1% /home
tmpfs 1.2G 0 1.2G 0% /run/user/1000
tmpfs 1.2G 0 1.2G 0% /run/user/0
[root@deer-mo-0 ~]#
Results of df -i
[root@NAGIOSXI ~]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/centos-root 52428800 146498 52282302 1% /
devtmpfs 1514791 356 1514435 1% /dev
tmpfs 1517462 1 1517461 1% /dev/shm
tmpfs 1517462 540 1516922 1% /run
tmpfs 1517462 16 1517446 1% /sys/fs/cgroup
/dev/sda1 512000 344 511656 1% /boot
/dev/mapper/centos-home 129572864 22 129572842 1% /home
tmpfs 1517462 1 1517461 1% /run/user/1000
tmpfs 1517462 1 1517461 1% /run/user/0
Will send the others next.
Re: Google map dashlet upload failed
System profile.zip attached.
You do not have the required permissions to view the files attached to this post.