Jan-Henrik Haukeland <address@hidden> writes:
Thanks for the bugfix, altough now there is a new problem,
DeviceInfo_Usage() gets an empty DeviceInfo_T object when I run monit
with the following configuration:
set daemon 60 # Poll at 1-minute intervals
set logfile /tmp/x #syslog set mailserver localhost # Use
localhost as the smtp server
set mail-format { from: address@hidden }
# Make monit start it's web-server
set httpd port 2812 #sdfsdf
enable SSL pemfile /home/hauk/monit.pem
and use address localhost
allow localhost
allow 127.0.0.1 # allow localhost to connect to the server
allow hauk:hauk # Allow Basic Auth
check device cdrom with path /dev/cdrom
start "/bin/mount /dev/cdrom"
stop "/bin/umount /dev/cdrom"
alert address@hidden
check device disk1 with path /
alert address@hidden
check host ftp.redhat.com
if failed port 21 protocol ftp
then exec "/usr/X11R6/bin/xmessage -display :0 ftp connection
failed"
alert address@hidden
check host rhn.redhat.com
if failed port 80 protocol http and request
"/help/about.pxt" and timeout 10 seconds then unmonitor
if failed port 443 type TCPSSL protocol http timeout 15 seconds
then alert
alert address@hidden
The problem is with the entry; check device disk1 above. The stack
trace:
Starting monit daemon
Starting httpd at [localhost:2812]
[New Thread 2049 (LWP 2546)]
[New Thread 1026 (LWP 2547)]
AssertException: at device/common_device.c:122
aborting..
Program received signal SIGABRT, Aborted.
[Switching to Thread 1024 (LWP 2545)]
0x42029331 in kill () from /lib/i686/libc.so.6
(gdb) up
#1 0x40032bdb in raise () from /lib/i686/libpthread.so.0
(gdb) #2 0x4202a8c2 in abort () from /lib/i686/libc.so.6
(gdb) #3 0x08056212 in DeviceInfo_Usage (devinfo=0x0,
object=0x40212ffc "/")
at device/common_device.c:122