I would like to monitor a few hundred hosts using Nagios, yet I only want the switch fabric to show up in the statusmap.cgi. Is there a way to prevent a host from showing up in the status map, yet have it still be monitored?
-
A google search shows somebody else asking the question - http://osdir.com/ml/network.nagios.user/2002-09/msg00007.html - but it comes with no answer :( – TheWellington Nov 09 '11 at 22:24
3 Answers
You might want to take a look at NagViz. It's a great tool for Nagios which allows you to visualise exactly what you want and is extremely flexible.
Another great tool to visualise your monitoring hosts/networks is PHP Weathermap
I am not sure statusmap.cgi is generally popular.
Nagios CGI documentation is here

- 558
- 2
- 8
To hide the view of some host group you can comment, in the nagios.cfg file, inside the section "Object configuration file(s)", the line of object configuration file of the group you need to hide.
Eg.:
Definitions for monitoring the local (Linux) host
#cfg_file=/usr/local/nagios/etc/objects/localhost.cfg << Commented line

- 1
- 1
To disable hostgroup
we use 'register 0'
in the config
file. I think the same we can do for Host "NOT SURE".
Here is the way we disable hostgroup:
define hostgroup {
hostgroup_name Win-servers
alias Win-servers
members localhost
register 0
}
I suppose similer we can do for host like:
define host {
host_name xyz
use check_mk_host
address 120.0.0.0
_TAGS cmk-agent prod lan tcp wato /wato/
_FILENAME /wato/hosts.mk
hostgroups check_mk
alias xyz
register 0
}

- 1,820
- 4
- 16
- 17
-
I dont see why this was downvoted, while hidden hostgroups are _NOT_ available in each nagios version or clone it's one of the most elegant ways to do this. – Florian Heigl Jan 24 '16 at 07:15