[Check_mk (english)] CheckMk not sending RECOVERY or OK notification after UNKNOWN state.

iceal thaddeus lim ice at androidph.com
Sun Feb 5 22:07:21 CET 2017


Thanks.

Would you know the filename or keyword I can use to find this?


On Sun, Feb 5, 2017 at 13:05 Marcel Schulte <schulte.marcel at gmail.com>
wrote:

> You (or someone else) changed defaults - because by default there're no
> SOFT states ;)
>
> Have a look at "~/var/log/notify.log", it should tell you why no
> notification is sent. Most likely a global or user rule does exclude
> notifications for UNKNOWN->OK...
>
> Regards,
> Marcel
>
> Am 05.02.2017 21:49 schrieb "iceal thaddeus lim" <ice at androidph.com>:
>
> For the previous questions:
>
> * do you mean RECOVERY notifications?
> When it goes from CRIT to OK, the notification type is RECOVERY. This
> works but UNKNOWN-OK does not send a RECOVERY or any notification that it
> is already green.
>
> * can you send the script as attachment?
> Cannot, but I can give the psuedo code.
>
> INIT. Get token from credentials
> GET. Perform get call that list all services and it's status.
> OUT. Using the service name and status, stdout the service and status in
> check_mk format.
>
> So output will be
> 0 service1...
> 0 service2...
> 0 service3...
> 1 service4...
> 2 service5...
>
> That works perfectly, except when the INIT call or GET call fails. This
> will make all the services in UNKNOWN. Which is fine. But when it recovers,
> no UNK - OK notification is sent.
>
>
> On Sun, Feb 5, 2017 at 12:33 iceal thaddeus lim <ice at androidph.com> wrote:
>
> Hi Marcel,
>
> I might have missed it.
>
> My settings are all omd default.
>
> I am not aware of such settings. Can you point me where I can see it?
> Either ui or directory would be enough.
>
> Thank you so much for your time.
>
> Regards,
> Iceal
>
>
> On Sun, Feb 5, 2017 at 12:31 Marcel Schulte <schulte.marcel at gmail.com>
> wrote:
>
> Hi Ice,
>
> I already answered your mail some days ago - did you receive this?
>
> Additionally to the requested information: doe you exclude service events
> UNKNOWN->OK from notification?
>
> Regards,
> Marcel
>
> Am 03.02.2017 08:12 schrieb "Marcel Schulte" <schulte.marcel at gmail.com>:
>
> Hi Ice,
>
> We need some more information on this:
>
> * do you mean RECOVERY notifications?
> * can you send the script as attachment?
> * how does the script output look like?
> * does the script create 5 services during discovery or only one?
> * how does the script output look like after "recovery"?
>
> Maybe we need even more info but that's all for the while ;)
>
> Regards,
> Marcel
>
>
> iceal thaddeus lim <ice at androidph.com> schrieb am Fr., 3. Feb. 2017 06:25:
>
> I have script that fetches 5 things and prints out the status of those 5
> things.
>
> Sometimes the service that I pull those 5 status from takes too long and
> so the 5 things sends UNKNOWN state.
>
> But when the script recovers, it does not print OK to all of those 5
> things I am watching for.
>
> Is this expected or am I configuring something wrong?
>
> Thanks.
> - Ice
> _______________________________________________
> checkmk-en mailing list
> checkmk-en at lists.mathias-kettner.de
> http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/checkmk-en/attachments/20170205/6882481e/attachment.html>


More information about the checkmk-en mailing list