On Oct 21, 2013, at 2:02 PM, Borja Marcos wrote:
Hello,
I 've been using Observium on FreeBSD 9.2 and now 10-BETA1
The most important difference between FreeBSD and some Linux distributions is where stuff is installed. The default installation of Observium uses /usr/bin as the path for many commands (snmp, Python, etc) and FreeBSD keeps a strict separation between the base system and the optional ports/packages.
Nothing dramatic, but they belong under /usr/local/bin instead of /usr/bin, /usr/local/lib instead of /usr/lib...
I forgot. The default PATH for the cron execution environment is extremely limited due to security reasons in FreeBSD. You need to make sure that you either have all your absolute paths right, *or* add a more generous PATH to the user's crontab.
---- PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
33 */6 * * * /var/www/observium/discovery.php -h all >> /dev/null 2>&1 */5 * * * * /var/www/observium/discovery.php -h new >> /dev/null 2>&1 */5 * * * * /var/www/observium/poller-wrapper.py 1 >> /dev/null 2>&1
-----
Borja.