how to show passive checks not as disabled?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
V3xX
Posts: 26
Joined: Wed Aug 29, 2012 6:48 am
Location: Switzerland

how to show passive checks not as disabled?

Post 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
Last edited by V3xX on Fri Jul 04, 2014 1:52 am, edited 1 time in total.
There are 10 kinds of people on world,
those who understand binary and those who don't.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: how to show passive checks not as disabled?

Post 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?
V3xX
Posts: 26
Joined: Wed Aug 29, 2012 6:48 am
Location: Switzerland

Re: how to show passive checks not as disabled?

Post 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 3880 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
There are 10 kinds of people on world,
those who understand binary and those who don't.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: how to show passive checks not as disabled?

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
V3xX
Posts: 26
Joined: Wed Aug 29, 2012 6:48 am
Location: Switzerland

Re: how to show passive checks not as disabled?

Post by V3xX »

ok, as there is no option for this, i got it by editing the tac.c file
There are 10 kinds of people on world,
those who understand binary and those who don't.
moloko
Posts: 2
Joined: Mon Aug 25, 2014 5:05 pm

Re: how to show passive checks not as disabled?

Post 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,
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: how to show passive checks not as disabled?

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
moloko
Posts: 2
Joined: Mon Aug 25, 2014 5:05 pm

Re: how to show passive checks not as disabled?

Post by moloko »

Ok, so I'll try that.
Thanks a lot for your fast response.

Jeremy
CSimpiFoN
Posts: 6
Joined: Mon Jan 29, 2018 7:37 am

Re: how to show passive checks not as disabled?

Post 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
kyang

Re: how to show passive checks not as disabled?

Post by kyang »

@CSimpiFoN,

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