Poller configured to run as Cron Job but not running

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

Moderators: Developers, Moderators

Post Reply
cksrealm
Cacti User
Posts: 140
Joined: Sun May 08, 2005 5:45 pm
Location: Sydney,Australia
Contact:

Poller configured to run as Cron Job but not running

Post by cksrealm »

Hi All,

Long term Cacti user but not used it for a few years, used extensively in the past however, have installed a new version no issues on an Ubuntu Server. Everything seems to have gone well and I can add devices etc, however despite the crontab being setup to run the cmd.php poller it does not actually seem to do anything.

If I run php poller.php it runs and I get data on the graphs but only when I manually run it, and within the device settings I can only select the poller type to be cmd.php not poller.php

Have I missed something in the install section that is causing this possibly.
System - Red Hat Enterprise
Cacti Version - 1.2.23
RRDTool - 1.7.0
Poller - CMD
[u]Plugins Installed[/u]
Monitor 2.5
ReportIT 1.1.3
Thold 1.7
Weathermap 1.0
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Poller configured to run as Cron Job but not running

Post by macan »

show crontab table
show path of your cacti installation
Let the Cacti grow!
cksrealm
Cacti User
Posts: 140
Joined: Sun May 08, 2005 5:45 pm
Location: Sydney,Australia
Contact:

Re: Poller configured to run as Cron Job but not running

Post by cksrealm »

Crontab Table----
* * * * * root php /var/www/html/cacti/cmd.php > /dev/null 2>&1

Path to Cacti from the include/config.php

$url_path = '/cacti/';

Cacti is in the /var/www/html/cacti folder.

Thanks
System - Red Hat Enterprise
Cacti Version - 1.2.23
RRDTool - 1.7.0
Poller - CMD
[u]Plugins Installed[/u]
Monitor 2.5
ReportIT 1.1.3
Thold 1.7
Weathermap 1.0
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Poller configured to run as Cron Job but not running

Post by macan »

change this:
* * * * * root php /var/www/html/cacti/cmd.php > /dev/null 2>&1

* * * * * root /real/path/to/php /var/www/html/cacti/cmd.php > /dev/null 2>&1
Let the Cacti grow!
cksrealm
Cacti User
Posts: 140
Joined: Sun May 08, 2005 5:45 pm
Location: Sydney,Australia
Contact:

Re: Poller configured to run as Cron Job but not running

Post by cksrealm »

Will give that a go and let you know, thanks alot.
System - Red Hat Enterprise
Cacti Version - 1.2.23
RRDTool - 1.7.0
Poller - CMD
[u]Plugins Installed[/u]
Monitor 2.5
ReportIT 1.1.3
Thold 1.7
Weathermap 1.0
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Poller configured to run as Cron Job but not running

Post by TheWitness »

I'm using the cactid systemd service everywhere these days. Easier to manage, and works well with cluster failover.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest