Hi Simon,
I'm running Observium in a Freebsd-10, no problems here.
Cron is running as root:
# cat /etc/crontab
# /etc/crontab - root's crontab for FreeBSD # # $FreeBSD: releng/10.3/etc/crontab 194170 2009-06-14 06:37:19Z brian $ # SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin # #minute hour mday month wday who command # # Observium - poller 33 */6 * * * root /opt/observium/discovery.php -h all > /dev/null 2>&1 */5 * * * * root /opt/observium/discovery.php -h new > /dev/null 2>&1 */5 * * * * root /opt/observium/poller-wrapper.py 16 > /dev/null 2>&1 # # Observium - billing */5 * * * * root /opt/observium/poll-billing.php > /dev/null 2>&1 01 * * * * root /opt/observium/billing-calculate.php > /dev/null 2>&1
Permissions on rrd folder:
# ls -la | grep rrd drwxr-xr-x 58 root www 2048 Oct 18 20:10 rrd
You can output poller to a file, for debug purposes (on your crontab file):
#*/5 * * * * root /opt/observium/poller-wrapper.py 16 > /opt/observium/logs/poller.log
Regards,
2016-10-19 13:28 GMT-02:00 Simon Smith simonsmith5521@gmail.com:
Hi All,
this is a random question, has anyone got observium running correctly on freebsd?
managed to get it all setup and running, panels fine, add devices fine, poll device manually, etc
only issue I’m having is i can’t get the cronjob working for every 5mins?
i can see from the cron log in /var/log its running the poller correctly
Oct 18 04:05:00 observium /usr/sbin/cron[49554]: (root) CMD (/opt/observium/poller-wrapper.py 2 >> /dev/null) Oct 18 04:10:00 observium /usr/sbin/cron[50385]: (root) CMD (/usr/libexec/atrun) Oct 18 04:10:00 observium /usr/sbin/cron[50387]: (root) CMD (/opt/observium/poller-wrapper.py 2 >> /dev/null) Oct 18 04:15:00 observium /usr/sbin/cron[51227]: (root) CMD (/usr/libexec/atrun) Oct 18 04:15:00 observium /usr/sbin/cron[51228]: (root) CMD (/opt/observium/poller-wrapper.py 2 >> /dev/null) Oct 18 04:20:00 observium /usr/sbin/cron[52076]: (root) CMD (/usr/libexec/atrun) Oct 18 04:20:00 observium /usr/sbin/cron[52079]: (root) CMD (/opt/observium/poller-wrapper.py 2 >> /dev/null) Oct 18 04:25:00 observium /usr/sbin/cron[52917]: (root) CMD (/usr/libexec/atrun) Oct 18 04:25:00 observium /usr/sbin/cron[52918]: (root) CMD (/opt/observium/poller-wrapper.py 2 >> /dev/null) Oct 18 04:30:00 observium /usr/sbin/cron[53752]: (root) CMD (/usr/libexec/atrun) Oct 18 04:30:00 observium /usr/sbin/cron[53753]: (root) CMD (/opt/observium/poller-wrapper.py 2 >> /dev/null)
however no data gets inserted into the db, but if i run the command manually as root, it inserts stuff fine?
the only thing i can think of is the php is running apache which then runs as www not root
would this have an issue maybe?
regards
Simon _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium