error_log messages & cron/cmd.php

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

Moderators: Developers, Moderators

Post Reply
You4eea
Posts: 11
Joined: Sat Jan 26, 2002 7:00 pm
Contact:

Post by You4eea »

ERROR_LOG:
I am receiving the following message in my apache/error_log

ERROR: unknown variable '800998ecf8427e'
ERROR: unknown variable '800998ecf8427e'
ERROR: unknown variable '800998ecf8427e'
ERROR: unknown variable '800998ecf8427e'
ERROR: unknown variable '800998ecf8427e'
ERROR: unknown variable '800998ecf8427e'
ERROR: unknown variable '800998ecf8427e'
ERROR: unknown variable '800998ecf8427e'
ERROR: unknown variable '800998ecf8427e'
ERROR: unknown variable '800998ecf8427e'

Anyone know what this means and if there is a solutions

CRON:
When I run the following command at my shell
$php -q /var/www/htdocs/cacti/cmd.php
everything is update, ie.. charts and logs

But when cron runs sometimes not all the time my sncharts and logs do not get updates
Here is my crontab entry
+-----------------------------------+
*/5 * * * * /usr/local/bin/php -q /var/www/htdocs/cacti/cmd.php > /dev/null
2>&1
+------------------------------------+
Mostly my snmp stuff doesn't get updated.
Any ideas?

CMD.PHP
My question regarding cmd.php are more about making sure I have my permissions correct.

Does the cmd.php need to be chmod 755 ?
What should be the chmod setting for the following.
*.php files
directories

Thanks
With best personal regards,
I am
Very truly yours

You4eea
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Not sure about the errors in your apache log file. At first glance, those 'unknown variables' look a lot like cacti's DEF names. I updated that code for this version though; so maybe they will go away.

About your cron problem; it appears as if you are missing the user to run the cron job as. It should look like:

*/5 * * * * WEBUSER /usr/local/bin/php -q /var/www/htdocs/cacti/cmd.php > /dev/null
2>&1

You would want to replace 'WEBUSER' with a valid user that has write access to cacti's 'rra/' and 'log/' directories.

cmd.php does not need to be exectable. 'chmod 644 cmd.php' should do fine for that, as for the rest of the .php files. The only reason 'cmd.php' does not need to be executable is because it is called explicitely and not with an interpreter like often used in perl.

Also, I just released cacti version 0.6.4. You may want to give that a try also. Hope I was of some help,

-Ian
You4eea
Posts: 11
Joined: Sat Jan 26, 2002 7:00 pm
Contact:

Post by You4eea »

Who that Man?

Rax! is the man :smile:
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests