2gb log file, poller stops

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

Moderators: Developers, Moderators

Post Reply
reticent
Posts: 12
Joined: Thu Oct 25, 2007 3:43 pm

2gb log file, poller stops

Post by reticent »

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

Post by gandalf »

Please see 2nd link of my sig for a structured debugging aid
R.
reticent
Posts: 12
Joined: Thu Oct 25, 2007 3:43 pm

Post by reticent »

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...
reticent
Posts: 12
Joined: Thu Oct 25, 2007 3:43 pm

Post by reticent »

any ideas anyone?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see "System Uitilities -> View Poller Cache" and try to find the procedures there. If you don't find them, there's an issue with filling the poller command table
R.
reticent
Posts: 12
Joined: Thu Oct 25, 2007 3:43 pm

Post by reticent »

I touched on that in my first post, it is listed in the poller cache.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests