the question remains but I no longer think this is the cause of my problem, this is associated with a test of the system for disk-space, cpu-load etc
On 22 July 2011 12:26, Nick Upson <[email protected]> wrote: > I've tracked this down to this entry > > > [BST Jul 21 14:39:44] info : restart service 'openvpn_server' on user > request > [BST Jul 21 14:39:44] info : monit daemon at 3426 awakened > [BST Jul 21 14:39:44] info : Awakened by User defined signal 1 > [BST Jul 21 14:39:44] debug : monit: Cannot open proc file > /proc/23953/stat -- No such file or directory > [BST Jul 21 14:39:44] debug : system statistic error -- cannot read > /proc/23953/stat > > I assume monit was trying to check the status of process 23953, but why > would it fail? > > > On 22 July 2011 10:56, Nick Upson <[email protected]> wrote: > >> Hi, >> >> running 5.2.5-1, I have 3 services, openvpn_server, ntpd and named. ntpd >> and named are dependant on openvpn_server. >> >> monit was told to restart openvpn_server, the log extract below appears to >> show that monit converted this into a stop and start which ran too close >> together. >> >> I think that the stop had not completed when the start began, which is why >> the pid file was not present, the pid file was then removed by the stop, >> >> This left openvpn_server in a state such that monit kept restarting it, >> but failed (see second extract), which kept repeating >> >> >> [BST Jul 21 14:39:44] info : restart service 'openvpn_server' on user >> request >> [BST Jul 21 14:39:44] info : monit daemon at 3426 awakened >> [BST Jul 21 14:39:44] info : Awakened by User defined signal 1 >> [BST Jul 21 14:39:44] debug : monit: Cannot open proc file >> /proc/23953/stat -- No such file or directory >> [BST Jul 21 14:39:44] debug : system statistic error -- cannot read >> /proc/23953/stat >> [BST Jul 21 14:39:44] info : 'openvpn_server' trying to restart >> [BST Jul 21 14:39:44] debug : Monitoring disabled -- service ntpd >> [BST Jul 21 14:39:44] info : 'ntpd' stop: /etc/init.d/ntpd >> [BST Jul 21 14:39:45] debug : monit: pidfile '/var/run/ntpd.pid' does >> not exist >> [BST Jul 21 14:39:45] debug : Monitoring disabled -- service named >> [BST Jul 21 14:39:45] info : 'named' stop: /etc/init.d/named >> [BST Jul 21 14:39:46] debug : Monitoring disabled -- service >> openvpn_server >> [BST Jul 21 14:39:46] info : 'openvpn_server' stop: >> /etc/init.d/openvpn_server >> [BST Jul 21 14:39:47] debug : 'openvpn_server' Error testing process id >> [3601] -- No such process >> [BST Jul 21 14:39:47] debug : 'openvpn_server' Error testing process id >> [3601] -- No such process >> [BST Jul 21 14:39:47] info : 'openvpn_server' start: >> /etc/init.d/openvpn_server >> [BST Jul 21 14:39:47] debug : 'openvpn_server' Error testing process id >> [3601] -- No such process >> [BST Jul 21 14:39:47] debug : 'openvpn_server' Error testing process id >> [3601] -- No such process >> [BST Jul 21 14:39:48] debug : monit: pidfile >> '/var/run/openvpn_server.pid' does not exist >> [BST Jul 21 14:39:49] debug : monit: pidfile >> '/var/run/openvpn_server.pid' does not exist >> [BST Jul 21 14:39:50] debug : monit: pidfile >> '/var/run/openvpn_server.pid' does not exist >> [BST Jul 21 14:39:51] debug : monit: pidfile >> '/var/run/openvpn_server.pid' does not exist >> [BST Jul 21 14:39:52] error : 'openvpn_server' failed to start >> >> >> >> [BST Jul 21 14:43:04] debug : monit: pidfile >> '/var/run/openvpn_server.pid' does not exist >> [BST Jul 21 14:43:04] error : 'openvpn_server' process is not running >> [BST Jul 21 14:43:04] debug : >> ------------------------------------------------------------------------------- >> [BST Jul 21 14:43:04] debug : /usr/bin/monit [0x805442e] >> [BST Jul 21 14:43:04] debug : /usr/bin/monit(LogError+0x22) >> [0x8054842] >> [BST Jul 21 14:43:04] debug : /usr/bin/monit(Event_post+0x382) >> [0x8051f22] >> [BST Jul 21 14:43:04] debug : /usr/bin/monit(check_process+0xb0) >> [0x8065e10] >> [BST Jul 21 14:43:04] debug : /usr/bin/monit(validate+0x1bf) >> [0x80662cf] >> [BST Jul 21 14:43:04] debug : /usr/bin/monit [0x80567aa] >> [BST Jul 21 14:43:04] debug : /usr/bin/monit(main+0x55f) >> [0x805710f] >> [BST Jul 21 14:43:04] debug : >> /lib/libc.so.6(__libc_start_main+0xdc) [0x391e9c] >> [BST Jul 21 14:43:04] debug : /usr/bin/monit [0x804ee51] >> [BST Jul 21 14:43:04] debug : >> ------------------------------------------------------------------------------- >> [BST Jul 21 14:43:04] info : 'openvpn_server' trying to restart >> [BST Jul 21 14:43:04] debug : Monitoring disabled -- service ntpd >> [BST Jul 21 14:43:04] info : 'ntpd' stop: /etc/init.d/ntpd >> [BST Jul 21 14:43:05] debug : monit: pidfile '/var/run/ntpd.pid' does >> not exist >> [BST Jul 21 14:43:05] debug : Monitoring disabled -- service named >> [BST Jul 21 14:43:05] debug : Monitoring disabled -- service >> openvpn_server >> [BST Jul 21 14:43:05] debug : monit: pidfile >> '/var/run/openvpn_server.pid' does not exist >> [BST Jul 21 14:43:05] debug : monit: pidfile >> '/var/run/openvpn_server.pid' does not exist >> [BST Jul 21 14:43:05] info : 'openvpn_server' start: >> /etc/init.d/openvpn_server >> [BST Jul 21 14:43:05] debug : monit: pidfile >> '/var/run/openvpn_server.pid' does not exist >> [BST Jul 21 14:43:05] debug : monit: pidfile >> '/var/run/openvpn_server.pid' does not exist >> [BST Jul 21 14:43:06] debug : monit: pidfile >> '/var/run/openvpn_server.pid' does not exist >> [BST Jul 21 14:43:07] debug : monit: pidfile >> '/var/run/openvpn_server.pid' does not exist >> [BST Jul 21 14:43:08] debug : monit: pidfile >> '/var/run/openvpn_server.pid' does not exist >> [BST Jul 21 14:43:09] debug : monit: pidfile >> '/var/run/openvpn_server.pid' does not exist >> [BST Jul 21 14:43:10] error : 'openvpn_server' failed to start >> [BST Jul 21 14:43:10] debug : >> ------------------------------------------------------------------------------- >> [BST Jul 21 14:43:10] debug : /usr/bin/monit [0x805442e] >> [BST Jul 21 14:43:10] debug : /usr/bin/monit(LogError+0x22) >> [0x8054842] >> [BST Jul 21 14:43:10] debug : /usr/bin/monit(Event_post+0x382) >> [0x8051f22] >> [BST Jul 21 14:43:10] debug : /usr/bin/monit [0x804fceb] >> [BST Jul 21 14:43:10] debug : /usr/bin/monit(control_service+0xbb) >> [0x804ff1b] >> [BST Jul 21 14:43:10] debug : /usr/bin/monit [0x8051810] >> [BST Jul 21 14:43:10] debug : /usr/bin/monit(Event_post+0x3be) >> [0x8051f5e] >> [BST Jul 21 14:43:10] debug : /usr/bin/monit(check_process+0xb0) >> [0x8065e10] >> [BST Jul 21 14:43:10] debug : /usr/bin/monit(validate+0x1bf) >> [0x80662cf] >> [BST Jul 21 14:43:10] debug : /usr/bin/monit [0x80567aa] >> [BST Jul 21 14:43:10] debug : /usr/bin/monit(main+0x55f) >> [0x805710f] >> [BST Jul 21 14:43:10] debug : >> /lib/libc.so.6(__libc_start_main+0xdc) [0x391e9c] >> [BST Jul 21 14:43:10] debug : /usr/bin/monit [0x804ee51] >> [BST Jul 21 14:43:10] debug : >> ------------------------------------------------------------------------------- >> [BST Jul 21 14:43:10] debug : Monitoring enabled -- service >> openvpn_server >> >> -- >> Nick Upson (01799 533252) >> >> > > > -- > Nick Upson (01799 533252) > > -- Nick Upson (01799 533252)
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
