Re: [Nagios-devel] Hide services that are checked with

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
Guest

Re: [Nagios-devel] Hide services that are checked with

Post by Guest »

Robert Lindgren wrote:
>
> Hi,
>
> I'm just wondering if there some way to hide services that have
> notifications disabled in the webgui? The reason is that I use
> check_cluster2 and monitor the same service on two hosts and since
> it's a master/slave setup it will only run on one node at any given
> time. This works OK, check_cluster2 sends notifications if the service
> is not running on any node, But this messes up my tactical and my
> problem->service view, with services I have know is down.
>
> So is there a way of "hiding" these services somehow?
>
Hi,

hiding them alltogether can be done by changing the access to those
services through cgi.cfg and ownership.

Another way to hide these services, is to set the serviceprops on the
status.cgi.

serviceprops takes a binary input (1, 2, 4, 8, 16 etc), which can be
combined by adding up the numbers (eg 2+4+16 = 22), each binary value
has it's own setting that you can filter with.

If you want to see services on all hosts that has notifications enabled,
access https://path.to/nagios/status.cgi?host= ... rops=8192j

If you want to see problem services that has notificaations enabled you
can use something like this:
https://path.to/nagios/status.cgi?host= ... ustypes=28

btw, I havn't found any documentation on this part of the cgi's
functionality, is this documented anywhere, or should I try to find some
time to make a patch for the docs section ?

Regards
Søren Klintrup





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked