monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Monit not validating in daemon mode on a pfSense (FreeBSD 8.3) machine


From: Toby Walsh
Subject: Monit not validating in daemon mode on a pfSense (FreeBSD 8.3) machine
Date: Sat, 27 Apr 2013 17:23:53 +0800

Hi list,

I have experimented with getting monit working on a pfSense machine, based on FreeBSD 8.3. I can get monit to boot successfully and run in daemon mode, but the one service (an extra instance of lighttpd) that I would like to monitor is not being started in this mode.

- I have /usr/local/etc/rc.d/monit.sh, which starts monit at boot time
- I have /usr/local/etc/monitrc, which is correctly read
- 'ps -ax | grep monit' shows '/usr/local/bin/monit -c /usr/local/etc/monitrc'
- 'monit status' or 'http://localhost:2812' show my service as not monitored
- 'tail /var/log/monit.log' shows monit starts at boot, but then pretty much sleeps and my service is never started
- if I run 'monit validate', it wakes the daemon and then all is good

Alternatively, I tried to add the 'set init' flag to monitrc and although it shows different results on 'ps -ax | grep monit', implying it might be in foreground mode, it still doesn't do the polling and monitoring that i hope for.

The extra line shown by ps with 'set init' in monitrc is '/bin/sh /usr/local/etc/rc.d/monit.sh start'

I want monit to run automatically at boot, monitor my service and require no intervention. Am I missing something?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]