cactid doesn't seem to work
Moderators: Developers, Moderators
-
- Posts: 24
- Joined: Thu Jan 05, 2006 5:52 pm
cactid doesn't seem to work
Every time I try to set the poller as cactid and remove the php cronjob, the graphs stop getting data (a gap comes on to the graph where data should be / have been). I am not sure what I am overlooking, but i do suspect that I am overlooking something.
Does the php command need to stay in crontab?
Does the cactid command need to be a cron job?
I am currently trying cactid 0.8.6g... I put the full path to perl everywhere I saw it. Does <path_cacti> need replaced with the full path to cacti as well?
I had no luck with previous versions, but I believe that was because I had the wrong path to cactid. That path is correct now (onthe poller tab).
Is there anything else I might be overlooking?
Does the php command need to stay in crontab?
Does the cactid command need to be a cron job?
I am currently trying cactid 0.8.6g... I put the full path to perl everywhere I saw it. Does <path_cacti> need replaced with the full path to cacti as well?
I had no luck with previous versions, but I believe that was because I had the wrong path to cactid. That path is correct now (onthe poller tab).
Is there anything else I might be overlooking?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
It is not that complicated (at least, to me ). You _always_ keep the crontab as is and call poller.php every 5 min. The poller itself now gets his configuration from the settings table of the mysql database. There are only two options, to be configured in the Poller tab of the Settings:
- cmd.php or
- cactid
In neither case you will change the crontab.
Reinhard
- cmd.php or
- cactid
In neither case you will change the crontab.
Reinhard
-
- Posts: 24
- Joined: Thu Jan 05, 2006 5:52 pm
Hello,
I have been facing the same problem since i upgraded cacid.
php poller.php is running though crontab. Please help me
Error is
Waiting on 1/1 pollers.
01/17/2006 04:21:31 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
01/17/2006 04:21:31 PM - SYSTEM STATS: Time:292.7455 Method:cactid Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:33 RRDsProcessed:0
PHP Warning: pclose(): 47 is not a valid stream resource in /usr/local/cacti/lib/rrd.php on line 48
I have been facing the same problem since i upgraded cacid.
php poller.php is running though crontab. Please help me
Error is
Waiting on 1/1 pollers.
01/17/2006 04:21:31 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
01/17/2006 04:21:31 PM - SYSTEM STATS: Time:292.7455 Method:cactid Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:33 RRDsProcessed:0
PHP Warning: pclose(): 47 is not a valid stream resource in /usr/local/cacti/lib/rrd.php on line 48
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
When you run cactid from command line, what does it return? e.g. Setting Logging Level to DEBUG (Settings!) will give more details
Reinhard
Code: Select all
cactid 0 5
Reinhard
-
- Posts: 24
- Joined: Thu Jan 05, 2006 5:52 pm
Finally!
Sure enough, cactid never worked because I didn't change the cactid.conf before I compiled. It is running now. Thanks!
-
- Posts: 24
- Joined: Thu Jan 05, 2006 5:52 pm
Well, I ran cactid successfully after I recompiled, I got several errors, but I assumed that was because poller.php had to call it. When the next cronjob came around some of my graphs updated once, but then it stopped working again. When I run it I get the original error again,
How much sense does that make?
Code: Select all
sudo /usr/local/cactid/bin/cactid
CACTID: MYSQL: Connection Failed: Access denied for user 'cactiuser'@'localhost' (using password: YES)
-
- Posts: 24
- Joined: Thu Jan 05, 2006 5:52 pm
I have been unable to find a cactid.conf to edit. I edited the one in the tarball before I compiled, and I found one in /var/net-snmp that says not to edit it. Aside from those two, there are no others. Do I need to manually copy the one from the tarball extraction location to another location? Thanks.
-
- Posts: 24
- Joined: Thu Jan 05, 2006 5:52 pm
Who is online
Users browsing this forum: No registered users and 1 guest