Hi,
This is mostly due to limited environment on Crontab.
Try with /usr/local/bin/python /opt/observium/poller-wrapper.py this should make it work.
Regards;
-- Xavier Beaudouin - Senior Network and System Administrator Infrastructure and network director Horizon Software - http://www.hsoftware.com/ 13 rue La Fayette - 75009 PARIS - France Phone: +33 (0)1 4260 9490 Fax: +33 (0)1 44 56 97 01
----- Mail original -----
De: "Rutger Bevaart" rutger@xconnect24.com À: observium@observium.org Envoyé: Vendredi 18 Octobre 2013 16:35:36 Objet: [Observium] poller-wrapper.py not working on FreeBSD?
I have the following line in my /etc/crontab on FreeBSD9.1:
*/5 * * * * root /opt/observium/poller-wrapper.py 1 >> /dev/null 2>&1
I can manually run the poller (as root) but all monitored interfaces go to '0'. Somehow it seems that the poller-wrapper is not able to insert the data into the RRDs.
root@server:/opt/observium # ./poller-wrapper.py 8 INFO: starting the poller at 1382106842.7 with 8 threads, slowest devices first INFO starting alerter.php for 2 INFO finished alerter.php for 2 INFO: worker Thread-7 finished device 2 in 7 seconds INFO starting alerter.php for 8 INFO finished alerter.php for 8 INFO: worker Thread-6 finished device 8 in 9 seconds INFO starting alerter.php for 7 INFO finished alerter.php for 7 INFO: worker Thread-2 finished device 7 in 10 seconds INFO starting alerter.php for 6 INFO finished alerter.php for 6 INFO: worker Thread-5 finished device 6 in 11 seconds INFO starting alerter.php for 1 INFO finished alerter.php for 1 INFO: worker Thread-4 finished device 1 in 12 seconds INFO starting alerter.php for 4 INFO finished alerter.php for 4 INFO: worker Thread-3 finished device 4 in 14 seconds INFO starting alerter.php for 5 INFO finished alerter.php for 5 INFO: worker Thread-1 finished device 5 in 16 seconds INFO: poller-wrapper polled 7 devices in 16 seconds with 8 workers
Also, the regular poller does not work when moved to /etc/crontab, stragely enough it runs just fine from the crontab for user root (edited using 'crontab -e').
Any clues? Any way to verify where it is not working?
Regards Rutger
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium