monit-general
[Top][All Lists]
Advanced

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

RE: Check Host in MONIT


From: Paul Sun
Subject: RE: Check Host in MONIT
Date: Mon, 11 Apr 2011 21:37:15 +0800

 Will try again on the syntax.

For the core, below is the info. The OS is Solaris x86-64, and MONIT
version is v5.2.5. The MONIT is complied using 64 bits libraries. 

address@hidden  # pstack core_app02 _monit_0_0_1302517121_8712
core 'core_app02 _monit_0_0_1302517121_8712' of 8712:  ./monit -c
/export/home/projadm/config/monitrc
 000000000043fd92 used_system_cpu_sysdep () + 2e7
 000000000041ccac update_system_load () + 229
 000000000041d499 initprocesstree () + 762
 000000000042781f Util_isProcessRunning () + 7d
 00000000004123e1 ???????? ()
 0000000000412018 ???????? ()
 0000000000411e42 control_service () + 249
 0000000000413eee ???????? ()
 0000000000413cf6 ???????? ()
 0000000000412f55 Event_post () + 5a5
 0000000000429ee6 check_process () + 88
 0000000000429e07 validate () + f3
 000000000041a8cd ???????? ()
 000000000041a1c9 ???????? ()
 0000000000419c96 main () + 5a
 0000000000410a0c _start () + 6c

-----Original Message-----
From: address@hidden
[mailto:address@hidden On
Behalf Of Martin Pala
Sent: Monday, 11 April, 2011 21:31
To: This is the general mailing list for monit
Subject: Re: Check Host in MONIT

you can use any of "succeeded", "passed" or "recovered" in the config
file.

If monit crashed, can you provide output of "pstack <core>"? Which monit
version it is?

Martin


On Apr 11, 2011, at 3:27 PM, Paul Sun wrote:

> Should I use "if succeeded" or "if passed"?
> 
> BTW, I noticed that the monit is core dumped before, anything can help
> to check?
> 
> - PS
> 
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Martin Pala
> Sent: Monday, 11 April, 2011 21:23
> To: This is the general mailing list for monit
> Subject: Re: Check Host in MONIT
> 
> Yes, this setup is possible - the recovery/succeeded action will be
> executed only on failure->success change however (if the service was
up
> when monit started, no action is done). You can check logs to see
> whether the action was executed on service recovery.
> 
> Regards,
> Martin
> 
> On Apr 10, 2011, at 3:16 PM, Paul Sun wrote:
> 
>> Hi 
>> 
>> I would like to know whether monit support to action if the check
host
>> is success? I tried below configuration, but doesn't seems work
>> 
>> - PS
>> 
>> check host SERVER1 with address 10.219.35.80
>>   if failed icmp type echo count 3 with timeout 3 seconds then alert
>>   if failed port 2054 then exec "/user/scripts/set_alarm.sh"
>>       else if succeeded then exec "/user/scripts/clear_alarm.sh"
>> 
>> --
>> To unsubscribe:
>> http://lists.nongnu.org/mailman/listinfo/monit-general
> 
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general



reply via email to

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