Google map dashlet upload failed
Re: Google map dashlet upload failed
/usr/local/nagiosxi/html/admin/dashlets.php Attached.
Does that include all of the requested info?
Does that include all of the requested info?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Google map dashlet upload failed
Can you please upload the file:
/etc/sudoers
Also, any files in /etc/sudoers.d/
Can you send the output of these commands please:
/etc/sudoers
Also, any files in /etc/sudoers.d/
Can you send the output of these commands please:
Code: Select all
grep nag /etc/passwd
grep nag /etc/groupAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Google map dashlet upload failed
Results of grep nag /etc/passwd
systemd-network
192:192:systemd Network Management:/:/sbin/nologin
nagios
1000
:/home/nagios:/bin/bash
nagios1
1001
:/home/nagios1:/bin/bash
nagiosql
1002
:/home/nagiosql:/bin/bash
nagiosxi
1003
:/home/nagiosxi:/bin/bash
[root@NAGIOSXI etc]#
Results of /etc/group
nagios
1000:nagios,apache
nagcmd
1001:nagios,apache
nagios1
1002:
nagiosql
1003:
nagiosxi
1004:
[root@NAGIOSXI etc]#
systemd-network
nagios
nagios1
nagiosql
nagiosxi
[root@NAGIOSXI etc]#
Results of /etc/group
nagios
nagcmd
nagios1
nagiosql
nagiosxi
[root@NAGIOSXI etc]#
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Google map dashlet upload failed
Can you please upload the file:
/etc/sudoers
Also, any files in /etc/sudoers.d/
/etc/sudoers
Also, any files in /etc/sudoers.d/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Google map dashlet upload failed
File /etc/sudoers uploaded.
There were no files in /etc/sudoers.d/
There were no files in /etc/sudoers.d/
Re: Google map dashlet upload failed
I don't see the sudoers file attached anywhere. Could you please send that over?
Can you also share the output of the following command executed from the CLI of your Nagios XI machine:
Can you also share the output of the following command executed from the CLI of your Nagios XI machine:
Code: Select all
php -r "error_reporting(E_ALL);require('/usr/local/nagiosxi/html/includes/common.inc.php'); exec('echo \'test\' >> /tmp/test_02313.txt');echo move_uploaded_file('/tmp/test_02313.txt', '/usr/local/nagiosxi/tmp/test_02313.txt') . PHP_EOL;" && ls -al /tmp/ && ls -al /usr/local/nagiosxi/tmpFormer Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Google map dashlet upload failed
I thought I had uploaded it. I will try again.
You do not have the required permissions to view the files attached to this post.
Re: Google map dashlet upload failed
Thank you for your help with this issue.
Code: Select all
[root@NAGIOSXI ~]# php -r "error_reporting(E_ALL);require('/usr/local/nagiosxi/html/includes/common.inc.php'); exec('echo \'test\' >> /tmp/test_02313.txt');echo move_uploaded_file('/tmp/test_02313.txt', '/usr/local/nagiosxi/tmp/test_02313.txt') . PHP_EOL;" && ls -al /tmp/ && ls -al /usr/local/nagiosxi/tmp
total 351088
drwxrwxrwt. 26 root root 4096 Mar 10 17:56 .
dr-xr-xr-x. 18 root root 4096 Mar 1 19:12 ..
-rw-r--r-- 1 root root 126 Mar 9 12:43 check_traffic.log.3905
-rw-------. 1 nagios nagios 938 Mar 1 13:04 .configtest.4VDdrUWv
drwxrwxrwt. 2 root root 6 Mar 1 11:47 .font-unix
drwxr-xr-x. 2 root root 18 Mar 1 12:30 hsperfdata_root
drwxr-xr-x. 2 tomcat tomcat 17 Mar 9 11:11 hsperfdata_tomcat
drwxrwxrwt. 2 root root 6 Mar 1 11:47 .ICE-unix
-rwx------. 1 root root 813 Mar 1 11:49 ks-script-Honfiq
-rw-r--r-- 1 nagios nagios 63 Mar 10 17:51 mssql-1141581770752694254.tmp
-rw-r--r-- 1 nagios nagios 69 Mar 10 17:54 mssql-1283727575858865015.tmp
-rw-r--r-- 1 nagios nagios 64 Mar 10 17:52 mssql-1321488659500618885.tmp
-rw-r--r-- 1 nagios nagios 66 Mar 10 17:52 mssql-132964327223461371.tmp
-rw-r--r-- 1 nagios nagios 65 Mar 10 17:53 mssql--2419116444633014050.tmp
-rw-r--r-- 1 nagios nagios 61 Mar 10 17:53 mssql-2701706256352478775.tmp
-rw-r--r-- 1 nagios nagios 61 Mar 10 17:56 mssql--3864704286718515131.tmp
-rw-r--r-- 1 nagios nagios 65 Mar 10 17:55 mssql--396015137631016414.tmp
-rw-r--r-- 1 nagios nagios 64 Mar 10 17:55 mssql-4026009966277879306.tmp
-rw-r--r-- 1 nagios nagios 63 Mar 10 17:54 mssql--4223411817257950520.tmp
-rw-r--r-- 1 nagios nagios 65 Mar 10 17:54 mssql--4312826163211244445.tmp
-rw-r--r-- 1 nagios nagios 66 Mar 10 17:52 mssql-4490155121455191336.tmp
-rw-r--r-- 1 nagios nagios 67 Mar 10 17:53 mssql--4609322609475409047.tmp
-rw-r--r-- 1 nagios nagios 64 Mar 10 17:56 mssql-5570722221723183404.tmp
-rw-r--r-- 1 nagios nagios 60 Mar 10 17:55 mssql-5908515011125855732.tmp
-rw-r--r-- 1 nagios nagios 62 Mar 10 17:52 mssql-6223739574110868319.tmp
-rw-r--r-- 1 nagios nagios 69 Mar 10 17:52 mssql-6497009613232973374.tmp
-rw-r--r-- 1 nagios nagios 67 Mar 10 17:53 mssql-6589849198545608694.tmp
-rw-r--r-- 1 nagios nagios 68 Mar 10 17:55 mssql-7264175240196546498.tmp
-rw-r--r-- 1 nagios nagios 66 Mar 10 17:54 mssql--7264479608430024849.tmp
-rw-r--r-- 1 nagios nagios 65 Mar 10 17:55 mssql--7380177446104756163.tmp
-rw-r--r-- 1 nagios nagios 66 Mar 10 17:53 mssql--8018243486129187575.tmp
-rw-r--r-- 1 nagios nagios 67 Mar 10 17:52 mssql--8309783470699538470.tmp
-rw-r--r-- 1 nagios nagios 65 Mar 10 17:51 mssql--884952350195090971.tmp
drwxr-xr-x. 9 root root 4096 Mar 1 13:04 nagiosxi
drwxr-xr-x 3 nagios nagios 60 Mar 7 2009 NagVis-Iconset-Anim-big-0.1
-rw-r--r-- 1 root root 31797 Mar 7 18:50 NagVis-Iconset-Anim-big-0.1.tar.gz
-rw-r--r-- 1 root root 34208 Mar 8 12:23 NagVis-Iconset-Printer-0.1.tgz
drwxrwxrwx. 7 root root 4096 Feb 16 15:30 nrds
-rw-r--r--. 1 root root 19769596 Jan 6 16:26 nrds-1.2.5.tar.gz
-rw-r--r-- 1 root root 19769484 Feb 16 18:02 nrds-1.2.6.tar.gz
drwxr-xr-x 5 root root 120 Nov 30 14:27 nsis
-rw-r--r-- 1 root root 6467980 Nov 30 14:28 nsis_0_1_2.tar.gz
-rw-r--r-- 1 root root 151057 Feb 25 2016 PowerEdge+R610.rar
drwx------ 3 root root 16 Mar 9 11:11 systemd-private-e4544f4c2add448da222a48bc4f502d1-httpd.service-ejUmNi
drwx------ 3 root root 16 Mar 9 11:11 systemd-private-e4544f4c2add448da222a48bc4f502d1-mariadb.service-pjXbLp
drwx------ 3 root root 16 Mar 9 11:11 systemd-private-e4544f4c2add448da222a48bc4f502d1-ndo2db.service-50DPPJ
drwx------ 3 root root 16 Mar 9 11:11 systemd-private-e4544f4c2add448da222a48bc4f502d1-ntpd.service-D9eYxm
drwx------ 3 root root 16 Mar 9 11:11 systemd-private-e4544f4c2add448da222a48bc4f502d1-vmtoolsd.service-CyUfUa
-rw-r--r-- 1 root root 5 Mar 10 17:56 test_02313.txt
drwxrwxrwt. 2 root root 6 Mar 1 11:47 .Test-unix
-rw-r--r-- 1 root root 32 Mar 8 21:06 tmp_Nagios_int.seattle-quantum.BASP_Virtual_Adapter
-rw-r--r-- 1 root root 32 Mar 8 21:06 tmp_Nagios_int.seattle-quantum.BASP_Virtual_Adapter-QoS_Packet_Scheduler-0000
-rw-r--r-- 1 root root 32 Mar 8 21:06 tmp_Nagios_int.seattle-quantum.BASP_Virtual_Adapter-WFP_LightWeight_Filter-0000
drwxr-xr-x 2 root root 38 Mar 6 12:45 vmware-config0
drwx------ 2 root root 60 Mar 6 12:45 vmware-root
-r--r--r-- 1 root root 72083159 May 22 2016 VMwareTools-10.0.9-3917699.tar.gz
drwxr-xr-x 9 root root 4096 May 22 2016 vmware-tools-distrib
drwxr-xr-x 9 root root 137 Oct 27 11:16 vmware-vsphere-cli-distrib
-rw-r--r-- 1 root root 26857222 Dec 9 2015 VMware-vSphere-Perl-SDK-5.5.0-1384587.x86_64.tar.gz
-rw-r--r-- 1 root root 54579063 Dec 8 2015 VMware-vSphere-Perl-SDK-6.0.0-2503617.x86_64.tar.gz
-rw-r--r-- 1 root root 53518799 Mar 2 12:55 VMware-vSphere-Perl-SDK-6.5.0-4566394.x86_64.tar.gz
drwxr-xr-x. 2 root root 6 Mar 8 12:50 .webmin
-rw-r--r--. 1 root root 52480000 Dec 1 2011 wmic_1.3.13_static_64bit.tar.gz
-rwxr-xr-x. 1 root root 3514 Sep 8 2015 wmicinstall.py
drwxrwxrwt. 2 root root 6 Mar 1 11:47 .X11-unix
drwxr-xr-x. 59 root root 4096 Mar 1 13:01 xicomponents_backup
drwxr-xr-x. 11 root root 4096 Mar 1 13:03 xidashlets_backup
-rw-r--r--. 1 root root 53581707 Feb 6 09:27 xi-latest.tar.gz
drwxrwxrwt. 2 root root 6 Mar 1 11:47 .XIM-unix
drwxr-xr-x. 62 root root 4096 Mar 1 13:00 xiwizards_backup
-rw-------. 1 root root 0 Mar 1 11:46 yum.log
total 180
drwsrwsr-x. 2 apache nagios 4096 Mar 10 14:58 .
drwxr-xr-x. 10 nagios nagios 94 Mar 1 12:59 ..
-rwxrwx--- 1 apache nagios 5359 Mar 8 09:40 component-dashlet-googlemap.zip
-rwxrwx--- 1 apache nagios 8423 Mar 6 19:42 component-dashlet-sansrisingports.zip
-rwxrwx--- 1 nagios nagios 20948 Mar 6 18:34 component-googlemap.zip
-rw-r--r-- 1 apache nagios 5770 Mar 10 11:50 components_api_versions.xml
-r-xr-x--- 1 apache nagios 5359 Mar 6 19:28 dashlet-dashlet-googlemap (1).zip
-r-xr-x--- 1 apache nagios 5359 Mar 8 09:18 dashlet-dashlet-googlemap (2).zip
-r-xr-x--- 1 apache nagios 5359 Mar 6 18:21 dashlet-dashlet-googlemap.zip
-r-xr-x--- 1 apache nagios 8423 Mar 6 19:43 dashlet-dashlet-sansrisingports.zip
-r-xr-x--- 1 apache nagios 17768 Mar 6 18:18 dashlet-googlemap (1).zip
-r-xr-x--- 1 apache nagios 1884 Mar 8 09:20 dashlet-googlemapdashlet.inc.php
-r-xr-x--- 1 apache nagios 17768 Mar 6 18:14 dashlet-googlemap.zip
-rw-r--r-- 1 nagios nagios 8423 Mar 6 19:42 dashlet-sansrisingports.zip
-rw-r--r-- 1 apache nagios 336 Mar 6 11:36 phpmailer.log
-rw-r--r-- 1 apache nagios 88 Mar 10 14:57 snmpwalk-mib-2.interfaces-10.64.66.
-rw-r--r-- 1 apache nagios 22214 Mar 10 14:59 snmpwalk-mib-2.interfaces-10.64.66.11
[root@NAGIOSXI ~]#
Last edited by tmcdonald on Mon Mar 13, 2017 12:31 pm, edited 1 time in total.
Reason: Please use [code][/code] tags around long output
Reason: Please use [code][/code] tags around long output
Re: Google map dashlet upload failed
For some reason, the permission for the files in the /usr/local/nagiosxi/tmp/ are not writable by the nagios user and that looks like that is causing the error.
Login as root to the server and run the following command and post the output here
Then, lets delete the dashlets with the wrong permissions and see if you can upload it after removing them/
Run the following as root
After removing them, try and upload the dashlet again and let us know if it works.
Login as root to the server and run the following command and post the output here
Code: Select all
umask
su nagios
umaskRun the following as root
Code: Select all
rm /usr/local/nagiosxi/tmp/d*Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Google map dashlet upload failed
[root@NAGIOSXI ~]# umask
0022
[root@NAGIOSXI ~]# su nagios
[nagios@NAGIOSXI root]$ umask
0002
[nagios@NAGISOXI root]$
0022
[root@NAGIOSXI ~]# su nagios
[nagios@NAGIOSXI root]$ umask
0002
[nagios@NAGISOXI root]$