Setting up Cacti

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Setting up Cacti

Post by lmiltchev »

Thanks for you assistance on Performance Graphs, it is now appearing.
I am glad your issue with perfgraphs has been resolved!
Capacity Planning is not showing anything..
It will take some time before Capacity Planning show up. Probably, there is not enough data to extrapolate to the future. Wait for a 1-2 weeks and check again.
Let me know if Cacti is properly configured, as I am unable to login to cacti.
Modify the "/etc/httpd/conf.d/cacti.conf" file by changing this:

Code: Select all

<IfModule !mod_authz_core.c>
                # httpd 2.2
                Order deny,allow
                Allow from localhost
                Allow from all
        </IfModule>
to this:

Code: Select all

<IfModule !mod_authz_core.c>
                # httpd 2.2
                Order deny,allow
                Allow from all
        </IfModule>
and restart apache:

Code: Select all

service httpd restart
Edit the "/etc/passwd" file in a text editor, and change this:

Code: Select all

cacti:x:204:202::/usr/share/cacti:/sbin/nologin
to this:

Code: Select all

cacti:x:204:202::/usr/share/cacti:/bin/bash
Try to log in/out as "cacti" again:

Code: Select all

su cacti
logout
Did it work this time?

Try to log in the web UI by going to:

Code: Select all

http://ipaddress/cacti/
using admin/admin credentials. Post a screenshot of the error that you are getting and a tail of the apache error log:

Code: Select all

tail -100 /var/log/httpd/error_log
Be sure to check out our Knowledgebase for helpful articles and solutions!
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Setting up Cacti

Post by raamardhani7 »

lmiltchev wrote:
Thanks for you assistance on Performance Graphs, it is now appearing.
I am glad your issue with perfgraphs has been resolved!
Capacity Planning is not showing anything..
It will take some time before Capacity Planning show up. Probably, there is not enough data to extrapolate to the future. Wait for a 1-2 weeks and check again.
Let me know if Cacti is properly configured, as I am unable to login to cacti.
Modify the "/etc/httpd/conf.d/cacti.conf" file by changing this:

Code: Select all

<IfModule !mod_authz_core.c>
                # httpd 2.2
                Order deny,allow
                Allow from localhost
                Allow from all
        </IfModule>
to this:

Code: Select all

<IfModule !mod_authz_core.c>
                # httpd 2.2
                Order deny,allow
                Allow from all
        </IfModule>
and restart apache:

Code: Select all

service httpd restart
Edit the "/etc/passwd" file in a text editor, and change this:

Code: Select all

cacti:x:204:202::/usr/share/cacti:/sbin/nologin
to this:

Code: Select all

cacti:x:204:202::/usr/share/cacti:/bin/bash
Try to log in/out as "cacti" again:

Code: Select all

su cacti
logout
Did it work this time?

Try to log in the web UI by going to:

Code: Select all

http://ipaddress/cacti/
using admin/admin credentials. Post a screenshot of the error that you are getting and a tail of the apache error log:

Code: Select all

tail -100 /var/log/httpd/error_log

I am able to login to Cacti now, but how can I add hosts and services? Sharing the screenshot. Also please find the output of httpd/error_log file.

Code: Select all

