Graphs suddenly disappear / re-appear

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

Moderators: Developers, Moderators

Post Reply
consulvation
Posts: 6
Joined: Wed Oct 29, 2008 12:31 pm

Graphs suddenly disappear / re-appear

Post by consulvation »

About 2 weeks ago, all of my graphs for my Sonicwall devices suddenly stopped. Then today, when I was reading the forums and troubleshooting, they started again :-?

All I changed was:
Followed gandalf's sig-link for troubleshooting, and added the crontab for the poller:

Code: Select all

prompt> crontab -e -u cactiuser
*/5 * * * *     php -q /usr/share/cacti/poller.php > /var/log/poller.log 2>&1
(which still doesn't show any logs in /var/log/poller.log).

I changed some of the Sonicwalls from a "ucd/net-SNMP" host to a "Generic SNMP Enabled Host" and created a new graph (in/out bits/sec).

All of the sudden, my old graphs (in/out bits/sec w/Total Bandwith) started graphing again as well.

Some of my WinXP/2000 hosts are showing the same problems with the network graphs, but those have not re-appeared.

I am very confused by this, and was hoping someone could help me figure out why the graphs stopped in the 1st place, and how I can prevent this from happening again.


Thank you very much!!
khufure
Cacti User
Posts: 203
Joined: Wed Oct 24, 2007 5:47 pm
Location: San Francisco, CA
Contact:

Re: Graphs suddenly disappear / re-appear

Post by khufure »

consulvation wrote:*/5 * * * * php -q /usr/share/cacti/poller.php > /var/log/poller.log 2>&1[/code]

(which still doesn't show any logs in /var/log/poller.log).
I would recommend you find out why this doesn't work. The poller.php is essential and if it cannot run that would certainly explain why graphs stop working.
consulvation
Posts: 6
Joined: Wed Oct 29, 2008 12:31 pm

Re: Graphs suddenly disappear / re-appear

Post by consulvation »

khufure wrote:
consulvation wrote:*/5 * * * * php -q /usr/share/cacti/poller.php > /var/log/poller.log 2>&1[/code]

(which still doesn't show any logs in /var/log/poller.log).
I would recommend you find out why this doesn't work. The poller.php is essential and if it cannot run that would certainly explain why graphs stop working.
I resolved that part of it - it was a permission issue. I changed the destination of the log file to /usr/share/cacti/log/poller.log and then that part started working properly.

I am still at a loss as to why my graphs are disappearing/re-appearing. I am not sure how to interpret the poller.log file.
khufure
Cacti User
Posts: 203
Joined: Wed Oct 24, 2007 5:47 pm
Location: San Francisco, CA
Contact:

Re: Graphs suddenly disappear / re-appear

Post by khufure »

consulvation wrote:I am still at a loss as to why my graphs are disappearing/re-appearing. I am not sure how to interpret the poller.log file.
Post your poller.log and an iteration of your cacti.log in debug mode.

Also, check to make sure the devices are "up". Cacti will poll each device via "SNMP ping". By SNMP ping I mean it checks for a reply to "system" OID. if this fails the device won't graph properly.
consulvation
Posts: 6
Joined: Wed Oct 29, 2008 12:31 pm

Post by consulvation »

Here is the last 250 lines of my cacti.log file and the poller.log file.
Attachments
poller.log.txt
(34.28 KiB) Downloaded 156 times
cact.log.txt
(38.14 KiB) Downloaded 120 times
khufure
Cacti User
Posts: 203
Joined: Wed Oct 24, 2007 5:47 pm
Location: San Francisco, CA
Contact:

Post by khufure »

consulvation wrote:Here is the last 250 lines of my cacti.log file and the poller.log file.
Do you have two pollers running? Error 1062 is I believe "duplicate entry". This would also match the entires in poller output of RRD complaining its been less than 1 step since the last update.
consulvation
Posts: 6
Joined: Wed Oct 29, 2008 12:31 pm

Post by consulvation »

khufure wrote:
consulvation wrote:Here is the last 250 lines of my cacti.log file and the poller.log file.
Do you have two pollers running? Error 1062 is I believe "duplicate entry". This would also match the entires in poller output of RRD complaining its been less than 1 step since the last update.
I think I do. I just looked at the cron jobs, and saw that one output to a file and the other was going to /dev/null. I will disable that one. Should I repost the file once it has run a few times?
khufure
Cacti User
Posts: 203
Joined: Wed Oct 24, 2007 5:47 pm
Location: San Francisco, CA
Contact:

Post by khufure »

consulvation wrote:I think I do. I just looked at the cron jobs, and saw that one output to a file and the other was going to /dev/null. I will disable that one. Should I repost the file once it has run a few times?
Yessir
consulvation
Posts: 6
Joined: Wed Oct 29, 2008 12:31 pm

Post by consulvation »

khufure wrote:
consulvation wrote:I think I do. I just looked at the cron jobs, and saw that one output to a file and the other was going to /dev/null. I will disable that one. Should I repost the file once it has run a few times?
Yessir
Here you go!
Attachments
poller.log.txt
(11.82 KiB) Downloaded 85 times
khufure
Cacti User
Posts: 203
Joined: Wed Oct 24, 2007 5:47 pm
Location: San Francisco, CA
Contact:

Post by khufure »

consulvation wrote:Here you go!
That looks fine. Maybe give it some time now to see if it will graph properly. If not, post cacti.log too.
consulvation
Posts: 6
Joined: Wed Oct 29, 2008 12:31 pm

Post by consulvation »

Sorry for the long delay.

Everything seems to be graphing properly now.

Thanks so much!
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests