Actually, I've come to discover that 'monit status' is missing a whole
bunch of stuff... This is the output from a known-working host:
status running
monitoring status monitored
load average [0.70] [0.29] [0.10]
cpu 4.8%us 13.4%sy 1.5%wa
memory usage 171276 kB [33.2%]
data collected Fri May 2 12:41:34 2008
And the output from my problem host:
status running
monitoring status monitored
data collected Fri May 2 12:31:37 2008
The top is from a Linux host, and the bottom from my HPUX one. Both
sources were configured with resource monitoring. Am I
troubleshooting this in vain on HPUX?
Thanks!
Brian
On May 1, 2008, at 7:38 AM, Brian Downey wrote:
Hi All,
Wondering if there is anything I can do about a "problem" we're
experiencing with a service being monitored by a pid file.
When running 'monit status', our service comes back showing '-1' as
the PID and the Parent PID:
Process 'xci-poll'
status running
pid -1
parent pid -1
uptime 16m
data collected Thu May 1 10:32:49 2008
Here is the service definition:
check process xci-poll with pidfile /var/run/xci-poll.pid
start program = "/etc/init.d/xci-poll start"
stop program = "/etc/init.d/xci-poll stop"
if changed pid then restart
Other than showing -1, monit watches and manages the service
perfectly. The only thing semi-unusual is the init.d script exec's
to the actual binary, which then becomes owned by init(1). Standard
forking stuff, from what I remember.
Thanks for any insight!
-Brian
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general