tail -100 /var/log/httpd/error_log
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:06 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:17:11 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts&sortby=&sortorder=asc&host=&hostgroup=&servicegroup=&search=DALCCTSP01&searchButton=
[Fri Dec 11 05:19:43 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 719
[Fri Dec 11 05:19:43 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 720
[Fri Dec 11 05:20:13 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts&sortby=&sortorder=asc&host=&hostgroup=&servicegroup=&search=DALCCTSP01&searchButton=
[Fri Dec 11 05:21:11 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 719
[Fri Dec 11 05:21:11 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 720
[Fri Dec 11 05:21:41 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts&sortby=&sortorder=asc&host=&hostgroup=&servicegroup=&search=DALCCTSP01&searchButton=
[Fri Dec 11 05:21:42 2015] [error] [client 172.30.245.235] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts&sortby=&sortorder=asc&host=&hostgroup=&servicegroup=&search=DALCCTSP01&searchButton=
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
[Fri Dec 11 05:21:54 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: note in /usr/local/nagiosxi/html/includes/components/customcolumn/customcolumn.inc.php on line 161, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=hosts
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Setting up Cacti

Post by tmcdonald »

Those "Undefined variable" messages can essentially be ignored - it is the warnings and errors that you need to be concerned about and I did not see any in your http logs.

Regarding configuration of Cacti now that it has been installed, that's outside of the scope of what we support. You'll need to ask the Cacti folks for questions about their product.
Former Nagios employee
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Setting up Cacti

Post by raamardhani7 »

Hi Team,

I am getting below error, when I am trying to download any graph, whether it is CPU/memory utilization graph.

Code: Select all

Couldn't create temporary file. Check that the directory permissions for the /temp directory are set to 777.
Could you please help me with this, thanks.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Setting up Cacti

Post by tmcdonald »

Is this a graph in XI or in Cacti?

Please try to download the graph and then run the following and post the output:

tail -20 /var/log/httpd/error_log
Former Nagios employee
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Setting up Cacti

Post by raamardhani7 »

tmcdonald wrote:Is this a graph in XI or in Cacti?

Please try to download the graph and then run the following and post the output:

tail -20 /var/log/httpd/error_log
It's is Nagios XI:

Code: Select all

tail -20 /var/log/httpd/error_log
[Mon Dec 14 03:08:22 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 719
[Mon Dec 14 03:08:51 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 719
[Mon Dec 14 03:08:51 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 720
[Mon Dec 14 03:31:54 2015] [error] [client 172.30.245.212] PHP Warning:  mysql_pconnect(): Too many connections in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-mysql.inc.php on line 383, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=dalcjdad00.fossil.com&service=Oracle+Query+-+Database+Status&dest=auto
[Mon Dec 14 03:31:54 2015] [error] [client 172.30.245.212] PHP Warning:  mysql_pconnect(): Too many connections in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-mysql.inc.php on line 383, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=dalcjdad00.fossil.com&service=Oracle+Query+-+Database+Status&dest=auto
[Mon Dec 14 03:31:55 2015] [error] [client 172.30.245.212] PHP Warning:  mysql_pconnect(): Too many connections in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-mysql.inc.php on line 383, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=dalcjdad00.fossil.com&service=Oracle+Query+-+Database+Status&dest=auto
[Mon Dec 14 03:31:55 2015] [error] [client 172.30.245.212] PHP Warning:  mysql_pconnect(): Too many connections in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-mysql.inc.php on line 383, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=dalcjdad00.fossil.com&service=Oracle+Query+-+Database+Status&dest=auto
[Mon Dec 14 04:34:55 2015] [error] [client 172.30.245.212] PHP Warning:  pg_pconnect(): Unable to connect to PostgreSQL server: FATAL:  connection limit exceeded for non-superusers in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-postgres64.inc.php on line 682, referer: http://10.10.83.90/nagiosxi/perfgraphs/index.php?&search=dalcdsvq00.fossil.com&searchButton=Go&startdate=&enddate=&host=dalcdsvq00.fossil.com&host_id=&service_id=&service=&source=1&mode=1
[Mon Dec 14 04:34:55 2015] [error] [client 10.10.83.91] PHP Warning:  pg_pconnect(): Unable to connect to PostgreSQL server: FATAL:  connection limit exceeded for non-superusers in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-postgres64.inc.php on line 682
[Mon Dec 14 04:34:56 2015] [error] [client 172.30.245.212] PHP Notice:  Undefined variable: result in /usr/local/nagiosxi/html/includes/db.inc.php on line 249, referer: http://10.10.83.90/nagiosxi/perfgraphs/index.php?&search=dalcdsvq00.fossil.com&searchButton=Go&startdate=&enddate=&host=dalcdsvq00.fossil.com&host_id=&service_id=&service=&source=1&mode=1
[Mon Dec 14 04:34:56 2015] [error] [client 10.10.83.91] PHP Notice:  Undefined variable: result in /usr/local/nagiosxi/html/includes/db.inc.php on line 249
[Mon Dec 14 04:48:52 2015] [error] [client 172.30.245.212] PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /usr/local/nagiosxi/html/includes/utils-backend.inc.php on line 54, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=BIECAPPL01.fossil.com&service=Drive+C%3A+Disk+Usage&dest=auto
[Mon Dec 14 04:48:52 2015] [error] [client 172.30.245.212] PHP Warning:  simplexml_load_string():     SQL:     SQL Error [nagiosxi] :</b> ERROR:  invalid input syntax for integer in /usr/local/nagiosxi/html/includes/utils-backend.inc.php on line 54, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=BIECAPPL01.fossil.com&service=Drive+C%3A+Disk+Usage&dest=auto
[Mon Dec 14 04:48:52 2015] [error] [client 172.30.245.212] PHP Warning:  simplexml_load_string():     ^ in /usr/local/nagiosxi/html/includes/utils-backend.inc.php on line 54, referer: http://10.10.83.90/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=BIECAPPL01.fossil.com&service=Drive+C%3A+Disk+Usage&dest=auto
[Mon Dec 14 06:29:41 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 719
[Mon Dec 14 06:29:41 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 720
[Mon Dec 14 06:29:43 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 719
[Mon Dec 14 06:30:02 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 719
[Mon Dec 14 06:30:02 2015] [error] [client ::1] PHP Notice:  Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 720
[Mon Dec 14 06:30:52 2015] [error] [client 172.30.245.212] request failed: URI too long (longer than 8190)
You have new mail in /var/spool/mail/root
Tried to download it, and still the same issue..
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Setting up Cacti

Post by tmcdonald »

Try the solution in this SO article:

http://stackoverflow.com/questions/2891 ... long-error

I would try adding just half of the original 8190 value for a total of 12,285. Restart httpd and see if it works.
Former Nagios employee
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Setting up Cacti

Post by raamardhani7 »

tmcdonald wrote:Try the solution in this SO article:

http://stackoverflow.com/questions/2891 ... long-error

I would try adding just half of the original 8190 value for a total of 12,285. Restart httpd and see if it works.
Hi Tmcdonald,

Could you please let me know the path where the file resides. thanks
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Setting up Cacti

Post by tmcdonald »

/etc/httpd/conf/httpd.conf is where I set mine.
Former Nagios employee
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Setting up Cacti

Post by raamardhani7 »

tmcdonald wrote:/etc/httpd/conf/httpd.conf is where I set mine.
Thanks for the path, but I am unable to get the parameter we are looking for:

Code: Select all

[root@lussvpnagiosxi00 conf]# grep LimitRequestLine /etc/httpd/conf/httpd.conf
[root@lussvpnagiosxi00 conf]# grep 4094 /etc/httpd/conf/httpd.conf
[root@lussvpnagiosxi00 conf]# grep 8190 /etc/httpd/conf/httpd.conf
[root@lussvpnagiosxi00 conf]#
any insights on this please? thanks.
Locked