Graphs not showing

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
y2k
Posts: 7
Joined: Thu Mar 23, 2006 12:20 pm

Graphs not showing

Post by y2k »

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.
tsnww
Posts: 17
Joined: Wed Mar 15, 2006 8:59 am

for real man

Post by tsnww »

THere are a ton of threads but no answers.....
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Graphs not showing

Post by gandalf »

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.
There are several possible circumstances that will lead to this error. Among them are:
- 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
y2k
Posts: 7
Joined: Thu Mar 23, 2006 12:20 pm

Post by y2k »

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?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

y2k 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?
Not correct. Please replace

Code: Select all

*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2> &l
by

Code: Select all

*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1
(no blank, number ONE, not letter I)
Reinhard
Last edited by gandalf on Tue Mar 28, 2006 12:18 pm, edited 1 time in total.
y2k
Posts: 7
Joined: Thu Mar 23, 2006 12:20 pm

Post by y2k »

OK cool, thanks for that. But any ideas why all the data is coming up as NaN?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

NaN stands for Not a Number. This is the rrdtool "value" if there isn't any real "value" (that is: absence of any valid data).
When creating a new rrd database, ALL values initially are NaN
hth
Reinhard
y2k
Posts: 7
Joined: Thu Mar 23, 2006 12:20 pm

Post by y2k »

So does this mean that the device isn't sending any SNMP data to cacti?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
y2k
Posts: 7
Joined: Thu Mar 23, 2006 12:20 pm

Post by y2k »

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?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

y2k 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.
Depending on the cactid version you're using, ICMP requires special priviledges (root). So please change back to SNMP
Also, one last question - does cacti support e-mail for devices when they do go down?
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 this
Reinhard
Last edited by gandalf on Thu Apr 06, 2006 11:35 am, edited 1 time in total.
y2k
Posts: 7
Joined: Thu Mar 23, 2006 12:20 pm

Post by y2k »

OK, thanks so much for that - really appreciated.
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests