monit-general
[Top][All Lists]
Advanced

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

uptime test failed!!


From: Stephan Gomes Higuti
Subject: uptime test failed!!
Date: Mon, 2 Jun 2014 09:55:40 -0300

Hello,

I'm having troubles with uptime pid testing.
I'm getting fail status, and I just understand why.
My configuration is:

if uptime > 15 seconds then exec "/bin/bash -c '/etc/monit.d/scripts/script.sh'"

However, looking into my log, I get:

[BRT Jun  2 09:39:25] debug    : 'Process1' zombie check succeeded [status_flag=0000]
[BRT Jun  2 09:39:25] debug    : 'Process1' uptime check succeeded [current uptime=247571 seconds]
[BRT Jun  2 09:39:25] error    : Process1' uptime test failed for /home/user/binn/GW/Process1 -f/home/user/Process1.properties -- current uptime is 247571 seconds
[BRT Jun  2 09:39:25] debug    : -------------------------------------------------------------------------------
[BRT Jun  2 09:39:25] debug    :     monit() [0x41bc93]
[BRT Jun  2 09:39:25] debug    :     monit(LogError+0x9f) [0x41c3ef]
[BRT Jun  2 09:39:25] debug    :     monit(Event_post+0x206) [0x418826]
[BRT Jun  2 09:39:25] debug    :     monit(check_process+0x2d4) [0x42aeb4]
[BRT Jun  2 09:39:25] debug    :     monit(validate+0x22e) [0x42ab1e]
[BRT Jun  2 09:39:25] debug    :     monit(main+0x527) [0x415fb7]
[BRT Jun  2 09:39:25] debug    :     /lib64/libc.so.6(__libc_start_main+0xfd) [0x7fcf020e1b7d]
[BRT Jun  2 09:39:25] debug    :     monit() [0x40c539]
[BRT Jun  2 09:39:25] debug    : -------------------------------------------------------------------------------
[BRT Jun  2 09:39:25] debug    : M/Monit: event message sent to http://172.xxx.yyy.zzz:8080/collector
[BRT Jun  2 09:39:25] info     : 'Process1 exec: /bin/bash

Seems weird, because it fits my condition that the uptime is > than 15 seconds, however I get a fail status on mmonit.
Any ideas of why this is happening?



Regards,

Stephan Gomes Higuti

reply via email to

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