This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
Asckey
Posts: 15 Joined: Tue Feb 18, 2014 11:31 am
Post
by Asckey » Tue Nov 13, 2018 5:45 am
I got the below error,
Code: Select all
[Tue Nov 13 10:39:24.618916 2018] [:error] [pid 117486] [client *IP Address*:17632] PHP Warning: file_put_contents(/tmp/934d8d690107176a079ef8b3e392024f.csv): failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/components/xicore/export-rrd.php on line 50, referer: https://*nagiosURL*/nagiosxi/includes/components/xicore/status.php?show=hostdetail&host=*hostname*
tgriep
Madmin
Posts: 9190 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Tue Nov 13, 2018 10:37 am
Can you run the following and post the output back to the post?
Code: Select all
ls -la /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server
ls -la /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
ls -al /usr/local/nagiosxi/html/includes/js/jquery
ls -al /tmp
Thanks
Be sure to check out our
Knowledgebase for helpful articles and solutions!
Asckey
Posts: 15 Joined: Tue Feb 18, 2014 11:31 am
Post
by Asckey » Tue Nov 13, 2018 10:44 am
Hello All,
Output below,
Code: Select all
# ls -la /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server
total 37488
drwxr-x---. 3 nagios nagios 4096 Sep 20 20:37 .
drwxr-x---. 3 nagios nagios 4096 Sep 20 20:32 ..
-rw-r-----. 1 nagios nagios 17 Oct 12 11:36 .gitignore
-rw-r-----. 1 nagios nagios 16807 Oct 12 11:36 highcharts-convert.js
-rwxr-x---. 1 nagios nagios 3545 Oct 12 11:36 index.php
-rwxr-x---. 1 nagios nagios 38346752 Sep 20 20:37 phantomjs
drwxrwx---. 2 nagios nagios 4096 Oct 31 13:45 temp
[root@ADS-Nagios03 ~]# ls -la /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
total 8
drwxrwx---. 2 nagios nagios 4096 Oct 31 13:45 .
drwxr-x---. 3 nagios nagios 4096 Sep 20 20:37 ..
#ls -al /usr/local/nagiosxi/html/includes/js/jquery
total 700
drwxr-x---. 4 nagios nagios 4096 Sep 20 20:32 .
drwxr-x---. 6 nagios nagios 4096 Sep 20 20:32 ..
drwxr-x---. 5 nagios nagios 4096 Sep 20 20:32 colorpicker
drwxr-x---. 3 nagios nagios 4096 Sep 20 20:32 css
-rwxr-x---. 1 nagios nagios 97162 Oct 12 11:36 jquery-1.12.4.min.js
-rwxr-x---. 1 nagios nagios 86927 Oct 12 11:36 jquery-3.3.1.min.js
-rw-r-----. 1 nagios nagios 13341 Oct 12 11:36 jquery.autocomplete.js
-rw-r-----. 1 nagios nagios 1701 Oct 12 11:36 jquery.bgiframe.pack.js
-rw-r-----. 1 nagios nagios 4110 Oct 12 11:36 jquery.checkboxes.js
-rw-r-----. 1 nagios nagios 20216 Oct 12 11:36 jquery.colorBlend.js
-rw-r-----. 1 nagios nagios 759 Oct 12 11:36 jquery.inview.min.js
-rw-r-----. 1 nagios nagios 14360 Oct 12 11:36 jquery.jscrollpane.min.js
-rw-r-----. 1 nagios nagios 5191 Oct 12 11:36 jquery.maphilight.min.js
-rw-r-----. 1 nagios nagios 1292 Oct 12 11:36 jquery.metadata.min.js
-rwxr-x---. 1 nagios nagios 9909 Oct 12 11:36 jquery-migrate-1.4.1.min.js
-rwxr-x---. 1 nagios nagios 6974 Oct 12 11:36 jquery-migrate-3.0.0.min.js
-rw-r-----. 1 nagios nagios 2235 Oct 12 11:36 jquery.mousewheel.js
-rw-r-----. 1 nagios nagios 24279 Oct 12 11:36 jquery.searchabledropdown.custom.js
-rw-r-----. 1 nagios nagios 11780 Oct 12 11:36 jquery.sumoselect.min.js
-rw-r-----. 1 nagios nagios 23366 Oct 12 11:36 jquery.tablesorter.js
-rw-r-----. 1 nagios nagios 3894 Oct 12 11:36 jquery.tablesorter.pager.js
-rw-r-----. 1 nagios nagios 3367 Oct 12 11:36 jquery.timers-1.1.3.js
-rwxr-x---. 1 nagios nagios 253668 Oct 12 11:36 jquery-ui-1.12.1.custom.min.js
-rw-r-----. 1 nagios nagios 78771 Oct 12 11:36 jquery-ui-timepicker-addon.js
#ls -al /tmp
total 116
drwxrwxrwt. 2 root root 4096 Nov 13 15:42 .
dr-xr-xr-x. 23 root root 4096 Oct 11 16:16 ..
-rw-r--r-- 1 nagios nagios 91 Nov 13 15:41 cwpss_checkcpu__19216811218___.state
-rw-r--r-- 1 nagios nagios 91 Nov 13 15:39 cwpss_checkcpu__19216811225___.state
-rw-r--r-- 1 nagios nagios 91 Nov 13 15:41 cwpss_checkcpu__1921681123___.state
-rw-r--r-- 1 nagios nagios 91 Nov 13 15:42 cwpss_checkcpu__1921681127___.state
-rw-r--r-- 1 nagios nagios 91 Nov 13 15:38 cwpss_checkcpu__1921681158___.state
-rw-r--r-- 1 nagios nagios 91 Nov 13 15:41 cwpss_checkcpu__19216811759___.state
-rw-r--r-- 1 nagios nagios 68 Nov 13 15:38 mssql--1029745583336378626.tmp
-rw-r--r-- 1 nagios nagios 67 Nov 13 15:42 mssql--1391598164663354189.tmp
-rw-r--r-- 1 nagios nagios 63 Nov 13 15:38 mssql-1790031855181225516.tmp
-rw-r--r-- 1 nagios nagios 66 Nov 13 15:39 mssql-2423527187062492177.tmp
-rw-r--r-- 1 nagios nagios 67 Nov 13 15:41 mssql-3368045329133127882.tmp
-rw-r--r-- 1 nagios nagios 64 Nov 13 15:40 mssql-3708214043330693947.tmp
-rw-r--r-- 1 nagios nagios 67 Nov 13 15:38 mssql-3709576221890334914.tmp
-rw-r--r-- 1 nagios nagios 67 Nov 13 15:41 mssql--4166022565912367600.tmp
-rw-r--r-- 1 nagios nagios 66 Nov 13 15:40 mssql-4343852697769109507.tmp
-rw-r--r-- 1 nagios nagios 68 Nov 13 15:39 mssql-4347633830959897305.tmp
-rw-r--r-- 1 nagios nagios 67 Nov 13 15:42 mssql-4418537567958703669.tmp
-rw-r--r-- 1 nagios nagios 67 Nov 13 15:38 mssql--4529012018768836649.tmp
-rw-r--r-- 1 nagios nagios 66 Nov 13 15:41 mssql-4795167261326512247.tmp
-rw-r--r-- 1 nagios nagios 65 Nov 13 15:39 mssql-5006470296297220244.tmp
-rw-r--r-- 1 nagios nagios 67 Nov 13 15:38 mssql-5320921867910134593.tmp
-rw-r--r-- 1 nagios nagios 64 Nov 13 15:41 mssql--5403781742586827518.tmp
-rw-r--r-- 1 nagios nagios 68 Nov 13 15:38 mssql--5525531885528155294.tmp
-rw-r--r-- 1 nagios nagios 67 Nov 13 15:40 mssql--7294644535366050669.tmp
-rw-r--r-- 1 nagios nagios 67 Nov 13 15:42 mssql--7413066728751555501.tmp
-rw-r--r-- 1 nagios nagios 70 Nov 13 15:42 mssql-8107286971929983788.tmp
-rw-r--r-- 1 nagios nagios 69 Nov 13 15:38 mssql--9153299123142587728.tmp
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Tue Nov 13, 2018 2:51 pm
can we also verify that apache is part of the nagios group
Asckey
Posts: 15 Joined: Tue Feb 18, 2014 11:31 am
Post
by Asckey » Wed Nov 14, 2018 3:54 am
Hello All,
Code: Select all
# grep nag /etc/group
nagios:x:1000:nagios,apache,snmptt
nagcmd:x:1001:nagios,apache,snmptt
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Wed Nov 14, 2018 10:26 am
We are working to debug this issue, what OS is your Nagios XI server running?
The title of the post shows PDF errors but your error_log showed an error with a CSV download, are you seeing issues with both?
Also, it this a 32bit or 64 bit machine?
Asckey
Posts: 15 Joined: Tue Feb 18, 2014 11:31 am
Post
by Asckey » Wed Nov 14, 2018 11:25 am
Hello Scott,
Sorry I forgot to rename the title, I managed to get PDFs working, however I am seeing the issue for CSV, XML & JSON types.
OS type is CentOS 7 and was deployed from the Nagios template.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Wed Nov 14, 2018 11:49 am
What version of XI are you running? And can you confirm that you can visually see the graph before trying the export?
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Wed Nov 14, 2018 12:12 pm
Can I have you unzip the attached file and place the php file in the following location and see if this resolves the issue
Code: Select all
/usr/local/nagiosxi/html/includes/components/xicore/export-rrd.php
You do not have the required permissions to view the files attached to this post.
Asckey
Posts: 15 Joined: Tue Feb 18, 2014 11:31 am
Post
by Asckey » Thu Nov 15, 2018 4:10 am
Hello Scott,
Yes I can visually see the graph. I have overwritten the old file with the new and it has made no difference. I still get the same permissions error.