Host/Service Grouping


#1

I have a group of linux servers that Im monitoring. However, some of these are Novell OES servers that need different parameters on the check commands and/or more checks. Is it possible to keep them grouped as ONLY linux servers on the web interface, while grouping them some other way in the config to get a differnet set of checks? They way I understand it is if I create a new host group, it will show them as a another group on the web interface. Is this possible?

thanks!
-Rob


#2

Yes, why not.
Hostgroups aren’t bonded with check commands. For each host you can define check command of your choice (if you want you can add some additional check commands in any of the plugins cfg files -> /etc/nagios-plugins/config), and add that host to any hostgroup you create.

For example

define service {
host_name Novell1
check_commandcheck_ping!200.0,20%!500.0,60%
}
define service {
host_name Linux1
check_command check_ping
}
define hostgroup{
hostgroup_name Linux_servers
members Novell1,Linux1
}

Or, if you’re defining hosts and host_checks:

define host {
host_name Novell1
check_command check-host-alive some arguments and options
}
define host {
host_name Linux1
check_command check-host-alive
}
define hostgroup{
hostgroup_name Linux_servers
members Novell1,Linux1
}

On the other hand you can make servicegroups in which you can specify group for services checking Novell servers, group checking all other servers, and group that contains all of those servers.

I hope I understood what you were looking for, and that this helps.