1 Empty graph:script OK but Logfile bad

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

Moderators: Developers, Moderators

Post Reply
dude4you
Posts: 15
Joined: Wed Nov 19, 2003 5:11 pm

1 Empty graph:script OK but Logfile bad

Post by dude4you »

I loged in as cactiuser and run the unix_apachestat.pl script just fine.

But still when I check the log file I get a :
apache_idle_workers N::::

The rrd gets updated, I gues the privilges are right.
dude4you
Posts: 15
Joined: Wed Nov 19, 2003 5:11 pm

Post by dude4you »

I loged in as cactiuser, executed cmd.php and everyting went fine.
Even the logfile sad it.
[cactiuser@mailkast cacti]$ /usr/local/bin/php /var/www/cacti-0.8.5/cmd.php

But when I use the crontab only one graph is not updated.
*/1 * * * * cactiuser /usr/local/bin/php /var/www/cacti-0.8.5/cmd.php


How come?
dude4you
Posts: 15
Joined: Wed Nov 19, 2003 5:11 pm

Post by dude4you »

The error was that cactiuser can not execute "lynx" with the cmd.php.
I don't understand why, I even set the chmod 777 to /usr/bin/lynx.

I ended up replacing lynx with wget in the script.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests