"check now" command

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

"check now" command

Szépe Viktor
Hello!

I am a happy monit user.

Sometime I face a situation when a check has a temporary problem.

  # Number of resolvers
  check program network_resolv
     with path "/usr/local/sbin/server-integrity.sh -c RES -r 3" every  
33 cycles
    group integrity
    if status != 0 then alert

So if it goes to "failed" status it would be nice to have a dedicated  
"check now" command that would evaluate the status of the check again.
Work-arounds may exist but I am looking for a straight-forwards solution.
(currently I issue monit reload for that with is not optimal)

Thanks!


SZÉPE Viktor, honlap üzemeltetés / Running your application
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
--
ügyelet/hotline: +36-20-4242498  [hidden email]  skype: szepe.viktor
Budapest, III. kerület






--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Reply | Threaded
Open this post in threaded view
|

RE: "check now" command

Roose, Marco
I very much like that idea!

Kind regards,
Marco Roose


-----Original Message-----
From: monit-general <monit-general-bounces+marco.roose=[hidden email]> On Behalf Of SZÉPE Viktor
Sent: Monday, July 30, 2018 10:29 PM
To: monit-general <[hidden email]>
Subject: "check now" command

Hello!

I am a happy monit user.

Sometime I face a situation when a check has a temporary problem.

  # Number of resolvers
  check program network_resolv
     with path "/usr/local/sbin/server-integrity.sh -c RES -r 3" every
33 cycles
    group integrity
    if status != 0 then alert

So if it goes to "failed" status it would be nice to have a dedicated "check now" command that would evaluate the status of the check again.
Work-arounds may exist but I am looking for a straight-forwards solution.
(currently I issue monit reload for that with is not optimal)

Thanks!


SZÉPE Viktor, honlap üzemeltetés / Running your application https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
--
ügyelet/hotline: +36-20-4242498  [hidden email]  skype: szepe.viktor Budapest, III. kerület






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

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

smime.p7s (9K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: "check now" command

Guillaume François
I would prefer something like:
check every 5 cycles when ok
check every 2 cycles when failling

check for quick recovery 

or the way around (prefer to remove as fast as possible problematic server from pool)

check every 1 cycle when ok
check every 10 cycle when failing


Currently this kind of thing can be achieve with two  excluding checks  and enabling the other when "failling")





Le mar. 31 juil. 2018 à 09:09, Roose, Marco <[hidden email]> a écrit :
I very much like that idea!

Kind regards,
Marco Roose


-----Original Message-----
From: monit-general <monit-general-bounces+marco.roose=[hidden email]> On Behalf Of SZÉPE Viktor
Sent: Monday, July 30, 2018 10:29 PM
To: monit-general <[hidden email]>
Subject: "check now" command

Hello!

I am a happy monit user.

Sometime I face a situation when a check has a temporary problem.

  # Number of resolvers
  check program network_resolv
     with path "/usr/local/sbin/server-integrity.sh -c RES -r 3" every
33 cycles
    group integrity
    if status != 0 then alert

So if it goes to "failed" status it would be nice to have a dedicated "check now" command that would evaluate the status of the check again.
Work-arounds may exist but I am looking for a straight-forwards solution.
(currently I issue monit reload for that with is not optimal)

Thanks!


SZÉPE Viktor, honlap üzemeltetés / Running your application https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
--
ügyelet/hotline: +36-20-4242498  [hidden email]  skype: szepe.viktor Budapest, III. kerület






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


--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W+++$ !N* !o-- K--? w(+) !O---? !M- !V--? PS+? !PE Y+ PGP++>+++ !t-- !5 !X- R(+)>++* tv-? b(-) DI !D- G(+)>+ e+++ h--() r->$ y?*
------END GEEK CODE BLOCK------

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Reply | Threaded
Open this post in threaded view
|

Re: "check now" command

Szépe Viktor
Usually I need "check now" when I am debugging an unknown problem.

Idézem/Quoting Guillaume François <[hidden email]>:

> I would prefer something like:
> check every 5 cycles when ok
> check every 2 cycles when failling
>
> check for quick recovery
>
> or the way around (prefer to remove as fast as possible problematic server
> from pool)
>
> check every 1 cycle when ok
> check every 10 cycle when failing
>
>
> Currently this kind of thing can be achieve with two  excluding checks  and
> enabling the other when "failling")
>
>
>
>
>
> Le mar. 31 juil. 2018 à 09:09, Roose, Marco <[hidden email]> a
> écrit :
>
>> I very much like that idea!
>>
>> Kind regards,
>> Marco Roose
>>
>>
>> -----Original Message-----
>> From: monit-general <monit-general-bounces+marco.roose=
>> [hidden email]> On Behalf Of SZÉPE Viktor
>> Sent: Monday, July 30, 2018 10:29 PM
>> To: monit-general <[hidden email]>
>> Subject: "check now" command
>>
>> Hello!
>>
>> I am a happy monit user.
>>
>> Sometime I face a situation when a check has a temporary problem.
>>
>>   # Number of resolvers
>>   check program network_resolv
>>      with path "/usr/local/sbin/server-integrity.sh -c RES -r 3" every
>> 33 cycles
>>     group integrity
>>     if status != 0 then alert
>>
>> So if it goes to "failed" status it would be nice to have a dedicated
>> "check now" command that would evaluate the status of the check again.
>> Work-arounds may exist but I am looking for a straight-forwards solution.
>> (currently I issue monit reload for that with is not optimal)
>>
>> Thanks!
>>
>>
>> SZÉPE Viktor, honlap üzemeltetés / Running your application
>> https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
>> --
>> ügyelet/hotline: +36-20-4242498  [hidden email]  skype: szepe.viktor
>> Budapest, III. kerület
>>
>>
>>
>>
>>
>>
>> --
>> To unsubscribe:
>> https://lists.nongnu.org/mailman/listinfo/monit-general
>> --
>> To unsubscribe:
>> https://lists.nongnu.org/mailman/listinfo/monit-general
>
>
>
> --
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.1
> GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W+++$ !N* !o-- K--?
> w(+) !O---? !M- !V--? PS+? !PE Y+ PGP++>+++ !t-- !5 !X- R(+)>++* tv-? b(-)
> DI !D- G(+)>+ e+++ h--() r->$ y?*
> ------END GEEK CODE BLOCK------



SZÉPE Viktor, honlap üzemeltetés / Running your application
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
--
ügyelet/hotline: +36-20-4242498  [hidden email]  skype: szepe.viktor
Budapest, III. kerület






--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Reply | Threaded
Open this post in threaded view
|

Re: "check now" command

martinp@tildeslash.com
Hi,

you can use "monit validate" to trigger the monitoring cycle and collect status.

The "check program" will have however one cycle delay, as monit currently collects the result the next cycle after the program is executed (to not block other tests).

Best regards,
Martin


> On 31 Jul 2018, at 10:31, SZÉPE Viktor <[hidden email]> wrote:
>
> Usually I need "check now" when I am debugging an unknown problem.
>
> Idézem/Quoting Guillaume François <[hidden email]>:
>
>> I would prefer something like:
>> check every 5 cycles when ok
>> check every 2 cycles when failling
>>
>> check for quick recovery
>>
>> or the way around (prefer to remove as fast as possible problematic server
>> from pool)
>>
>> check every 1 cycle when ok
>> check every 10 cycle when failing
>>
>>
>> Currently this kind of thing can be achieve with two  excluding checks  and
>> enabling the other when "failling")
>>
>>
>>
>>
>>
>> Le mar. 31 juil. 2018 à 09:09, Roose, Marco <[hidden email]> a
>> écrit :
>>
>>> I very much like that idea!
>>>
>>> Kind regards,
>>> Marco Roose
>>>
>>>
>>> -----Original Message-----
>>> From: monit-general <monit-general-bounces+marco.roose=
>>> [hidden email]> On Behalf Of SZÉPE Viktor
>>> Sent: Monday, July 30, 2018 10:29 PM
>>> To: monit-general <[hidden email]>
>>> Subject: "check now" command
>>>
>>> Hello!
>>>
>>> I am a happy monit user.
>>>
>>> Sometime I face a situation when a check has a temporary problem.
>>>
>>>  # Number of resolvers
>>>  check program network_resolv
>>>     with path "/usr/local/sbin/server-integrity.sh -c RES -r 3" every
>>> 33 cycles
>>>    group integrity
>>>    if status != 0 then alert
>>>
>>> So if it goes to "failed" status it would be nice to have a dedicated
>>> "check now" command that would evaluate the status of the check again.
>>> Work-arounds may exist but I am looking for a straight-forwards solution.
>>> (currently I issue monit reload for that with is not optimal)
>>>
>>> Thanks!
>>>
>>>
>>> SZÉPE Viktor, honlap üzemeltetés / Running your application
>>> https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
>>> --
>>> ügyelet/hotline: +36-20-4242498  [hidden email]  skype: szepe.viktor
>>> Budapest, III. kerület
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> To unsubscribe:
>>> https://lists.nongnu.org/mailman/listinfo/monit-general
>>> --
>>> To unsubscribe:
>>> https://lists.nongnu.org/mailman/listinfo/monit-general
>>
>>
>>
>> --
>> -----BEGIN GEEK CODE BLOCK-----
>> Version: 3.1
>> GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W+++$ !N* !o-- K--?
>> w(+) !O---? !M- !V--? PS+? !PE Y+ PGP++>+++ !t-- !5 !X- R(+)>++* tv-? b(-)
>> DI !D- G(+)>+ e+++ h--() r->$ y?*
>> ------END GEEK CODE BLOCK------
>
>
>
> SZÉPE Viktor, honlap üzemeltetés / Running your application
> https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
> --
> ügyelet/hotline: +36-20-4242498  [hidden email]  skype: szepe.viktor
> Budapest, III. kerület
>
>
>
>
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Reply | Threaded
Open this post in threaded view
|

Re: "check now" command

Szépe Viktor
Thank you.

While doing "monit validate" I've received as many alert emails as  
there are checks.
Can we do something about it?


Idézem/Quoting [hidden email]:

> Hi,
>
> you can use "monit validate" to trigger the monitoring cycle and  
> collect status.
>
> The "check program" will have however one cycle delay, as monit  
> currently collects the result the next cycle after the program is  
> executed (to not block other tests).
>
> Best regards,
> Martin
>
>
>> On 31 Jul 2018, at 10:31, SZÉPE Viktor <[hidden email]> wrote:
>>
>> Usually I need "check now" when I am debugging an unknown problem.
>>
>> Idézem/Quoting Guillaume François <[hidden email]>:
>>
>>> I would prefer something like:
>>> check every 5 cycles when ok
>>> check every 2 cycles when failling
>>>
>>> check for quick recovery
>>>
>>> or the way around (prefer to remove as fast as possible problematic server
>>> from pool)
>>>
>>> check every 1 cycle when ok
>>> check every 10 cycle when failing
>>>
>>>
>>> Currently this kind of thing can be achieve with two  excluding checks  and
>>> enabling the other when "failling")
>>>
>>>
>>>
>>>
>>>
>>> Le mar. 31 juil. 2018 à 09:09, Roose, Marco <[hidden email]> a
>>> écrit :
>>>
>>>> I very much like that idea!
>>>>
>>>> Kind regards,
>>>> Marco Roose
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: monit-general <monit-general-bounces+marco.roose=
>>>> [hidden email]> On Behalf Of SZÉPE Viktor
>>>> Sent: Monday, July 30, 2018 10:29 PM
>>>> To: monit-general <[hidden email]>
>>>> Subject: "check now" command
>>>>
>>>> Hello!
>>>>
>>>> I am a happy monit user.
>>>>
>>>> Sometime I face a situation when a check has a temporary problem.
>>>>
>>>>  # Number of resolvers
>>>>  check program network_resolv
>>>>     with path "/usr/local/sbin/server-integrity.sh -c RES -r 3" every
>>>> 33 cycles
>>>>    group integrity
>>>>    if status != 0 then alert
>>>>
>>>> So if it goes to "failed" status it would be nice to have a dedicated
>>>> "check now" command that would evaluate the status of the check again.
>>>> Work-arounds may exist but I am looking for a straight-forwards solution.
>>>> (currently I issue monit reload for that with is not optimal)
>>>>
>>>> Thanks!
>>>>
>>>>
>>>> SZÉPE Viktor, honlap üzemeltetés / Running your application
>>>> https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
>>>> --
>>>> ügyelet/hotline: +36-20-4242498  [hidden email]  skype: szepe.viktor
>>>> Budapest, III. kerület
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> To unsubscribe:
>>>> https://lists.nongnu.org/mailman/listinfo/monit-general
>>>> --
>>>> To unsubscribe:
>>>> https://lists.nongnu.org/mailman/listinfo/monit-general
>>>
>>>
>>>
>>> --
>>> -----BEGIN GEEK CODE BLOCK-----
>>> Version: 3.1
>>> GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W+++$ !N* !o-- K--?
>>> w(+) !O---? !M- !V--? PS+? !PE Y+ PGP++>+++ !t-- !5 !X- R(+)>++* tv-? b(-)
>>> DI !D- G(+)>+ e+++ h--() r->$ y?*
>>> ------END GEEK CODE BLOCK------
>>
>>
>>
>> SZÉPE Viktor, honlap üzemeltetés / Running your application
>> https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
>> --
>> ügyelet/hotline: +36-20-4242498  [hidden email]  skype: szepe.viktor
>> Budapest, III. kerület
>>
>>
>>
>>
>>
>>
>> --
>> To unsubscribe:
>> https://lists.nongnu.org/mailman/listinfo/monit-general
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general



SZÉPE Viktor, honlap üzemeltetés / Running your application
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
--
ügyelet/hotline: +36-20-4242498  [hidden email]  skype: szepe.viktor
Budapest, III. kerület






