monit-general
[Top][All Lists]
Advanced

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

RE: 4.7-beta1: monit <command> <service> does not work


From: metaworx lists
Subject: RE: 4.7-beta1: monit <command> <service> does not work
Date: Tue, 20 Dec 2005 11:25:24 +0100

> On Behalf Of Jan-Henrik Haukeland
> Sent: Dienstag, 20. Dezember 2005 00:34

thanks for your response.

> On 19. des. 2005, at 22.38, metaworx lists wrote:
> 
> > after installing 4.7-beta1 we where not able to send monit 
> any command
> > using the monit binary. exit code is allways 0.
> >
> > but: if i use strace on the monit command, then everything works as
> > suspected  :o
> >
> > ... and i can do any command i like from the webinterface.
> >
> > can any one reproduce this?
> 
> Can't reproduce this, but I'm on Mac OSX, without the resource part  
> of monit. Anyway, this looks suspiciously like a memory bug. Can you  
> start monit with the debug flag like so, monit -Iv. Debug is now  
> printed to the console, anything interesting? If not, this 
> looks like  
> a job for valgrind, unfortunately not available on OSX. If this is  
> reproducible, maybe someone can run valgrind on the beta and provide  
> a listing? (mind that if ssl is compiled in, ignore openssl errors/ 
> warnings in valgrind).


running daemon with debug
-------------------------

address@hidden:~$ sudo monit -d 10 -Iv
monit: Debug: Adding host allow 'localhost' (127.0.0.1).
monit: Debug: Adding net allow '62.12.154.0/255.255.255.0'.
monit: Debug: Adding net allow '62.12.129.144/255.255.255.240'.
monit: Debug: Adding net allow '130.60.0.0/255.255.0.0'.
monit: Debug: Adding host allow 'metaworx.dnsalias.net' (84.170.139.19).
monit: Debug: Adding credentials for user 'admin'.
Runtime constants:
 Control file       = /etc/monit/group_dolomit.inc
 Log file           = syslog
 Pid file           = /var/run/monit.pid
 Debug              = True
 Log                = True
 Use syslog         = True
 Is Daemon          = True
 Use process engine = True
 Poll time          = 10 seconds
 Mail server(s)     = smtp.cyberlink.ch 
 Mail from          = (not defined)
 Mail subject       = (not defined)
 Mail message       = (not defined)
 Start monit httpd  = True
 httpd bind address = publichost
 httpd portnumber   = 2812
 httpd signature    = True
 Use ssl encryption = True
 PEM key/cert file  = /etc/ssl/private/publichost.scr
 Client cert file   = None
 Allow self certs   = False
 httpd auth. style  = Basic Authentication and Host/Net allow list

The service list contains the following entries:

...

Process Name          = vs5_dbhost
 Group                = vs5
 Pid file             = /etc/vservers/5/run.pid
 Monitoring mode      = active
 Start program        = /etc/vservers.local/.defaults/scripts/run 5 start
 Stop program         = /etc/vservers.local/.defaults/scripts/run 5 stop
 Pid                  = if changed 1 times within 1 cycle(s) then alert
 Ppid                 = if changed 1 times within 1 cycle(s) then alert
 Alert mail to        = address@hidden
   Alert on           = All events

...

System Name           = dolomit
 Monitoring mode      = active

----------------------------------------------------------------------------
---
monit: pidfile '/var/run/monit.pid' does not exist
Starting monit daemon with http interface at [publichost:2812]
Starting monit HTTP server at [publichost:2812]
monit HTTP server started
Monit started
...
'vs5_dbhost' got pid [28808] from '/etc/vservers/5/run.pid'
'vs5_dbhost' zombie check passed [status_flag=0000]
...
Monit has not changed
...
'vs5_dbhost' got pid [28808] from '/etc/vservers/5/run.pid'
'vs5_dbhost' zombie check passed [status_flag=0000]
'vs5_dbhost' PID has not changed since last cycle
...
========> here i called sudo monit -Iv stop vs5_dbhost
...
'vs5_dbhost' got pid [28808] from '/etc/vservers/5/run.pid'
'vs5_dbhost' zombie check passed [status_flag=0000]
'vs5_dbhost' PID has not changed since last cycle
...
Shutting down monit HTTP server
monit HTTP server stopped
monit daemon with pid [29012] killed
Monit stopped


calling the stop command (w/o strace)
========================

address@hidden:~$ sudo monit -Iv stop vs5_dbhost
monit: Debug: Adding host allow 'localhost' (127.0.0.1).
monit: Debug: Adding net allow '62.12.154.0/255.255.255.0'.
monit: Debug: Adding net allow '62.12.129.144/255.255.255.240'.
monit: Debug: Adding net allow '130.60.0.0/255.255.0.0'.
monit: Debug: Adding host allow 'metaworx.dnsalias.net' (84.170.139.19).
monit: Debug: Adding credentials for user 'admin'.
Runtime constants:
 Control file       = /etc/monitrc
 Log file           = syslog
 Pid file           = /var/run/monit.pid
 Debug              = True
 Log                = True
 Use syslog         = True
 Is Daemon          = True
 Use process engine = True
 Poll time          = 3 seconds
 Mail server(s)     = smtp.cyberlink.ch 
 Mail from          = (not defined)
 Mail subject       = (not defined)
 Mail message       = (not defined)
 Start monit httpd  = True
 httpd bind address = publichost
 httpd portnumber   = 2812
 httpd signature    = True
 Use ssl encryption = True
 PEM key/cert file  = /etc/ssl/private/publichost.scr
 Client cert file   = None
 Allow self certs   = False
 httpd auth. style  = Basic Authentication and Host/Net allow list

The service list contains the following entries:

...

Process Name          = vs5_dbhost
 Group                = vs5
 Pid file             = /etc/vservers/5/run.pid
 Monitoring mode      = active
 Start program        = /etc/vservers.local/.defaults/scripts/run 5 start
 Stop program         = /etc/vservers.local/.defaults/scripts/run 5 stop
 Pid                  = if changed 1 times within 1 cycle(s) then alert
 Ppid                 = if changed 1 times within 1 cycle(s) then alert
 Alert mail to        = address@hidden
   Alert on           = All events

...

System Name           = dolomit
 Monitoring mode      = active

----------------------------------------------------------------------------
---

nothing happened. so I repeat the same procedure with strace on the
"commanding" monit

running the daemon
==================

address@hidden:~$ sudo monit -d 10 -Iv
monit: Debug: Adding host allow 'localhost' (127.0.0.1).
monit: Debug: Adding net allow '62.12.154.0/255.255.255.0'.
monit: Debug: Adding net allow '62.12.129.144/255.255.255.240'.
monit: Debug: Adding net allow '130.60.0.0/255.255.0.0'.
monit: Debug: Adding host allow 'metaworx.dnsalias.net' (84.170.139.19).
monit: Debug: Adding credentials for user 'admin'.
Runtime constants:
 Control file       = /etc/monitrc
 Log file           = syslog
 Pid file           = /var/run/monit.pid
 Debug              = True
 Log                = True
 Use syslog         = True
 Is Daemon          = True
 Use process engine = True
 Poll time          = 10 seconds
 Mail server(s)     = smtp.cyberlink.ch 
 Mail from          = (not defined)
 Mail subject       = (not defined)
 Mail message       = (not defined)
 Start monit httpd  = True
 httpd bind address = publichost
 httpd portnumber   = 2812
 httpd signature    = True
 Use ssl encryption = True
 PEM key/cert file  = /etc/ssl/private/publichost.scr
 Client cert file   = None
 Allow self certs   = False
 httpd auth. style  = Basic Authentication and Host/Net allow list

The service list contains the following entries:

...

