KVIS
asked on
Cacti does not display graphs
Hello,
I am having issue with my Cacti installed on CentOS 6.2 not displaying graphs.
I have configured few stations including Cisco router itself to test it out, and I am getting blank graphs after days.
I turned on graph debug mode, and the error I get is:
-----------------------
RRDTool Says:
ERROR: opening '/usr/share/cacti/rra/mpls _traffic_i n_18.rrd': Permission denied
-----------------------
I tried giving full permission to the file and linking it properly to /var/www/html/cacti/rra to link to /usr/share/cacti/rra , but maybe I'm doing things wrong.
Please help, thank you.
I am having issue with my Cacti installed on CentOS 6.2 not displaying graphs.
I have configured few stations including Cisco router itself to test it out, and I am getting blank graphs after days.
I turned on graph debug mode, and the error I get is:
-----------------------
RRDTool Says:
ERROR: opening '/usr/share/cacti/rra/mpls
-----------------------
I tried giving full permission to the file and linking it properly to /var/www/html/cacti/rra to link to /usr/share/cacti/rra , but maybe I'm doing things wrong.
Please help, thank you.
ASKER
Thank you for the reply.
I have done chmod/chown -R 777 to rra directories. It is now recreating the rrd files.
I have restarted all the services, but not sure how I would restart cacti service itself.
Log file from 27th shows this.
Log File [Total Lines: 4 - All Items Shown]
07/27/2012 03:56:10 PM - SYSTEM STATS: Time:2.7707 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:0 RRDsProcessed:0
07/27/2012 03:56:10 PM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
07/27/2012 03:56:07 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/html/cacti/cmd.p hp" 0 5]
07/27/2012 03:56:07 PM - POLLER: Poller[0] NOTE: Poller Int: '60', Cron Int: '60', Time Since Last: '60', Max Runtime '58', Poller Runs: '1'
Does this mean my poller is not setup properly?
It's been about 20 minutes since and I do not see any graphs still, and the rrd files have been recreated. In fact, I do not see the graph at all. Would this be a font issue too?
Thank you,
I have done chmod/chown -R 777 to rra directories. It is now recreating the rrd files.
I have restarted all the services, but not sure how I would restart cacti service itself.
Log file from 27th shows this.
Log File [Total Lines: 4 - All Items Shown]
07/27/2012 03:56:10 PM - SYSTEM STATS: Time:2.7707 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:0 RRDsProcessed:0
07/27/2012 03:56:10 PM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
07/27/2012 03:56:07 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/html/cacti/cmd.p
07/27/2012 03:56:07 PM - POLLER: Poller[0] NOTE: Poller Int: '60', Cron Int: '60', Time Since Last: '60', Max Runtime '58', Poller Runs: '1'
Does this mean my poller is not setup properly?
It's been about 20 minutes since and I do not see any graphs still, and the rrd files have been recreated. In fact, I do not see the graph at all. Would this be a font issue too?
Thank you,
Hi,
Are you using SELinux? If so I guess the problem is with SELinux. Please retry accessing the graphs and check /var/log/audit/audit.log for any SELinux errors.
Cheers,
K.
Are you using SELinux? If so I guess the problem is with SELinux. Please retry accessing the graphs and check /var/log/audit/audit.log for any SELinux errors.
Cheers,
K.
ASKER
Thank you, I have disabled SELinux, and graph grids now show.
There still are no data within the graphs itself however.
I still cannot figure out why the data is not collecting in the graphs. I'm guessing somehow I have improperly setup poller settings? I have followed general guidance of setting up Cacti online.
Thank you,
There still are no data within the graphs itself however.
I still cannot figure out why the data is not collecting in the graphs. I'm guessing somehow I have improperly setup poller settings? I have followed general guidance of setting up Cacti online.
Thank you,
ASKER
In the command under filed named cacti in /etc/cron.d
"*/5 * * * * cactiuser /usr/local/bin/php /var/www/html/cacti/poller .php > /dev/null 2>&1"
What is the /usr/local/bin/php <---? is php the empty folder (i had to create) or is it a ~3MB file named php which there is another folder /usr/bin/ ?
cactiuser is the name of the username, not the database default correct?
Thank you,
"*/5 * * * * cactiuser /usr/local/bin/php /var/www/html/cacti/poller
What is the /usr/local/bin/php <---? is php the empty folder (i had to create) or is it a ~3MB file named php which there is another folder /usr/bin/ ?
cactiuser is the name of the username, not the database default correct?
Thank you,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you, I have done as advised (pointed to the correct path where php file lies), and waited 30 minutes or so to see if data will populate, but it still does not.
Now I took the /dev/null 2>&1 out of the line. How would the system know which email to send to where? Should I have inputted my email anywhere?
Thank you everyone,
Now I took the /dev/null 2>&1 out of the line. How would the system know which email to send to where? Should I have inputted my email anywhere?
Thank you everyone,
Now I took the /dev/null 2>&1 out of the line. How would the system know which email to send to where? Should I have inputted my email anywhere?
The user who owns the cron job will get an email about the output. This is most probably the root user or any other user yiu've coped the contents of the crontab file. So check this user e-mail to get the information.
If you want someother user should receive the emails of that cron job then add MAILTO="USER@DOMAIN.COM" before the cron job.
The cron job would look like this
MAILTO="USER@DOMAIN.COM"
"*/5 * * * * cactiuser /usr/local/bin/php /var/www/html/cacti/poller .php > /dev/null 2>&1"
The cron job would look like this
MAILTO="USER@DOMAIN.COM"
"*/5 * * * * cactiuser /usr/local/bin/php /var/www/html/cacti/poller
ASKER
sorry this will have to wait for a week or two more, as I have been waiting for some parts for the machine that went down, and looks like the spare part that came in won't be fixing the problem (hardware issue as well). I will just need to reinstall on another machine. I'm sure I'll probably pick up where I left off so please keep this open.
Hello! I'm new in cacti and I have the same problem graphic in blank in some forous I saw that I have to bring permition in rrd file to fix the problem but I have no Idea how; some advice??? Please I going to apreciate it. I have windows 7 cacti 8
chmod -R 777 /usr/share/cacti/rra
Delete everything inside that folder. Restart the cacti service. It should recreate needed rrd files.
If that works check the ownership of the folder, I don't remember under which user cacti runs, properly chown and chmod the folder.