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
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
