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
error_log messages & cron/cmd.php
Moderators: Developers, Moderators
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
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
Who is online
Users browsing this forum: No registered users and 2 guests