Process Name          = vs5_dbhost
 Group                = vs5
 Pid file             = /etc/vservers/5/run.pid
 Monitoring mode      = active
 Start program        = /etc/vservers.local/.defaults/scripts/run 5 start
 Stop program         = /etc/vservers.local/.defaults/scripts/run 5 stop
 Pid                  = if changed 1 times within 1 cycle(s) then alert
 Ppid                 = if changed 1 times within 1 cycle(s) then alert
 Alert mail to        = address@hidden
   Alert on           = All events

...

System Name           = dolomit
 Monitoring mode      = active

----------------------------------------------------------------------------
---
monit: pidfile '/var/run/monit.pid' does not exist
Starting monit daemon with http interface at [publichost:2812]
Starting monit HTTP server at [publichost:2812]
monit HTTP server started
Monit started
...
'vs5_dbhost' got pid [28808] from '/etc/vservers/5/run.pid'
'vs5_dbhost' zombie check passed [status_flag=0000]
...
========> here i called sudo monit -Iv stop vs5_dbhost
Monitoring disabled -- service vs5_dbhost
'vs5_dbhost' got pid [28808] from '/etc/vservers/5/run.pid'
'vs5_dbhost' stop: /etc/vservers.local/.defaults/scripts/run
'vs5_dbhost' got pid [28808] from '/etc/vservers/5/run.pid'
'vs5_dbhost' got pid [28808] from '/etc/vservers/5/run.pid'
vserver.helper.run[29800]: Info: vs5_dbhost - stopping server (pid 28808)
vserver.helper.run[29806]: Info: vs5_dbhost - run '/usr/local/sbin/vserver
-v vs5_dbhost stop'
...
monit: pidfile '/etc/vservers/5/run.pid' does not exist
'vs5_dbhost' got pid [0] from '/etc/vservers/5/run.pid'
monit: pidfile '/etc/vservers/5/run.pid' does not exist
'vs5_dbhost' got pid [0] from '/etc/vservers/5/run.pid'
...
vserver.helper.run[30047]: Info: vs5_dbhost - vserver util output: ''
vserver.helper.run[30052]: Info: vs5_dbhost - exitcode of
/usr/local/sbin/vserver=0
Shutting down monit HTTP server
monit HTTP server stopped
monit daemon with pid [29764] killed
Monit stopped


this time it worked:

running monit with strace
=========================

address@hidden:~$ sudo strace -o monit.trace monit -Iv stop vs5_dbhost
monit: Debug: Adding host allow 'localhost' (127.0.0.1).
monit: Debug: Adding net allow '62.12.154.0/255.255.255.0'.
monit: Debug: Adding net allow '62.12.129.144/255.255.255.240'.
monit: Debug: Adding net allow '130.60.0.0/255.255.0.0'.
monit: Debug: Adding host allow 'metaworx.dnsalias.net' (84.170.139.19).
monit: Debug: Adding credentials for user 'admin'.
Runtime constants:
 Control file       = /etc/monitrc
 Log file           = syslog
 Pid file           = /var/run/monit.pid
 Debug              = True
 Log                = True
 Use syslog         = True
 Is Daemon          = True
 Use process engine = True
 Poll time          = 3 seconds
 Mail server(s)     = smtp.cyberlink.ch 
 Mail from          = (not defined)
 Mail subject       = (not defined)
 Mail message       = (not defined)
 Start monit httpd  = True
 httpd bind address = publichost
 httpd portnumber   = 2812
 httpd signature    = True
 Use ssl encryption = True
 PEM key/cert file  = /etc/ssl/private/publichost.scr
 Client cert file   = None
 Allow self certs   = False
 httpd auth. style  = Basic Authentication and Host/Net allow list

The service list contains the following entries:

...

Process Name          = vs5_dbhost
 Group                = vs5
 Pid file             = /etc/vservers/5/run.pid
 Monitoring mode      = active
 Start program        = /etc/vservers.local/.defaults/scripts/run 5 start
 Stop program         = /etc/vservers.local/.defaults/scripts/run 5 stop
 Pid                  = if changed 1 times within 1 cycle(s) then alert
 Ppid                 = if changed 1 times within 1 cycle(s) then alert
 Alert mail to        = address@hidden
   Alert on           = All events

...

System Name           = dolomit
 Monitoring mode      = active

----------------------------------------------------------------------------
---


the output of strace
====================

address@hidden:~$ cat monit.trace 
execve("/usr/local/bin/monit", ["monit", "-Iv", "stop", "vs5_dbhost"], [/*
23 vars */]) = 0

( loading program: )

