Re: [Observium] observium Digest, Vol 39, Issue 74
On Oct 20, 2013, at 3:48 PM, observium-request@observium.org wrote:
What errors or information does it give when you run it on the command line?
Kind regards,
Job
Hi Job ;-)
No errors are shown in the cron, it merely logs that it has run the command. With regards to the question of "why FreeBSD?", that's personal preference. I'm more comfortable troubleshooting on FreeBSD than on Linux…
Is there any way to make poller-wrapper.py produce more logging? (I admit not going through the code).
Regards Rutger
On 2013-10-20 20:01, Rutger Bevaart wrote:
On Oct 20, 2013, at 3:48 PM, observium-request@observium.org wrote:
What errors or information does it give when you run it on the command line?
Kind regards,
Job
Hi Job ;-)
No errors are shown in the cron, it merely logs that it has run the command. With regards to the question of "why FreeBSD?", that's personal preference. I'm more comfortable troubleshooting on FreeBSD than on Linux…
Is there any way to make poller-wrapper.py produce more logging? (I admit not going through the code).
Depending upon the size of your installation, you could switch to running poller.php directly, if the poller-wrapper doesn't work.
I'd be willing to be that it's a permissions or other configuration error, though, and no fucking around with poller or the wrapper will fix it.
Just run it under Ubuntu/Debian. It'll make your life a lot easier when things don't periodically break because we're doing something that doesn't work on FreeBSD.
adam.
On Sun, Oct 20, 2013 at 09:01:33PM +0200, Rutger Bevaart wrote:
No errors are shown in the cron, it merely logs that it has run the command. With regards to the question of "why FreeBSD?", that's personal preference. I'm more comfortable troubleshooting on FreeBSD than on Linux…
Is there any way to make poller-wrapper.py produce more logging? (I admit not going through the code).
Maybe if you run it from cron like this?
*/5 * * * * root /path/to/wrapper > /tmp/poller-wrapper-output 2>&1
And than check if that file shows more information. Problems that I forsee are that the $PATH variable in context of cron is different compared to running it as root, or maybe it cannot find some required python modules.
Kind regards,
Job
Job Snijders schreef op 20-10-2013 23:28:
Is there any way to make poller-wrapper.py produce more logging? (I admit not going through the code).
Maybe if you run it from cron like this?
*/5 * * * * root /path/to/wrapper > /tmp/poller-wrapper-output 2>&1
When using /etc/crontab file, remove the user column (root). It should be something like:
*/5 * * * * /opt/observium/poller-wrapper.py > /tmp/poller-wrapper-output 2>&1
On 10/21/2013 11:39 AM, Michiel Klaver wrote:
When using /etc/crontab file, remove the user column (root). It should be something like:
*/5 * * * * /opt/observium/poller-wrapper.py > /tmp/poller-wrapper-output 2>&1
*BZZT* You're not very awake dear... ;)
Tom
participants (5)
-
Adam Armstrong
-
Job Snijders
-
Michiel Klaver
-
Rutger Bevaart
-
Tom Laermans