crontab

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

Moderators: Developers, Moderators

Post Reply
monitorman
Posts: 3
Joined: Thu Oct 31, 2013 4:54 pm

crontab

Post by monitorman »

I've got Cacti setup, and I'm sure I've gone through the installation thoroughly (well almost if it's not quite working), but I'm seeing no graphs appear from the localhost (the default ones), neither am I seeing graphs from Percona MySQL templates. My only doubt is in the crontab, my crontab currently looks like below

*/5 * * * * php /var/www/html/cacti/poller.php > /home/monitorman/poller.log 2>&1

When I type the user as the documentation states (see below), the crontab doesn't process the user, and it prints an error to the poller.log. interpreting 'monitorman' as a linux program.

*/5 * * * * monitorman php /var/www/html/cacti/poller.php > /home/monitorman/poller.log 2>&1

Before I relook at this again, my questions are:

1) Do I need to setup a user explicitly called 'cactiuser' for the poller.php to run?

2) Why does the second crontab statement fail?

Appreciate any responses.
monitorman
Posts: 3
Joined: Thu Oct 31, 2013 4:54 pm

Re: crontab

Post by monitorman »

Just to point out I'm using Cacti v0.88
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: crontab

Post by paulgevers »

Not sure, but I remember that crontab does not allow to provide the user to run, you need an entry in cron.d (I think).
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest