Hello,
I've tried to use monit on my OpenBSD snapshot
Which is:
# uname -ap
OpenBSD openbsd.eject.name 4.9 GENERIC.MP#814 i386 Intel(R) Atom(TM)
CPU D425 @ 1.80GHz ("GenuineIntel" 686-class)
# pkg_info -v monit
Information for inst:monit-4.10.1p1
I tried to run it with "out of package config" and noticed that it not
starts as daemon:
/usr/local/bin/monit -d 300 -c /etc/monitrc -v
# /usr/local/bin/monit -d 300 -c /etc/monitrc -v
Runtime constants:
Control file = /etc/monitrc
Log file = (not defined)
Pid file = /var/run/monit.pid
Debug = True
Log = False
Use syslog = False
Is Daemon = True
Use process engine = True
Poll time = 300 seconds
Mail server(s) = localhost
Mail from = (not defined)
Mail subject = (not defined)
Mail message = (not defined)
Start monit httpd = False
The service list contains the following entries:
System Name = openbsd.eject.name
Monitoring mode = active
-------------------------------------------------------------------------------
Starting monit daemon
# ps ax | grep monit
9314 p0 R+/1 0:00.00 grep monit
What's happened? How can I help you to debug this problem?
Btw, maybe it will be useful:
# gdb /usr/local/bin/monit
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd4.9"...(no debugging
symbols found)
(gdb) run
Starting program: /usr/local/bin/monit
Program received signal SIGSEGV, Segmentation fault.
[Switching to process 15499, thread 0x84db3c00]
0x1c02420b in signal ()
(gdb) backtrace
#0 0x1c02420b in signal ()
#1 0x1c00bce9 in ?? ()
#2 0x3c0223b4 in __progname ()
#3 0xcfbf2514 in ?? ()
#4 0xcfbf2528 in ?? ()
#5 0x1c024408 in signal ()
#6 0x1c0188b2 in signal ()
#7 0x1c00a72a in ?? ()
#8 0x7fa2f200 in ?? ()
#9 0x00000000 in ?? ()
It works fine with the same scenario and config on my other machine
GENERIC.MP#335 amd64 Intel(R) Xeon(TM) CPU 3.00GHz
--
--
With regards,
Eugene Sudyr