uname({sys="Linux", node="dolomit", ...}) = 0
brk(0)                                  = 0x8093000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7f72000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=32503, ...}) = 0
old_mmap(NULL, 32503, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f6a000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0pF\0\000"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=78233, ...}) = 0
old_mmap(NULL, 60772, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7f5b000
old_mmap(0xb7f67000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0xc000) = 0xb7f67000
old_mmap(0xb7f68000, 7524, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f68000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/libcrypt.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\t\0"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=18876, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7f5a000
old_mmap(NULL, 181692, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7f2d000
old_mmap(0xb7f32000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x4000) = 0xb7f32000
old_mmap(0xb7f33000, 157116, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f33000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/libresolv.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220)\0"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=64924, ...}) = 0
old_mmap(NULL, 73640, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7f1b000
old_mmap(0xb7f2a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0xf000) = 0xb7f2a000
old_mmap(0xb7f2b000, 8104, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f2b000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/libnsl.so.1", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 <\0\000"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=73304, ...}) = 0
old_mmap(NULL, 80544, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7f07000
old_mmap(0xb7f18000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x11000) = 0xb7f18000
old_mmap(0xb7f19000, 6816, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f19000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/usr/lib/i686/cmov/libssl.so.0.9.7", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\205\0"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=198576, ...}) = 0
old_mmap(NULL, 199344, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7ed6000
old_mmap(0xb7f04000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x2e000) = 0xb7f04000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/usr/lib/i686/cmov/libcrypto.so.0.9.7", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\300\2"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1029672, ...}) = 0
old_mmap(NULL, 1043608, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7dd7000
old_mmap(0xb7ec1000, 73728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0xea000) = 0xb7ec1000
old_mmap(0xb7ed3000, 11416, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ed3000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`Z\1\000"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1254468, ...}) = 0
old_mmap(NULL, 1264780, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7ca2000
old_mmap(0xb7dcc000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x129000) = 0xb7dcc000
old_mmap(0xb7dd5000, 7308, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7dd5000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/libdl.so.2", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\32"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9872, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7ca1000
old_mmap(NULL, 8632, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7c9e000
old_mmap(0xb7ca0000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x2000) = 0xb7ca0000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c9d000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7c9d080, limit:1048575,
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1,
seg_not_present:0, useable:1}) = 0
munmap(0xb7f6a000, 32503)               = 0
set_tid_address(0xb7c9d0c8)             = 29785
rt_sigaction(SIGRTMIN, {0xb7f5f5d0, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
brk(0)                                  = 0x8093000
brk(0x80b4000)                          = 0x80b4000
brk(0)                                  = 0x80b4000
fstat64(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
fstat64(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
close(3)                                = -1 EBADF (Bad file descriptor)
close(4)                                = -1 EBADF (Bad file descriptor)
...
continues for every single number until
...
close(1022)                             = -1 EBADF (Bad file descriptor)
close(1023)                             = -1 EBADF (Bad file descriptor)
geteuid32()                             = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1
ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=465, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c7d000
read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 131072) = 465
read(3, "", 131072)                     = 0
close(3)                                = 0
munmap(0xb7c7d000, 131072)              = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=32503, ...}) = 0
old_mmap(NULL, 32503, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f6a000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/libnss_compat.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\22\0"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=28616, ...}) = 0
old_mmap(NULL, 31628, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7c95000
old_mmap(0xb7c9c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x6000) = 0xb7c9c000
close(3)                                = 0
munmap(0xb7f6a000, 32503)               = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=32503, ...}) = 0
old_mmap(NULL, 32503, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f6a000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/libnss_nis.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\34\0"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=33440, ...}) = 0
old_mmap(NULL, 36620, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7c8c000
old_mmap(0xb7c94000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x7000) = 0xb7c94000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\35"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=34748, ...}) = 0
old_mmap(NULL, 38044, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7c82000
old_mmap(0xb7c8b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x8000) = 0xb7c8b000
close(3)                                = 0
munmap(0xb7f6a000, 32503)               = 0
open("/etc/passwd", O_RDONLY)           = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
_llseek(3, 0, [0], SEEK_CUR)            = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1143, ...}) = 0
mmap2(NULL, 1143, PROT_READ, MAP_SHARED, 3, 0) = 0xb7f71000
_llseek(3, 1143, [1143], SEEK_SET)      = 0
munmap(0xb7f71000, 1143)                = 0
close(3)                                = 0
getcwd("/home/mdr", 4096)               = 10
umask(0)                                = 022
rt_sigaction(SIGTERM, {0x8052220, [], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGUSR1, {0x8052230, [], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x8052220, [], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x8052210, [], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0

( now start looking for the config: )

stat64("/root/.monitrc", 0xbfe8628c)    = -1 ENOENT (No such file or
directory)
stat64("/etc/monitrc", {st_mode=S_IFREG|0600, st_size=27, ...}) = 0
time([1135071007])                      = 1135071007
open("/proc/meminfo", O_RDONLY)         = 3
read(3, "MemTotal:      2075320 kB\nMemFre"..., 1023) = 598
close(3)                                = 0
open("/etc/mtab", O_RDONLY)             = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=459, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c62000
read(3, "/dev/sda3 / reiserfs rw 0 0\nproc"..., 131072) = 459
close(3)                                = 0
munmap(0xb7c62000, 131072)              = 0
open("/proc/stat", O_RDONLY)            = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7c81000
read(3, "cpu  498700 999 195982 25790890 "..., 1024) = 737
read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0xb7c81000, 4096)                = 0
lstat64("/etc/monitrc", {st_mode=S_IFREG|0600, st_size=27, ...}) = 0
geteuid32()                             = 0

( start reading main config: )

open("/etc/monitrc", O_RDONLY)          = 3
uname({sys="Linux", node="dolomit", ...}) = 0
time([1135071007])                      = 1135071007
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d48) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(3, {st_mode=S_IFREG|0600, st_size=27, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c62000
read(3, "INCLUDE /etc/monit/monitrc\n", 131072) = 27
read(3, "", 131072)                     = 0

( start reading 1st include file with the daemon info: )

stat64("/etc/monit/monitrc", {st_mode=S_IFREG|0600, st_size=661, ...}) = 0
stat64("/etc/monit/monitrc", {st_mode=S_IFREG|0600, st_size=661, ...}) = 0
open("/etc/monit/monitrc", O_RDONLY)    = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(4, {st_mode=S_IFREG|0600, st_size=661, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c42000
read(4, "#\n# general configuration\n#\n\n# S"..., 131072) = 661
read(4, "", 131072)                     = 0
lstat64("/etc/ssl/private/publichost.scr", {st_mode=S_IFREG|0600,
st_size=7769, ...}) = 0
geteuid32()                             = 0
gettimeofday({1135071007, 352833}, NULL) = 0
getpid()                                = 29785
open("/etc/resolv.conf", O_RDONLY)      = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=74, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c22000
read(5, "nameserver 62.12.154.31\nnameserv"..., 131072) = 74
read(5, "", 131072)                     = 0
close(5)                                = 0
munmap(0xb7c22000, 131072)              = 0
uname({sys="Linux", node="dolomit", ...}) = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 5
connect(5, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1
ENOENT (No such file or directory)
close(5)                                = 0
open("/etc/host.conf", O_RDONLY)        = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=26, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c22000
read(5, "order hosts,bind\nmulti on\n", 131072) = 26
read(5, "", 131072)                     = 0
close(5)                                = 0
munmap(0xb7c22000, 131072)              = 0
futex(0xb7dd5f00, FUTEX_WAKE, 2147483647) = 0
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=624, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c22000
read(5, "127.0.0.1      localhost\n127.0.0"..., 131072) = 624
read(5, "", 131072)                     = 0
close(5)                                = 0
munmap(0xb7c22000, 131072)              = 0
futex(0xb7dd6130, FUTEX_WAKE, 2147483647) = 0
write(2, "monit: Debug: Adding host allow "..., 57) = 57
write(2, "monit: Debug: Adding net allow \'"..., 60) = 60
write(2, "monit: Debug: Adding net allow \'"..., 64) = 64
write(2, "monit: Debug: Adding net allow \'"..., 57) = 57
socket(PF_FILE, SOCK_STREAM, 0)         = 5
connect(5, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1
ENOENT (No such file or directory)
close(5)                                = 0
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=624, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c22000
read(5, "127.0.0.1      localhost\n127.0.0"..., 131072) = 624
read(5, "", 131072)                     = 0
close(5)                                = 0
munmap(0xb7c22000, 131072)              = 0
open("/etc/ld.so.cache", O_RDONLY)      = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=32503, ...}) = 0
old_mmap(NULL, 32503, PROT_READ, MAP_PRIVATE, 5, 0) = 0xb7c3a000
close(5)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/tls/libnss_dns.so.2", O_RDONLY) = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\16"..., 512) =
512
fstat64(5, {st_mode=S_IFREG|0644, st_size=13976, ...}) = 0
old_mmap(NULL, 12704, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) = 0xb7c36000
old_mmap(0xb7c39000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 5,
0x3000) = 0xb7c39000
close(5)                                = 0
munmap(0xb7c3a000, 32503)               = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("62.12.154.31")}, 28) = 0
send(5, "\331\10\1\0\0\1\0\0\0\0\0\0\10metaworx\10dnsalias\3n"..., 39, 0) =
39
gettimeofday({1135071007, 356460}, NULL) = 0
poll([{fd=5, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(5, FIONREAD, [55])                = 0
recvfrom(5, "\331\10\201\200\0\1\0\1\0\0\0\0\10metaworx\10dnsalias\3"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("62.12.154.31")}, [16]) = 55
close(5)                                = 0
write(2, "monit: Debug: Adding host allow "..., 73) = 73
write(2, "monit: Debug: Adding credentials"..., 51) = 51
socket(PF_FILE, SOCK_STREAM, 0)         = 5
connect(5, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1
ENOENT (No such file or directory)
close(5)                                = 0
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=624, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c16000
read(5, "127.0.0.1      localhost\n127.0.0"..., 131072) = 624
read(5, "", 131072)                     = 0
close(5)                                = 0
munmap(0xb7c16000, 131072)              = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 5
connect(5, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("62.12.154.31")}, 28) = 0
send(5, "\331\t\1\0\0\1\0\0\0\0\0\0\4smtp\tcyberlink\2ch\0\0"..., 35, 0) =
35
gettimeofday({1135071007, 358163}, NULL) = 0
poll([{fd=5, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(5, FIONREAD, [51])                = 0
recvfrom(5, "\331\t\201\200\0\1\0\1\0\0\0\0\4smtp\tcyberlink\2ch\0\0"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("62.12.154.31")}, [16]) = 51
close(5)                                = 0

( start reading include directory: )

open("/store/volatile/etc/monit",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 5
fstat64(5, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
getdents64(5, /* 8 entries */, 4096)    = 240
getdents64(5, /* 0 entries */, 4096)    = 0
close(5)                                = 0
stat64("/store/volatile/etc/monit/vs32.inc", {st_mode=S_IFREG|0644,
st_size=575, ...}) = 0
stat64("/store/volatile/etc/monit/vs7.inc", {st_mode=S_IFREG|0644,
st_size=625, ...}) = 0
stat64("/store/volatile/etc/monit/vs56.inc", {st_mode=S_IFREG|0644,
st_size=577, ...}) = 0
stat64("/store/volatile/etc/monit/vs57.inc", {st_mode=S_IFREG|0644,
st_size=577, ...}) = 0
stat64("/store/volatile/etc/monit/vs5.inc", {st_mode=S_IFREG|0644,
st_size=626, ...}) = 0
stat64("/store/volatile/etc/monit/vs_dummy.inc", {st_mode=S_IFREG|0644,
st_size=0, ...}) = 0

( start reading include files defining the services: )

open("/store/volatile/etc/monit/vs32.inc", O_RDONLY) = 5
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
open("/store/volatile/etc/monit/vs5.inc", O_RDONLY) = 6
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
open("/store/volatile/etc/monit/vs56.inc", O_RDONLY) = 7
ioctl(7, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
open("/store/volatile/etc/monit/vs57.inc", O_RDONLY) = 8
ioctl(8, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
open("/store/volatile/etc/monit/vs7.inc", O_RDONLY) = 9
brk(0)                                  = 0x80b4000
brk(0x80d7000)                          = 0x80d7000
ioctl(9, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
open("/store/volatile/etc/monit/vs_dummy.inc", O_RDONLY) = 10
ioctl(10, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(10, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f71000
read(10, "", 8192)                      = 0
ioctl(10, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(10)                               = 0
munmap(0xb7f71000, 4096)                = 0
fstat64(9, {st_mode=S_IFREG|0644, st_size=625, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c16000
read(9, " # v1.01 20050913 mdr removed in"..., 131072) = 625
read(9, "", 131072)                     = 0
time([1135071007])                      = 1135071007
stat64("/etc/vservers.local/.defaults/scripts/run", {st_mode=S_IFREG|0755,
st_size=742, ...}) = 0
stat64("/etc/vservers.local/.defaults/scripts/run", {st_mode=S_IFREG|0755,
st_size=742, ...}) = 0
stat64("/etc/vservers/7/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
stat64("/etc/vservers/7/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
open("/etc/vservers/7/mode", O_RDONLY)  = 10
ioctl(10, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(10, {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7bf6000
read(10, "manual\n", 131072)            = 7
read(10, "", 131072)                    = 0
read(10, "", 131072)                    = 0
ioctl(10, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(10)                               = 0
munmap(0xb7bf6000, 131072)              = 0
stat64("/etc/vservers.local/.defaults/apps/monit/global_alert.inc",
{st_mode=S_IFREG|0644, st_size=48, ...}) = 0
stat64("/etc/vservers.local/.defaults/apps/monit/global_alert.inc",
{st_mode=S_IFREG|0644, st_size=48, ...}) = 0
open("/etc/vservers.local/.defaults/apps/monit/global_alert.inc", O_RDONLY)
= 10
ioctl(10, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(10, {st_mode=S_IFREG|0644, st_size=48, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7bf6000
read(10, "alert address@hidden li"..., 131072) = 48
read(10, "", 131072)                    = 0
read(10, "", 131072)                    = 0
ioctl(10, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(10)                               = 0
munmap(0xb7bf6000, 131072)              = 0
stat64("/etc/vservers/7/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
time([1135071007])                      = 1135071007
stat64("/etc/vservers.local/.defaults/scripts/check_mode",
{st_mode=S_IFREG|0755, st_size=980, ...}) = 0
stat64("/etc/vservers.local/.defaults/scripts/check_mode",
{st_mode=S_IFREG|0755, st_size=980, ...}) = 0
read(9, "", 131072)                     = 0
ioctl(9, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(9)                                = 0
munmap(0xb7c16000, 131072)              = 0
fstat64(8, {st_mode=S_IFREG|0644, st_size=577, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c16000
read(8, " # v1.01 20050913 mdr removed in"..., 131072) = 577
read(8, "", 131072)                     = 0
stat64("/etc/vservers/7/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
stat64("/etc/vservers/7/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
time([1135071007])                      = 1135071007
stat64("/etc/vservers.local/.defaults/scripts/run", {st_mode=S_IFREG|0755,
st_size=742, ...}) = 0
stat64("/etc/vservers.local/.defaults/scripts/run", {st_mode=S_IFREG|0755,
st_size=742, ...}) = 0
stat64("/etc/vservers/57/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
stat64("/etc/vservers/57/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
open("/etc/vservers/57/mode", O_RDONLY) = 9
ioctl(9, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(9, {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7bf6000
read(9, "active\n", 131072)             = 7
read(9, "", 131072)                     = 0
read(9, "", 131072)                     = 0
ioctl(9, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(9)                                = 0
munmap(0xb7bf6000, 131072)              = 0
stat64("/etc/vservers.local/.defaults/apps/monit/global_alert.inc",
{st_mode=S_IFREG|0644, st_size=48, ...}) = 0
stat64("/etc/vservers.local/.defaults/apps/monit/global_alert.inc",
{st_mode=S_IFREG|0644, st_size=48, ...}) = 0
open("/etc/vservers.local/.defaults/apps/monit/global_alert.inc", O_RDONLY)
= 9
ioctl(9, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(9, {st_mode=S_IFREG|0644, st_size=48, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7bf6000
read(9, "alert address@hidden li"..., 131072) = 48
read(9, "", 131072)                     = 0
read(9, "", 131072)                     = 0
ioctl(9, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(9)                                = 0
munmap(0xb7bf6000, 131072)              = 0
stat64("/etc/vservers/57/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
time([1135071007])                      = 1135071007
stat64("/etc/vservers.local/.defaults/scripts/check_mode",
{st_mode=S_IFREG|0755, st_size=980, ...}) = 0
stat64("/etc/vservers.local/.defaults/scripts/check_mode",
{st_mode=S_IFREG|0755, st_size=980, ...}) = 0
read(8, "", 131072)                     = 0
ioctl(8, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(8)                                = 0
munmap(0xb7c16000, 131072)              = 0
fstat64(7, {st_mode=S_IFREG|0644, st_size=577, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c16000
read(7, " # v1.01 20050913 mdr removed in"..., 131072) = 577
read(7, "", 131072)                     = 0
stat64("/etc/vservers/57/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
stat64("/etc/vservers/57/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
time([1135071007])                      = 1135071007
stat64("/etc/vservers.local/.defaults/scripts/run", {st_mode=S_IFREG|0755,
st_size=742, ...}) = 0
stat64("/etc/vservers.local/.defaults/scripts/run", {st_mode=S_IFREG|0755,
st_size=742, ...}) = 0
stat64("/etc/vservers/56/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
stat64("/etc/vservers/56/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
open("/etc/vservers/56/mode", O_RDONLY) = 8
ioctl(8, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(8, {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7bf6000
read(8, "active\n", 131072)             = 7
read(8, "", 131072)                     = 0
read(8, "", 131072)                     = 0
ioctl(8, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(8)                                = 0
munmap(0xb7bf6000, 131072)              = 0
stat64("/etc/vservers.local/.defaults/apps/monit/global_alert.inc",
{st_mode=S_IFREG|0644, st_size=48, ...}) = 0
stat64("/etc/vservers.local/.defaults/apps/monit/global_alert.inc",
{st_mode=S_IFREG|0644, st_size=48, ...}) = 0
open("/etc/vservers.local/.defaults/apps/monit/global_alert.inc", O_RDONLY)
= 8
ioctl(8, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(8, {st_mode=S_IFREG|0644, st_size=48, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7bf6000
read(8, "alert address@hidden li"..., 131072) = 48
read(8, "", 131072)                     = 0
read(8, "", 131072)                     = 0
ioctl(8, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(8)                                = 0
munmap(0xb7bf6000, 131072)              = 0
stat64("/etc/vservers/56/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
time([1135071007])                      = 1135071007
stat64("/etc/vservers.local/.defaults/scripts/check_mode",
{st_mode=S_IFREG|0755, st_size=980, ...}) = 0
stat64("/etc/vservers.local/.defaults/scripts/check_mode",
{st_mode=S_IFREG|0755, st_size=980, ...}) = 0
read(7, "", 131072)                     = 0
ioctl(7, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(7)                                = 0
munmap(0xb7c16000, 131072)              = 0
fstat64(6, {st_mode=S_IFREG|0644, st_size=626, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c16000
read(6, " # v1.01 20050913 mdr removed in"..., 131072) = 626
read(6, "", 131072)                     = 0
stat64("/etc/vservers/56/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
stat64("/etc/vservers/56/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
time([1135071007])                      = 1135071007
stat64("/etc/vservers.local/.defaults/scripts/run", {st_mode=S_IFREG|0755,
st_size=742, ...}) = 0
stat64("/etc/vservers.local/.defaults/scripts/run", {st_mode=S_IFREG|0755,
st_size=742, ...}) = 0
stat64("/etc/vservers/5/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
stat64("/etc/vservers/5/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
open("/etc/vservers/5/mode", O_RDONLY)  = 7
ioctl(7, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(7, {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7bf6000
read(7, "active\n", 131072)             = 7
read(7, "", 131072)                     = 0
read(7, "", 131072)                     = 0
ioctl(7, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(7)                                = 0
munmap(0xb7bf6000, 131072)              = 0
stat64("/etc/vservers.local/.defaults/apps/monit/global_alert.inc",
{st_mode=S_IFREG|0644, st_size=48, ...}) = 0
stat64("/etc/vservers.local/.defaults/apps/monit/global_alert.inc",
{st_mode=S_IFREG|0644, st_size=48, ...}) = 0
open("/etc/vservers.local/.defaults/apps/monit/global_alert.inc", O_RDONLY)
= 7
ioctl(7, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(7, {st_mode=S_IFREG|0644, st_size=48, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7bf6000
read(7, "alert address@hidden li"..., 131072) = 48
read(7, "", 131072)                     = 0
read(7, "", 131072)                     = 0
ioctl(7, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(7)                                = 0
munmap(0xb7bf6000, 131072)              = 0
stat64("/etc/vservers/5/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
time([1135071007])                      = 1135071007
stat64("/etc/vservers.local/.defaults/scripts/check_mode",
{st_mode=S_IFREG|0755, st_size=980, ...}) = 0
stat64("/etc/vservers.local/.defaults/scripts/check_mode",
{st_mode=S_IFREG|0755, st_size=980, ...}) = 0
read(6, "", 131072)                     = 0
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(6)                                = 0
munmap(0xb7c16000, 131072)              = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=575, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c16000
read(5, " # v1.01 20050913 mdr removed in"..., 131072) = 575
read(5, "", 131072)                     = 0
stat64("/etc/vservers/5/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
stat64("/etc/vservers/5/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
time([1135071007])                      = 1135071007
stat64("/etc/vservers.local/.defaults/scripts/run", {st_mode=S_IFREG|0755,
st_size=742, ...}) = 0
stat64("/etc/vservers.local/.defaults/scripts/run", {st_mode=S_IFREG|0755,
st_size=742, ...}) = 0
stat64("/etc/vservers/32/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
stat64("/etc/vservers/32/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
open("/etc/vservers/32/mode", O_RDONLY) = 6
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(6, {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7bf6000
read(6, "active\n", 131072)             = 7
read(6, "", 131072)                     = 0
read(6, "", 131072)                     = 0
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(6)                                = 0
munmap(0xb7bf6000, 131072)              = 0
stat64("/etc/vservers.local/.defaults/apps/monit/global_alert.inc",
{st_mode=S_IFREG|0644, st_size=48, ...}) = 0
stat64("/etc/vservers.local/.defaults/apps/monit/global_alert.inc",
{st_mode=S_IFREG|0644, st_size=48, ...}) = 0
open("/etc/vservers.local/.defaults/apps/monit/global_alert.inc", O_RDONLY)
= 6
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85cd8) = -1 ENOTTY
(Inappropriate ioctl for device)
fstat64(6, {st_mode=S_IFREG|0644, st_size=48, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7bf6000
read(6, "alert address@hidden li"..., 131072) = 48
read(6, "", 131072)                     = 0
read(6, "", 131072)                     = 0
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(6)                                = 0
munmap(0xb7bf6000, 131072)              = 0
stat64("/etc/vservers/32/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
time([1135071007])                      = 1135071007
stat64("/etc/vservers.local/.defaults/scripts/check_mode",
{st_mode=S_IFREG|0755, st_size=980, ...}) = 0
stat64("/etc/vservers.local/.defaults/scripts/check_mode",
{st_mode=S_IFREG|0755, st_size=980, ...}) = 0
read(5, "", 131072)                     = 0
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(5)                                = 0
munmap(0xb7c16000, 131072)              = 0
read(4, "", 131072)                     = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
close(4)                                = 0
munmap(0xb7c42000, 131072)              = 0
read(3, "", 131072)                     = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfe85d18) = -1 ENOTTY
(Inappropriate ioctl for device)
stat64("/etc/vservers/32/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
stat64("/etc/vservers/32/mode", {st_mode=S_IFREG|0644, st_size=7, ...}) = 0
close(3)                                = 0
munmap(0xb7c62000, 131072)              = 0
time([1135071007])                      = 1135071007
getuid32()                              = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f71000

( start printing debug output:) 

write(1, "Runtime constants:\n", 19)    = 19
write(1, " Control file       = /etc/monit"..., 35) = 35
write(1, " Log file           = syslog\n", 29) = 29
write(1, " Pid file           = /var/run/m"..., 41) = 41
write(1, " Debug              = True\n", 27) = 27
write(1, " Log                = True\n", 27) = 27
write(1, " Use syslog         = True\n", 27) = 27
write(1, " Is Daemon          = True\n", 27) = 27
write(1, " Use process engine = True\n", 27) = 27
write(1, " Poll time          = 3 seconds\n", 32) = 32
write(1, " Mail server(s)     = smtp.cyber"..., 41) = 41
write(1, " Mail from          = (not defin"..., 36) = 36
write(1, " Mail subject       = (not defin"..., 36) = 36
write(1, " Mail message       = (not defin"..., 36) = 36
write(1, " Start monit httpd  = True\n", 27) = 27
write(1, " httpd bind address = publichost"..., 33) = 33
write(1, " httpd portnumber   = 2812\n", 27) = 27
write(1, " httpd signature    = True\n", 27) = 27
write(1, " Use ssl encryption = True\n", 27) = 27
write(1, " PEM key/cert file  = /etc/ssl/p"..., 54) = 54
write(1, " Client cert file   = None\n", 27) = 27
write(1, " Allow self certs   = False\n", 28) = 28
write(1, " httpd auth. style  = Basic Auth"..., 67) = 67
write(1, "\n", 1)                       = 1
write(1, "The service list contains the fo"..., 49) = 49
write(1, "\n", 1)                       = 1
write(1, "Process Name          = vs7_test"..., 34) = 34
write(1, " Group                = vs7\n", 28) = 28
write(1, " Pid file             = /etc/vse"..., 48) = 48
write(1, " Monitoring mode      = manual\n", 31) = 31
write(1, " Start program        = /etc/vse"..., 74) = 74
write(1, " Stop program         = /etc/vse"..., 73) = 73
write(1, " Pid                  = if chang"..., 72) = 72
write(1, " Ppid                 = if chang"..., 72) = 72
write(1, " Alert mail to        = address@hidden"..., 41) = 41
write(1, "   Alert on           = All even"..., 35) = 35
write(1, "\n", 1)                       = 1
write(1, "File Name             = vs7.mode"..., 33) = 33
write(1, " Path                 = /etc/vse"..., 45) = 45
write(1, " Monitoring mode      = active\n", 31) = 31
write(1, " Start program        = /etc/vse"..., 75) = 75
write(1, " Timestamp            = if chang"..., 71) = 71
write(1, "\n", 1)                       = 1
write(1, "Process Name          = vs57_net"..., 49) = 49
write(1, " Group                = vs57\n", 29) = 29
write(1, " Pid file             = /etc/vse"..., 49) = 49
write(1, " Monitoring mode      = active\n", 31) = 31
write(1, " Start program        = /etc/vse"..., 75) = 75
write(1, " Stop program         = /etc/vse"..., 74) = 74
write(1, " Pid                  = if chang"..., 72) = 72
write(1, " Ppid                 = if chang"..., 72) = 72
write(1, " Alert mail to        = address@hidden"..., 41) = 41
write(1, "   Alert on           = All even"..., 35) = 35
write(1, "\n", 1)                       = 1
write(1, "File Name             = vs57.mod"..., 34) = 34
write(1, " Path                 = /etc/vse"..., 46) = 46
write(1, " Monitoring mode      = active\n", 31) = 31
write(1, " Start program        = /etc/vse"..., 76) = 76
write(1, " Timestamp            = if chang"..., 71) = 71
write(1, "\n", 1)                       = 1
write(1, "Process Name          = vs56_net"..., 49) = 49
write(1, " Group                = vs56\n", 29) = 29
write(1, " Pid file             = /etc/vse"..., 49) = 49
write(1, " Monitoring mode      = active\n", 31) = 31
write(1, " Start program        = /etc/vse"..., 75) = 75
write(1, " Stop program         = /etc/vse"..., 74) = 74
write(1, " Pid                  = if chang"..., 72) = 72
write(1, " Ppid                 = if chang"..., 72) = 72
write(1, " Alert mail to        = address@hidden"..., 41) = 41
write(1, "   Alert on           = All even"..., 35) = 35
write(1, "\n", 1)                       = 1
write(1, "File Name             = vs56.mod"..., 34) = 34
write(1, " Path                 = /etc/vse"..., 46) = 46
write(1, " Monitoring mode      = active\n", 31) = 31
write(1, " Start program        = /etc/vse"..., 76) = 76
write(1, " Timestamp            = if chang"..., 71) = 71
write(1, "\n", 1)                       = 1
write(1, "Process Name          = vs5_dbho"..., 35) = 35
write(1, " Group                = vs5\n", 28) = 28
write(1, " Pid file             = /etc/vse"..., 48) = 48
write(1, " Monitoring mode      = active\n", 31) = 31
write(1, " Start program        = /etc/vse"..., 74) = 74
write(1, " Stop program         = /etc/vse"..., 73) = 73
write(1, " Pid                  = if chang"..., 72) = 72
write(1, " Ppid                 = if chang"..., 72) = 72
write(1, " Alert mail to        = address@hidden"..., 41) = 41
write(1, "   Alert on           = All even"..., 35) = 35
write(1, "\n", 1)                       = 1
write(1, "File Name             = vs5.mode"..., 33) = 33
write(1, " Path                 = /etc/vse"..., 45) = 45
write(1, " Monitoring mode      = active\n", 31) = 31
write(1, " Start program        = /etc/vse"..., 75) = 75
write(1, " Timestamp            = if chang"..., 71) = 71
write(1, "\n", 1)                       = 1
write(1, "Process Name          = vs32_mus"..., 47) = 47
write(1, " Group                = vs32\n", 29) = 29
write(1, " Pid file             = /etc/vse"..., 49) = 49
write(1, " Monitoring mode      = active\n", 31) = 31
write(1, " Start program        = /etc/vse"..., 75) = 75
write(1, " Stop program         = /etc/vse"..., 74) = 74
write(1, " Pid                  = if chang"..., 72) = 72
write(1, " Ppid                 = if chang"..., 72) = 72
write(1, " Alert mail to        = address@hidden"..., 41) = 41
write(1, "   Alert on           = All even"..., 35) = 35
write(1, "\n", 1)                       = 1
write(1, "File Name             = vs32.mod"..., 34) = 34
write(1, " Path                 = /etc/vse"..., 46) = 46
write(1, " Monitoring mode      = active\n", 31) = 31
write(1, " Start program        = /etc/vse"..., 76) = 76
write(1, " Timestamp            = if chang"..., 71) = 71
write(1, "\n", 1)                       = 1
write(1, "System Name           = dolomit\n", 32) = 32
write(1, " Monitoring mode      = active\n", 31) = 31
write(1, "\n", 1)                       = 1
write(1, "--------------------------------"..., 80) = 80

( now config is read, debug printed and real work starts: )

stat64("/var/run/monit.pid", {st_mode=S_IFREG|0644, st_size=6, ...}) = 0
stat64("/var/run/monit.pid", {st_mode=S_IFREG|0644, st_size=6, ...}) = 0
open("/var/run/monit.pid", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=6, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c62000
read(3, "29764\n", 131072)              = 6
close(3)                                = 0
munmap(0xb7c62000, 131072)              = 0
getpgid(0x7444)                         = 29764
socket(PF_FILE, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1
ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/hosts", O_RDONLY)            = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=624, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0xb7c62000
read(3, "127.0.0.1      localhost\n127.0.0"..., 131072) = 624
read(3, "", 131072)                     = 0
close(3)                                = 0
munmap(0xb7c62000, 131072)              = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
connect(3, {sa_family=AF_INET, sin_port=htons(2812),
sin_addr=inet_addr("62.12.154.14")}, 16) = -1 EINPROGRESS (Operation now in
progress)
select(4, NULL, [3], [3], {5, 0})       = 1 (out [3], left {5, 0})
getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
stat64("/dev/urandom", {st_mode=S_IFCHR|0444, st_rdev=makedev(1, 9), ...}) =
0
stat64("/dev/urandom", {st_mode=S_IFCHR|0444, st_rdev=makedev(1, 9), ...}) =
0
open("/dev/urandom", O_RDONLY)          = 4
read(4, ",\327U\323k\244#S\263\3113u\330\361m\312\322\326+\371\376"...,
1024) = 1024
close(4)                                = 0
fcntl64(3, F_GETFL)                     = 0x802 (flags O_RDWR|O_NONBLOCK)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
time(NULL)                              = 1135071007
time(NULL)                              = 1135071007
getpid()                                = 29785
getpid()                                = 29785
open("/dev/urandom", O_RDONLY|O_NONBLOCK|O_NOCTTY) = 4
select(5, [4], NULL, NULL, {0, 10000})  = 1 (in [4], left {0, 12000})
read(4, "\345\332\267*hI\325\210\213\373^\336\356\353\240\313\352"..., 32) =
32
close(4)                                = 0
getuid32()                              = 0
time(NULL)                              = 1135071007
getpid()                                = 29785
write(3, "\200\214\1\3\1\0c\0\0\0 \0\0009\0\0008\0\0005\0\0\26\0"..., 142) =
142
read(3, "\26\3\1\0J\2\0", 7)            = 7
time(NULL)                              = 1135071007
time(NULL)                              = 1135071007
read(3, "\0F\3\1C\247\317\37&\253\225A\325}\274\'\234\360\226\17"..., 72) =
72
read(3, "\26\3\1\5\242", 5)             = 5
read(3, "\v\0\5\236\0\5\233\0\5\2300\202\5\2240\202\4|\240\3\2\1"..., 1442)
= 1442
read(3, "\26\3\1\0\r", 5)               = 5
read(3, "\r\0\0\5\2\1\2\0\0\16\0\0\0", 13) = 13
getpid()                                = 29785
getpid()                                = 29785
getpid()                                = 29785
write(3, "\26\3\1\0\7\v\0\0\3\0\0\0\26\3\1\1\6\20\0\1\2\1\0U\204"..., 338) =
338
read(3, 0x80ab1a8, 5)                   = -1 EAGAIN (Resource temporarily
unavailable)
time(NULL)                              = 1135071007
select(4, [3], NULL, NULL, {15, 0})     = 1 (in [3], left {14, 980000})
time(NULL)                              = 1135071007
read(3, "\24\3\1\0\1", 5)               = 5
read(3, "\1", 1)                        = 1
read(3, "\26\3\1\0000", 5)              = 5
read(3, "\32&b!\360x\32\370\30\16\2\370\273F\267\0}z\270\34>\'."..., 48) =
48
read(3, 0x80ab1a8, 5)                   = -1 EAGAIN (Resource temporarily
unavailable)
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
write(3, "\27\3\1\0 \224\271\7\331_\353\31\\\316\307\223\277HB\332"..., 154)
= 154
write(3, "\25\3\1\0 \251vP2\363|T\272i\314\324\"\32\5\357\260\305"..., 37) =
37
shutdown(3, 1 /* send */)               = 0
read(3, 0x80ab1a8, 5)                   = -1 EAGAIN (Resource temporarily
unavailable)
shutdown(3, 2 /* send and receive */)   = 0
close(3)                                = 0
shutdown(3, 2 /* send and receive */)   = -1 EBADF (Bad file descriptor)
close(3)                                = -1 EBADF (Bad file descriptor)
rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 TERM], NULL, 8) = 0
munmap(0xb7f71000, 4096)                = 0
exit_group(0)                           = ?


running monit with valgrind
===========================

address@hidden:~$ sudo valgrind -v --log-file=monit.valgrind monit start
vs5_dbhost

output of valgrind:

address@hidden:~$ sudo cat monit.valgrind.pid5974 
==5974== Memcheck, a memory error detector for x86-linux.
==5974== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==5974== Using valgrind-2.4.0, a program supervision framework for
x86-linux.
==5974== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==5974== 
==5974== My PID = 5974, parent PID = 27751.  Prog and args are:
==5974==    monit
==5974==    start
==5974==    vs5_dbhost
==5974== 
==5974== Valgrind library directory: /usr/lib/valgrind
==5974== Command line
==5974==    monit
==5974==    start
==5974==    vs5_dbhost
==5974== Startup, with flags:
==5974==    -v
==5974==    --log-file=monit.valgrind
==5974== Contents of /proc/version:
==5974==   Linux version 2.6.14.4-vs2.0.1 (address@hidden) (gcc version 3.3.5
(Debian 1:3.3.5-13)) #1 SMP Fri Dec 16 13:05:24 CET 2005
==5974== Reading syms from /usr/local/bin/monit (0x8048000)
==5974==    object doesn't have a symbol table
==5974==    object doesn't have any debug info
==5974== Reading syms from /lib/ld-2.3.2.so (0x1B8E4000)
==5974==    object doesn't have a symbol table
==5974== Reading debug info from /lib/ld-2.3.2.so...
==5974== ... CRC mismatch (computed E7117123 wanted 4ECF6D33)
==5974==    object doesn't have any debug info
==5974== Reading syms from /usr/lib/valgrind/stage2 (0xB0000000)
==5974== Reading syms from /lib/ld-2.3.2.so (0xB1000000)
==5974==    object doesn't have a symbol table
==5974== Reading debug info from /lib/ld-2.3.2.so...
==5974== ... CRC mismatch (computed E7117123 wanted 4ECF6D33)
==5974==    object doesn't have any debug info
==5974== Reading syms from /usr/lib/valgrind/vgskin_memcheck.so (0xB7B9D000)
==5974== Reading syms from /lib/tls/libc-2.3.2.so (0xB7E01000)
==5974==    object doesn't have a symbol table
==5974== Reading debug info from /lib/tls/libc-2.3.2.so...
==5974== ... CRC mismatch (computed 9FEA8425 wanted 656F7E39)
==5974==    object doesn't have any debug info
==5974== Reading syms from /lib/tls/libdl-2.3.2.so (0xB7F36000)
==5974==    object doesn't have a symbol table
==5974== Reading debug info from /lib/tls/libdl-2.3.2.so...
==5974== ... CRC mismatch (computed 71527790 wanted 2DA21AD9)
==5974==    object doesn't have any debug info
==5974== Reading suppressions file: /usr/lib/valgrind/default.supp
==5974== 
==5974== Reading syms from /usr/lib/valgrind/vg_inject.so (0x1B8FE000)
==5974== Reading syms from /usr/lib/valgrind/vgpreload_memcheck.so
(0x1B901000)
==5974== Reading syms from /lib/tls/libpthread-0.60.so (0x1B914000)
==5974== Reading debug info from /lib/tls/libpthread-0.60.so...
==5974== ... CRC mismatch (computed C113EB13 wanted E0022382)
==5974==    object doesn't have any debug info
==5974== Reading syms from /lib/tls/libcrypt-2.3.2.so (0x1B924000)
==5974==    object doesn't have a symbol table
==5974== Reading debug info from /lib/tls/libcrypt-2.3.2.so...
==5974== ... CRC mismatch (computed 4E8646D1 wanted 87B9026E)
==5974==    object doesn't have any debug info
==5974== Reading syms from /lib/tls/libresolv-2.3.2.so (0x1B952000)
==5974==    object doesn't have a symbol table
==5974== Reading debug info from /lib/tls/libresolv-2.3.2.so...
==5974== ... CRC mismatch (computed E75FA613 wanted 6FC35502)
==5974==    object doesn't have any debug info
==5974== Reading syms from /lib/tls/libnsl-2.3.2.so (0x1B965000)
==5974==    object doesn't have a symbol table
==5974== Reading debug info from /lib/tls/libnsl-2.3.2.so...
==5974== ... CRC mismatch (computed A4D41952 wanted B01100A2)
==5974==    object doesn't have any debug info
==5974== Reading syms from /usr/lib/i686/cmov/libssl.so.0.9.7 (0x1B97A000)
==5974==    object doesn't have a symbol table
==5974==    object doesn't have any debug info
==5974== Reading syms from /usr/lib/i686/cmov/libcrypto.so.0.9.7
(0x1B9AC000)
==5974==    object doesn't have a symbol table
==5974==    object doesn't have any debug info
==5974== Reading syms from /lib/tls/libc-2.3.2.so (0x1BAAE000)
==5974==    object doesn't have a symbol table
==5974== Reading debug info from /lib/tls/libc-2.3.2.so...
==5974== ... CRC mismatch (computed 9FEA8425 wanted 656F7E39)
==5974==    object doesn't have any debug info
==5974== Reading syms from /lib/tls/libdl-2.3.2.so (0x1BBE4000)
==5974==    object doesn't have a symbol table
==5974== Reading debug info from /lib/tls/libdl-2.3.2.so...
==5974== ... CRC mismatch (computed 71527790 wanted 2DA21AD9)
==5974==    object doesn't have any debug info
==5974== TRANSLATE: 0x1BB263E0 redirected to 0x1B9057B0
==5974== TRANSLATE: 0x1BB1FE00 redirected to 0x1B904FA1
==5974== TRANSLATE: 0x1BB1FBB0 redirected to 0x1B904510
==5974== TRANSLATE: 0x1BB1FD40 redirected to 0x1B904A82
==5974== TRANSLATE: 0x1BB27CD0 redirected to 0x1B905C80
==5974== TRANSLATE: 0x1BB202C0 redirected to 0x1B904EE2
==5974== Reading syms from /lib/tls/libnss_compat-2.3.2.so (0x1BCEB000)
==5974==    object doesn't have a symbol table
==5974== Reading debug info from /lib/tls/libnss_compat-2.3.2.so...
==5974== ... CRC mismatch (computed 38CB5EA9 wanted 5C9FD175)
==5974==    object doesn't have any debug info
==5974== Reading syms from /lib/tls/libnss_nis-2.3.2.so (0x1BCF4000)
==5974==    object doesn't have a symbol table
==5974== Reading debug info from /lib/tls/libnss_nis-2.3.2.so...
==5974== ... CRC mismatch (computed 808EACBA wanted 72D10AC9)
==5974==    object doesn't have any debug info
==5974== Reading syms from /lib/tls/libnss_files-2.3.2.so (0x1BCFE000)
==5974==    object doesn't have a symbol table
==5974== Reading debug info from /lib/tls/libnss_files-2.3.2.so...
==5974== ... CRC mismatch (computed 23EF6405 wanted 66A6946B)
==5974==    object doesn't have any debug info
==5974== Reading syms from /lib/tls/libnss_dns-2.3.2.so (0x1BD4B000)
==5974==    object doesn't have a symbol table
==5974== Reading debug info from /lib/tls/libnss_dns-2.3.2.so...
==5974== ... CRC mismatch (computed 6D7B8576 wanted 8D836298)
==5974==    object doesn't have any debug info
==5974== Syscall param write(buf) points to uninitialised byte(s)
==5974==    at 0x1B91D5FE: __write_nocancel (in /lib/tls/libpthread-0.60.so)
==5974==  Address 0x1BC6498E is 110 bytes inside a block of size 21848
alloc'd
==5974==    at 0x1B90459D: malloc (vg_replace_malloc.c:130)
==5974==    by 0x1B9D946E: (within /usr/lib/i686/cmov/libcrypto.so.0.9.7)
==5974== 
...
( ssl errors )
...
==5974== 
==5974== Conditional jump or move depends on uninitialised value(s)
==5974==    at 0x1B905805: strlen (mac_replace_strmem.c:189)
==5974==    by 0x805F84A: (within /usr/local/bin/monit)
==5974==    by 0x8057431: (within /usr/local/bin/monit)
==5974==    by 0x805733D: (within /usr/local/bin/monit)
==5974==    by 0x80563C3: (within /usr/local/bin/monit)
==5974==    by 0x8056169: (within /usr/local/bin/monit)
==5974==    by 0x804BE6F: (within /usr/local/bin/monit)
==5974==    by 0x8051A58: (within /usr/local/bin/monit)
==5974==    by 0x80515FE: (within /usr/local/bin/monit)
==5974==    by 0x1BAC3973: __libc_start_main (in /lib/tls/libc-2.3.2.so)
==5974==    by 0x804B370: (within /usr/local/bin/monit)
==5974== 
==5974== Conditional jump or move depends on uninitialised value(s)
==5974==    at 0x1B905839: strcpy (mac_replace_strmem.c:198)
==5974==    by 0x805F861: (within /usr/local/bin/monit)
==5974==    by 0x8057431: (within /usr/local/bin/monit)
==5974==    by 0x805733D: (within /usr/local/bin/monit)
==5974==    by 0x80563C3: (within /usr/local/bin/monit)
==5974==    by 0x8056169: (within /usr/local/bin/monit)
==5974==    by 0x804BE6F: (within /usr/local/bin/monit)
==5974==    by 0x8051A58: (within /usr/local/bin/monit)
==5974==    by 0x80515FE: (within /usr/local/bin/monit)
==5974==    by 0x1BAC3973: __libc_start_main (in /lib/tls/libc-2.3.2.so)
==5974==    by 0x804B370: (within /usr/local/bin/monit)
==5974== discard syms at 0x1BCEB000-0x1BCF3000 in
/lib/tls/libnss_compat-2.3.2.so due to munmap()
==5974== discard syms at 0x1BCF4000-0x1BCFD000 in
/lib/tls/libnss_nis-2.3.2.so due to munmap()
==5974== discard syms at 0x1BCFE000-0x1BD08000 in
/lib/tls/libnss_files-2.3.2.so due to munmap()
==5974== discard syms at 0x1BD4B000-0x1BD4F000 in
/lib/tls/libnss_dns-2.3.2.so due to munmap()
==5974== 
==5974== ERROR SUMMARY: 6925 errors from 165 contexts (suppressed: 75 from
9)
==5974== 
...
( ssl errors )
...
==5974== 
==5974== 6 errors in context 65 of 165:
==5974== Conditional jump or move depends on uninitialised value(s)
==5974==    at 0x1B905839: strcpy (mac_replace_strmem.c:198)
==5974==    by 0x805F861: (within /usr/local/bin/monit)
==5974==    by 0x8057431: (within /usr/local/bin/monit)
==5974==    by 0x805733D: (within /usr/local/bin/monit)
==5974==    by 0x80563C3: (within /usr/local/bin/monit)
==5974==    by 0x8056169: (within /usr/local/bin/monit)
==5974==    by 0x804BE6F: (within /usr/local/bin/monit)
==5974==    by 0x8051A58: (within /usr/local/bin/monit)
==5974==    by 0x80515FE: (within /usr/local/bin/monit)
==5974==    by 0x1BAC3973: __libc_start_main (in /lib/tls/libc-2.3.2.so)
==5974==    by 0x804B370: (within /usr/local/bin/monit)
==5974== 
==5974== 6 errors in context 66 of 165:
==5974== Conditional jump or move depends on uninitialised value(s)
==5974==    at 0x1B905805: strlen (mac_replace_strmem.c:189)
==5974==    by 0x805F84A: (within /usr/local/bin/monit)
==5974==    by 0x8057431: (within /usr/local/bin/monit)
==5974==    by 0x805733D: (within /usr/local/bin/monit)
==5974==    by 0x80563C3: (within /usr/local/bin/monit)
==5974==    by 0x8056169: (within /usr/local/bin/monit)
==5974==    by 0x804BE6F: (within /usr/local/bin/monit)
==5974==    by 0x8051A58: (within /usr/local/bin/monit)
==5974==    by 0x80515FE: (within /usr/local/bin/monit)
==5974==    by 0x1BAC3973: __libc_start_main (in /lib/tls/libc-2.3.2.so)
==5974==    by 0x804B370: (within /usr/local/bin/monit)
==5974== 
...
( ssl errors )
...
==5974== 
==5974== IN SUMMARY: 6925 errors from 165 contexts (suppressed: 75 from 9)
==5974== 
==5974== malloc/free: in use at exit: 55487 bytes in 1347 blocks.
==5974== malloc/free: 2601 allocs, 1254 frees, 486628 bytes allocated.
==5974== 
==5974== searching for pointers to 1347 not-freed blocks.
==5974== checked 456496 bytes.
==5974== 
==5974== LEAK SUMMARY:
==5974==    definitely lost: 380 bytes in 12 blocks.
==5974==      possibly lost: 0 bytes in 0 blocks.
==5974==    still reachable: 55107 bytes in 1335 blocks.
==5974==         suppressed: 0 bytes in 0 blocks.
==5974== Use --leak-check=full to see details of leaked memory.
--5974--     TT/TC: 0 tc sectors discarded.
--5974--            13501 tt_fast misses.
--5974-- translate: new     12425 (220594 -> 2863425; ratio 129:10)
--5974--            discard 451 (6166 -> 84372; ratio 136:10).
--5974-- chainings: 8650 chainings, 0 unchainings.
--5974--  dispatch: 1383667 jumps (bb entries); of them 323259 (23%)
unchained.
--5974--            28/19048 major/minor sched events.
--5974-- reg-alloc: 2146 t-req-spill, 505697+28288 orig+spill uis,
--5974--            63767 total-reg-rank
--5974--    sanity: 29 cheap, 2 expensive checks.
--5974--    ccalls: 47005 C calls, 54% saves+restores avoided (149526 bytes)
--5974--            64716 args, avg 0.88 setup instrs each (15184 bytes)
--5974--            0% clear the stack (140556 bytes)
--5974--            18754 retvals, 28% of reg-reg movs avoided (10166 bytes)
also with valgrind the command is received successfully by the daemon.

if I can provide any other debug info, let me know.

thanks.

martin.


> 
> --
> Jan-Henrik Haukeland
> Mobil +47 97141255
> 
> 
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
> 





reply via email to

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