|
|
| Author |
Message |
consulvation
Joined: 29 Oct 2008 Posts: 6
|
Posted: Mon Nov 17, 2008 5:34 pm Post subject: Graphs suddenly disappear / re-appear |
|
|
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: | 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!!
|
|
| Back to top |
|
 |
khufure Cacti User
Joined: 24 Oct 2007 Posts: 164 Location: San Francisco, CA
|
Posted: Tue Nov 18, 2008 7:55 pm Post subject: Re: Graphs suddenly disappear / re-appear |
|
|
| 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.
|
|
| Back to top |
|
 |
consulvation
Joined: 29 Oct 2008 Posts: 6
|
Posted: Wed Nov 19, 2008 9:31 am Post subject: Re: Graphs suddenly disappear / re-appear |
|
|
| 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.
|
|
| Back to top |
|
 |
khufure Cacti User
Joined: 24 Oct 2007 Posts: 164 Location: San Francisco, CA
|
Posted: Wed Nov 19, 2008 1:55 pm Post subject: Re: Graphs suddenly disappear / re-appear |
|
|
| 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.
|
|
| Back to top |
|
 |
consulvation
Joined: 29 Oct 2008 Posts: 6
|
Posted: Wed Nov 19, 2008 4:09 pm Post subject: |
|
|
Here is the last 250 lines of my cacti.log file and the poller.log file.
| Description: |
|
 Download |
| Filename: |
cact.log.txt |
| Filesize: |
38.14 KB |
| Downloaded: |
36 Time(s) |
| Description: |
|
 Download |
| Filename: |
poller.log.txt |
| Filesize: |
34.28 KB |
| Downloaded: |
18 Time(s) |
|
|
| Back to top |
|
 |
khufure Cacti User
Joined: 24 Oct 2007 Posts: 164 Location: San Francisco, CA
|
Posted: Wed Nov 19, 2008 4:15 pm Post subject: |
|
|
| 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.
|
|
| Back to top |
|
 |
consulvation
Joined: 29 Oct 2008 Posts: 6
|
Posted: Wed Nov 19, 2008 4:31 pm Post subject: |
|
|
| 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?
|
|
| Back to top |
|
 |
khufure Cacti User
Joined: 24 Oct 2007 Posts: 164 Location: San Francisco, CA
|
Posted: Wed Nov 19, 2008 4:33 pm Post subject: |
|
|
| 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
|
|
| Back to top |
|
 |
consulvation
Joined: 29 Oct 2008 Posts: 6
|
Posted: Wed Nov 19, 2008 5:30 pm Post subject: |
|
|
| 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!
| Description: |
|
 Download |
| Filename: |
poller.log.txt |
| Filesize: |
11.82 KB |
| Downloaded: |
11 Time(s) |
|
|
| Back to top |
|
 |
khufure Cacti User
Joined: 24 Oct 2007 Posts: 164 Location: San Francisco, CA
|
Posted: Wed Nov 19, 2008 5:44 pm Post subject: |
|
|
| 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.
|
|
| Back to top |
|
 |
consulvation
Joined: 29 Oct 2008 Posts: 6
|
Posted: Wed Nov 26, 2008 9:57 am Post subject: |
|
|
Sorry for the long delay.
Everything seems to be graphing properly now.
Thanks so much!
|
|
| Back to top |
|
 |
|