Page 3 of 3

Re: Setting up Cacti

Posted: Mon Dec 14, 2015 5:20 pm
by tmcdonald
That setting most likely is not present in the httpd config file. You can add it in like so:

LimitRequestLine 12285

Re: Setting up Cacti

Posted: Tue Dec 15, 2015 3:31 am
by raamardhani7
tmcdonald wrote:That setting most likely is not present in the httpd config file. You can add it in like so:

LimitRequestLine 12285
Even after adding that parameter, I am unable to download the graph.

Code: Select all

grep LimitRequestLine  /etc/httpd/conf/httpd.conf
LimitRequestLine 12285

Code: Select all

http://10.10.83.90/nagiosxi/index.php
Couldn't create temporary file. Check that the directory permissions for the /temp directory are set to 777.

Code: Select all

tail -20 /var/log/httpd/error_log
[Mon Dec 14 17:23:34 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: home_id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 283
[Mon Dec 14 17:23:34 2015] [error] [client 172.30.245.235] PHP Warning:  array_multisort(): Argument #1 is expected to be an array or a sort flag in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 285
[Mon Dec 14 17:23:34 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 289
[Mon Dec 14 17:23:35 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: home_id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 283, referer: http://10.10.83.90/nagiosxi/
[Mon Dec 14 17:23:35 2015] [error] [client 172.30.245.235] PHP Warning:  array_multisort(): Argument #1 is expected to be an array or a sort flag in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 285, referer: http://10.10.83.90/nagiosxi/
[Mon Dec 14 17:23:35 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 289, referer: http://10.10.83.90/nagiosxi/
[Mon Dec 14 17:23:35 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined index: background in /usr/local/nagiosxi/html/includes/page-home-main.php on line 55, referer: http://10.10.83.90/nagiosxi/
[Mon Dec 14 21:08:48 2015] [error] [client 10.10.80.31] File does not exist: /var/www/html/robots.txt
[Tue Dec 15 01:17:30 2015] [notice] caught SIGTERM, shutting down
[Tue Dec 15 01:17:31 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Dec 15 01:17:31 2015] [notice] Digest: generating secret for digest authentication ...
[Tue Dec 15 01:17:31 2015] [notice] Digest: done
[Tue Dec 15 01:17:31 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips mod_wsgi/3.2 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Tue Dec 15 01:20:17 2015] [error] [client 172.30.245.212] PHP Warning:  file_put_contents(temp/be476f35d68998b2093d523a102f5796.svg): failed to open stream: Permission denied in /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/index.php on line 73, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=A1WUSSVPDOMC02.fossil.com&service=CPU+Usage&dest=auto
[Tue Dec 15 01:21:24 2015] [error] [client 172.30.245.212] PHP Warning:  file_put_contents(temp/9a4a897255a2befb3dacd76729ea3f9c.svg): failed to open stream: Permission denied in /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/index.php on line 73, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=A1WUSSVPDOMC02.fossil.com&service=CPU+Usage&dest=auto
[Tue Dec 15 01:22:46 2015] [notice] caught SIGTERM, shutting down
[Tue Dec 15 01:22:46 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Dec 15 01:22:46 2015] [notice] Digest: generating secret for digest authentication ...
[Tue Dec 15 01:22:46 2015] [notice] Digest: done
[Tue Dec 15 01:22:46 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips mod_wsgi/3.2 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
You have new mail in /var/spool/mail/root

Re: Setting up Cacti

Posted: Tue Dec 15, 2015 3:31 pm
by ssax
What is the output of these commands:

Code: Select all

ls -ld /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
ls -l /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
Thank you

Re: Setting up Cacti

Posted: Tue Dec 15, 2015 10:39 pm
by raamardhani7
ssax wrote:What is the output of these commands:

Code: Select all

ls -ld /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
ls -l /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
Thank you
Hi sasx,

Please find the output :

Code: Select all

[root@lussvpnagiosxi00 conf.d]# ls -ld /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
drwxr-x---. 2 nagios nagios 4096 Nov 30 06:14 /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
[root@lussvpnagiosxi00 conf.d]# ls -l /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
total 0

Re: Setting up Cacti

Posted: Wed Dec 16, 2015 3:07 pm
by ssax
Please run this command:

Code: Select all

chmod 770 /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
Let us know if that fixes the problem for you.

Re: Setting up Cacti

Posted: Wed Dec 16, 2015 9:43 pm
by raamardhani7
ssax wrote:Please run this command:

Code: Select all

chmod 770 /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
Let us know if that fixes the problem for you.
Hi Ssax,

Permissions issues sorted, new problem now.

Code: Select all

Error while converting SVG. 

Re: Setting up Cacti

Posted: Wed Dec 16, 2015 9:59 pm
by raamardhani7
raamardhani7 wrote:
ssax wrote:Please run this command:

Code: Select all

chmod 770 /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
Let us know if that fixes the problem for you.
Hi Ssax,

Permissions issues sorted, new problem now.

Code: Select all

Error while converting SVG. 

Issue sorted out, it is the issue with the permissions:

Code: Select all

chmod 770 /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/
This helped me fixing the issue, thanks a lot for your help Ssax and team.. :)

You can close this thread now.. :)

Re: Setting up Cacti

Posted: Thu Dec 17, 2015 11:04 am
by rkennedy
Glad to see this working! I will now close this thread out, but feel free to open a new one if you ever need assistance in the future.