--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Reply | Threaded
Open this post in threaded view
|

Re: "check now" command

martinp@tildeslash.com
i'd recommend to delegate the alert delivery to M/Monit - Monit itself doesn't aggregate alerts.


> On 31 Jul 2018, at 21:29, SZÉPE Viktor <[hidden email]> wrote:
>
> Thank you.
>
> While doing "monit validate" I've received as many alert emails as there are checks.
> Can we do something about it?
>
>
> Idézem/Quoting [hidden email]:
>
>> Hi,
>>
>> you can use "monit validate" to trigger the monitoring cycle and collect status.
>>
>> The "check program" will have however one cycle delay, as monit currently collects the result the next cycle after the program is executed (to not block other tests).
>>
>> Best regards,
>> Martin
>>
>>
>>> On 31 Jul 2018, at 10:31, SZÉPE Viktor <[hidden email]> wrote:
>>>
>>> Usually I need "check now" when I am debugging an unknown problem.
>>>
>>> Idézem/Quoting Guillaume François <[hidden email]>:
>>>
>>>> I would prefer something like:
>>>> check every 5 cycles when ok
>>>> check every 2 cycles when failling
>>>>
>>>> check for quick recovery
>>>>
>>>> or the way around (prefer to remove as fast as possible problematic server
>>>> from pool)
>>>>
>>>> check every 1 cycle when ok
>>>> check every 10 cycle when failing
>>>>
>>>>
>>>> Currently this kind of thing can be achieve with two  excluding checks  and
>>>> enabling the other when "failling")
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Le mar. 31 juil. 2018 à 09:09, Roose, Marco <[hidden email]> a
>>>> écrit :
>>>>
>>>>> I very much like that idea!
>>>>>
>>>>> Kind regards,
>>>>> Marco Roose
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: monit-general <monit-general-bounces+marco.roose=
>>>>> [hidden email]> On Behalf Of SZÉPE Viktor
>>>>> Sent: Monday, July 30, 2018 10:29 PM
>>>>> To: monit-general <[hidden email]>
>>>>> Subject: "check now" command
>>>>>
>>>>> Hello!
>>>>>
>>>>> I am a happy monit user.
>>>>>
>>>>> Sometime I face a situation when a check has a temporary problem.
>>>>>
>>>>> # Number of resolvers
>>>>> check program network_resolv
>>>>>    with path "/usr/local/sbin/server-integrity.sh -c RES -r 3" every
>>>>> 33 cycles
>>>>>   group integrity
>>>>>   if status != 0 then alert
>>>>>
>>>>> So if it goes to "failed" status it would be nice to have a dedicated
>>>>> "check now" command that would evaluate the status of the check again.
>>>>> Work-arounds may exist but I am looking for a straight-forwards solution.
>>>>> (currently I issue monit reload for that with is not optimal)
>>>>>
>>>>> Thanks!
>>>>>
>>>>>
>>>>> SZÉPE Viktor, honlap üzemeltetés / Running your application
>>>>> https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
>>>>> --
>>>>> ügyelet/hotline: +36-20-4242498  [hidden email]  skype: szepe.viktor
>>>>> Budapest, III. kerület
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> To unsubscribe:
>>>>> https://lists.nongnu.org/mailman/listinfo/monit-general
>>>>> --
>>>>> To unsubscribe:
>>>>> https://lists.nongnu.org/mailman/listinfo/monit-general
>>>>
>>>>
>>>>
>>>> --
>>>> -----BEGIN GEEK CODE BLOCK-----
>>>> Version: 3.1
>>>> GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W+++$ !N* !o-- K--?
>>>> w(+) !O---? !M- !V--? PS+? !PE Y+ PGP++>+++ !t-- !5 !X- R(+)>++* tv-? b(-)
>>>> DI !D- G(+)>+ e+++ h--() r->$ y?*
>>>> ------END GEEK CODE BLOCK------
>>>
>>>
>>>
>>> SZÉPE Viktor, honlap üzemeltetés / Running your application
>>> https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
>>> --
>>> ügyelet/hotline: +36-20-4242498  [hidden email]  skype: szepe.viktor
>>> Budapest, III. kerület
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> To unsubscribe:
>>> https://lists.nongnu.org/mailman/listinfo/monit-general
>>
>>
>> --
>> To unsubscribe:
>> https://lists.nongnu.org/mailman/listinfo/monit-general
>
>
>
> SZÉPE Viktor, honlap üzemeltetés / Running your application
> https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
> --
> ügyelet/hotline: +36-20-4242498  [hidden email]  skype: szepe.viktor
> Budapest, III. kerület
>
>
>
>
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general


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