Page 1 of 1

how to show passive checks not as disabled?

Posted: Wed Jul 02, 2014 3:30 am
by V3xX
Hi Guys,

is there a way to don't show passivce checks as disabled?
because our admins miss them often, because they're disabled.
would be nice if there is a solution to display in "X Unhandled Problems" but still have the passive check Icon.


Hope you guys can help me.


thanks in advance for your help
kind regards
V3xX

Re: how to show passive checks not as disabled?

Posted: Wed Jul 02, 2014 11:11 am
by slansing
I think we will need a bit more detail on this question, if your admins are missing updates to services because you have disabled passive checks on them, why not just re-enable them? If passive check results are disabled you will never see an update to that object unless it was from some sort of event handler posting data, or a freshness check being ran.

Similarly nagios would not know there is an issue if it never receives check results saying there is one. This is where I am a bit unclear, could you go a bit more into detail on what you are looking for or currently seeing that you want to change?

Re: how to show passive checks not as disabled?

Posted: Thu Jul 03, 2014 12:39 am
by V3xX
hi,

of course some more details:
i have passive checks (passive checks enabled, active checks disabled).
in Tactical Overview this checks are shown as disabled
printscreen in Tactical Overview
printscreen in Tactical Overview
nagios1.PNG (3.8 KiB) Viewed 4680 times
now i search an option or something like this to show this check not in "X Disabled" but in "X Unhandled Problems".
because some of our admins don't give a f*ck on the "X Disabled", they just have a look on the "X Unhandled Problems".

is there an option like this?
is the question now clear? (I hope so)


Thanks in advance for your help

Re: how to show passive checks not as disabled?

Posted: Thu Jul 03, 2014 12:30 pm
by lmiltchev
These are different options:

"Unhandled Problems" are services "Not In Scheduled Downtime & Has Not Been Acknowledged & Active Checks Enabled".
"Disabled" are services with "Active Checks Disabled"

I don't believe you can change that. In Nagios XI, you can see how many services in a certain state are "active" or "passive", so I believe this is more intuitive.
example01.PNG

Re: how to show passive checks not as disabled?

Posted: Fri Jul 04, 2014 1:52 am
by V3xX
ok, as there is no option for this, i got it by editing the tac.c file

Re: how to show passive checks not as disabled?

Posted: Mon Aug 25, 2014 5:22 pm
by moloko
Hi everyone,


I have the same request and I found, thanks to V3xX, that editing the tac.c file is the solution.
So I have 2 questions (maybe especially for V3xX ?) :

- Could you give me hint to find the exact line(s) where I can change what it needs to be changed ? (of course, I searched, and found especially one line that might be the one but I don't want to make a mistake...)
- Also, after that, I have to recompile Nagios right ? Or is there a way to only recompile this tac.c file ?

If Nagios need to be recompiled, should I just backup my conf files, recompile as if it's the first time and replace the new conf files with mines ? Or is there a more clever way to do it ?


Thanks a lot in advance for your help,
Nice regards,

Re: how to show passive checks not as disabled?

Posted: Tue Aug 26, 2014 9:35 am
by eloyd
Recompiling and reinstalling Nagios (but NOT the nagios config files) is easy enough. Just do the ./configure, make, make install commands again and you should be all set.

Make a backup first, but if you're just recompiling source, then your config files should not be touched by the install process.

Re: how to show passive checks not as disabled?

Posted: Tue Aug 26, 2014 3:46 pm
by moloko
Ok, so I'll try that.
Thanks a lot for your fast response.

Jeremy

Re: how to show passive checks not as disabled?

Posted: Wed Feb 07, 2018 8:11 am
by CSimpiFoN
moloko, or V3xX,

Can you let me know what exactly you changed in tac.c to achieve what you had wanted?

Thanks,

Tamas

Re: how to show passive checks not as disabled?

Posted: Wed Feb 07, 2018 11:12 am
by kyang
@CSimpiFoN,

What version of Nagios Core are you running? Also what OS?