Hey Guys,
I ran into an issue where the log file ballooned up to 2GB and stopped the poller process from working. I moved the log file and pretty much everything kicked back into life....except some of my graphs I query with a custom script of mine.
I have a file which queries a text file on the localhost to return some values. The name of the script of ports.php. I run this along side several other custom scripts, bytes.php and alerts.php. These have all worked fine until the error outlined above.
bytes.php and alerts.php kicked back into action but ports.php hasnt. Doing a stat in the directory where the files reside I can see that the file is not being accessed:
File: `alerts.php'
Access: (0754/-rwxr-xr--) Uid: ( 1005/argusdata) Gid: ( 1003/ cacti)
Access: 2009-12-17 10:15:02.000000000 +1300
File: `bytes.php'
Access: (0754/-rwxr-xr--) Uid: ( 1005/argusdata) Gid: ( 1003/ cacti)
Access: 2009-12-17 10:15:07.000000000 +1300
File: `ports.php'
Access: (0754/-rwxr-xr--) Uid: ( 1005/argusdata) Gid: ( 1003/ cacti)
Access: 2009-12-17 10:05:08.000000000 +1300
The two that are working and generating graphs appear to being accessed every 5mins however ports.php isn't (it was hit at 10:05 only because I ran it manually).
I figured that the poller was not trying to access it, however checking the poller cache proves this to be incorrect:
Script: php /home/argusdata/ports.php 53
RRD: /opt/cacti/rra/localhost_bytes_out_9913.rrd
If I run this command manually I get a good result (ie returns DNS traffic, port 53)
/home/argusdata # php /home/argusdata/ports.php 53
bytes_in:3885798 bytes_out:2231104
I have tried resetting the poller cache just in case.
It's weird! I just get blank graphs for all the graphs where ports.php is used for the data.
Any ideas?
2gb log file, poller stops
Moderators: Developers, Moderators
Hey gandalf. Thanks for the link, I've been through and probably the most pertinent thing I found was the fact that when running "php -q cmd.php 1 1" the ports.php file is not being called despite it showing up under "Graph Management" for localhost (host id 1). alerts.php and bytes.php are both being called OK.
hmmm...
hmmm...
Who is online
Users browsing this forum: No registered users and 2 guests