Graphs not showing
Moderators: Developers, Moderators
Graphs not showing
I've seen a few threads here regarding this, but none of them help solve my problem. I'm new to cacti and pretty new to using SNMP too. I've installed Cacti to Fedora 2.9. Everything seems to be working fine, I was able to add in a device and it found it no problem. However, When I try to view any graphs I just get the "image not available" red X. In debug mode it says
RRDTool Says
Error opening /var/www/html/cacti/rra/device_name.rrd No such file or directory. Indeed the file does not exist - although the rra directory does. I done chmod 777 rra in the hope that this might fix it but to no avail. Anybody got any other ideas how I can go about testing this?
Thanks in advance.
RRDTool Says
Error opening /var/www/html/cacti/rra/device_name.rrd No such file or directory. Indeed the file does not exist - although the rra directory does. I done chmod 777 rra in the hope that this might fix it but to no avail. Anybody got any other ideas how I can go about testing this?
Thanks in advance.
for real man
THere are a ton of threads but no answers.....
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Graphs not showing
There are several possible circumstances that will lead to this error. Among them are:y2k wrote:RRDTool Says
Error opening /var/www/html/cacti/rra/device_name.rrd No such file or directory. Indeed the file does not exist - although the rra directory does. I done chmod 777 rra in the hope that this might fix it but to no avail. Anybody got any other ideas how I can go about testing this?
Thanks in advance.
- you did not configure the crontab to run the poller. The poller will create all needed rrd files
- permission problems (you already tried to address that). It is sufficient, to grant write access to the user running the poller from crontab. And your web server must have at least read access.
- misconfigured rrdtool version. Please check rrdtool --version and make sure, that Settings->RRDTool Utulity Version matches
Reinhard
Thanks for the reply
I had a look through the cacti manual and I managed to get my graphs to display by running poller.php manually. However, they don't contain any data - and all of the statistics at the bottom say not a number. As far as I can tell however, poller.php is configured to run every 5 minutes. This is what I have in my crontab file:
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2> &l
Is that right? However, at the moment I'm more concerned about the fact that everything is returning NaN - why do you think that is?
I had a look through the cacti manual and I managed to get my graphs to display by running poller.php manually. However, they don't contain any data - and all of the statistics at the bottom say not a number. As far as I can tell however, poller.php is configured to run every 5 minutes. This is what I have in my crontab file:
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2> &l
Is that right? However, at the moment I'm more concerned about the fact that everything is returning NaN - why do you think that is?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Not correct. Please replacey2k wrote:Thanks for the reply
I had a look through the cacti manual and I managed to get my graphs to display by running poller.php manually. However, they don't contain any data - and all of the statistics at the bottom say not a number. As far as I can tell however, poller.php is configured to run every 5 minutes. This is what I have in my crontab file:
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2> &l
Is that right? However, at the moment I'm more concerned about the fact that everything is returning NaN - why do you think that is?
Code: Select all
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2> &l
Code: Select all
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1
Reinhard
Last edited by gandalf on Tue Mar 28, 2006 12:18 pm, edited 1 time in total.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
If NaN persists, your statement is correct. To debug this, please switch Settings->Logging Level to DEBUG for ONE polling cycle. Then view log/cacti.log and serach for that OID/script (Hosts are only given as a numeric value, the one showing up in the URL when editing the device). There, you'll find the SNMPGET/Script call and the result
Reinhard
Reinhard
Thanks for that. I was obviously doing something not quiet right !! I deleted everything and started again ... this time reading the manual ... and it worked !!
I do have one other question. I changed the polling from SNMP to ICMP, and now all the devices are showing Down - why is this? There's nothing blocking ICMP to the device (some are on the same physical network and allow ICMP packets). If I ssh to the box that cacti is installed on, I can ping the devices.
Also, one last question - does cacti support e-mail for devices when they do go down?
I do have one other question. I changed the polling from SNMP to ICMP, and now all the devices are showing Down - why is this? There's nothing blocking ICMP to the device (some are on the same physical network and allow ICMP packets). If I ssh to the box that cacti is installed on, I can ping the devices.
Also, one last question - does cacti support e-mail for devices when they do go down?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Depending on the cactid version you're using, ICMP requires special priviledges (root). So please change back to SNMPy2k wrote:I do have one other question. I changed the polling from SNMP to ICMP, and now all the devices are showing Down - why is this? There's nothing blocking ICMP to the device (some are on the same physical network and allow ICMP packets). If I ssh to the box that cacti is installed on, I can ping the devices.
No. This can be achieved using the thold plugin. This is not yet officially supported but will be supported starting with cacti 0.9. So it's ok to start with thisAlso, one last question - does cacti support e-mail for devices when they do go down?
Reinhard
Last edited by gandalf on Thu Apr 06, 2006 11:35 am, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 10 guests