Suddenly graphs not generated.

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

GregSE
Posts: 17
Joined: Wed Dec 29, 2010 5:02 am

Suddenly graphs not generated.

Post by GregSE »

Hi guys.
Being new here I realize I might ask stupid Q's. Sorry for that.

System: Running 0.8.7g on a WM with Fedora 13. Plugin arch is installed with thold, discovery, monitor and weathermap (inactive).

Everything was working fine with about 60 hosts and 200-some graphs generated when
I wanted to add a graph for an interface on one of the routers (Cisco7200) and it turned up as a missing image in the browser.
Strange, I thought, so I removed it and re-created it with the same result.
Strange, I thought again, so I removed all inteface graphs for that host and re-created them. Now all of the turning up as missing images.

I've checked the log with verbose logging and not a char about errors. Also stopped the poller, cmd running, and rebuilt the cache and repaired/checked the cacti-db. I've done this with the host removed and with the host in the database. No news.
Now I tried to add a new graph for one of the other devices/hosts (cisco4500) and this fails aswell with just the
graph title showing.

Grateful for any help I can get. Desperate by now. //Greg
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Suddenly graphs not generated.

Post by gandalf »

Are the relevant rrd files present?
If yes, please goto graph management, select a failing graph and switch to DEBUG. Any error shown?
If not, copy the DEBUG statement to a shell and run it from there, piping output to /dev/null
Watch out for errors
R.
GregSE
Posts: 17
Joined: Wed Dec 29, 2010 5:02 am

Re: Suddenly graphs not generated.

Post by GregSE »

thanks for the reply!

I have rrd-files for the graphs but the rrd number doesn't match the one RRDtool is trying to open when I debug a graph.
Example:
Debuging gives: "ERROR: Opening /*path*/rra/foo777.rrd no such file or directory."
And the foo777.rrd does not exist for some reason. Strange...
I also seem to have a lot of rrd-files for non-existent graphs.

/Greg
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Suddenly graphs not generated.

Post by gandalf »

The user that runs the poller from crontab has write permission to /rra?
Please pipe output of polling process to e.g. log/poller.log to find more hints (replace "> /dev/null" by "> /var/www/html/cacti/log/poller.log" or the like in crontab)
R.
GregSE
Posts: 17
Joined: Wed Dec 29, 2010 5:02 am

Re: Suddenly graphs not generated.

Post by GregSE »

Gandalf,
now putting debug log level output to poller.log file. I re-created the device and created graph for "temp" and interface.
Strangely the "temp" works as always...

Checking for errors in the poller.log gives the same error as debuging the graph: no such file....
And that's correct... the file does not exist in "rra/" but the "temp"-rrd exists.

cron/poller is running as root.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Suddenly graphs not generated.

Post by gandalf »

You did this:

Code: Select all

*/5 * * * * cactiuser php -q /var/www/html/cacti/poller.php > /var/www/html/cacti/log/poller.log 2>&1
?
R.
GregSE
Posts: 17
Joined: Wed Dec 29, 2010 5:02 am

Re: Suddenly graphs not generated.

Post by GregSE »

Well...almost the same. Except the 2>&1.
2>&1 inserted in crontab but stil no error other than the one mentioned before.
No rrd-file for interface but there is one for temperature.

BTW: Happy new year. :)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Suddenly graphs not generated.

Post by gandalf »

I was not hoping that the graph will be created now. But poller.log should hold some more information that may help debugging
R.
GregSE
Posts: 17
Joined: Wed Dec 29, 2010 5:02 am

Re: Suddenly graphs not generated.

Post by GregSE »

gandalf wrote:I was not hoping that the graph will be created now.
I understood that this would not mend the problem, but there is no info eigher. :(
What could I do next?
Tnx!!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Suddenly graphs not generated.

Post by gandalf »

I'm just facing something similar on a new RHEL6 based 087g installation. This surprises me as it always was working in the past to get information about rrdtool create. So it might have happened, that 087g broke support for that way of debugging. I will dig into this in my installation hoping that this will help you as well. But I need some time, at least this week
R.
GregSE
Posts: 17
Joined: Wed Dec 29, 2010 5:02 am

Re: Suddenly graphs not generated.

Post by GregSE »

I see... It's a quite annoying feature. :) Well, you take your time. I'm grateful for the help.
G
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Suddenly graphs not generated.

Post by gandalf »

Well, in my case it is BOOST that interferes the rrdtool statements that the poller sends out.
I double checked today, when running without boost, that the poller spits out rrdtool statements for update and create. This requires DEBUG logging level at minimum. Setting this verbosity level and e.g. running "php -q poller.php --force" should yield some output; else I'm going crazy ...
R.
GregSE
Posts: 17
Joined: Wed Dec 29, 2010 5:02 am

Re: Suddenly graphs not generated.

Post by GregSE »

Running DEBUG-level.

Still get that there is "no file or dir" but now also I see "ERROR: Duplicate DS name: traffic out"
But I can't say that this makes me any wiser in how to fix the issue.

Would structured rrd path help me or will it ruin all host added sofar?
What to do?
G.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Suddenly graphs not generated.

Post by gandalf »

GregSE wrote:Running DEBUG-level.

Still get that there is "no file or dir" but now also I see "ERROR: Duplicate DS name: traffic out"
Please post the whole line. There should be a data souce number. When viewing the log through your browser, the id is linked to the correct data source. I fear that the data template is broken
Would structured rrd path help me or will it ruin all host added sofar?
This won't help
R.
GregSE
Posts: 17
Joined: Wed Dec 29, 2010 5:02 am

Re: Suddenly graphs not generated.

Post by GregSE »

Data template being broken? Wierd.
Data query (under collection method) and data template looks to be fine.

Added some "knowingly broken interface graphs" and got the following log (for each interface):
ERROR: opening '/var/www/html/cacti/rra/bgctest2_traffic_in_809.rrd': No such file or directory
01/18/2011 03:30:09 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /var/www/html/cacti/rra/bgctest2_traffic_in_810.rrd --step 300 DS:traffic_in:COUNTER:600:0:1544000 DS:traffic_out:COUNTER:600:0:1544000 DS:traffic_out:COUNTER:600:0:1544000 DS:traffic_in:COUNTER:600:0:1544000 RRA:AVERAGE:0.5:1:500 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MIN:0.5:1:600 RRA:MIN:0.5:6:700 RRA:MIN:0.5:24:775 RRA:MIN:0.5:288:797 RRA:MAX:0.5:1:500 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797 RRA:LAST:0.5:1:600 RRA:LAST:0.5:6:700 RRA:LAST:0.5:24:775 RRA:LAST:0.5:288:797
ERROR: Duplicate DS name: traffic_out

The rrd-file at hand does not exist. Make any sense?
/G
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests