Nagios hostgroup options

Jeff Engstrom Jeff.Engstrom at fortix.net
Sat Dec 28 00:49:56 CET 2002


Greetings,
 
            Does anyone know if Nagios supports groups within a group?  I
will provide an example...
 
            hosts.cfg
 
define host{
use                               generic-host
 
host_name                    examplehost1
alias                             Example Host 1
address                         x.x.x.x.
check_command           check-host-alive
max_check_attempts     10
notification_interval         120
notification_period          none
notification_options        d,r
}
 
define host{
use                               generic-host
 
host_name                    examplehost2
alias                             Example Host 2
address                         x.x.x.x.
check_command           check-host-alive
max_check_attempts     10
notification_interval         120
notification_period          none
notification_options        d,r
}
 
            hostgroup.cfg
 
            define hostgroup{
hostgroup_name            examplegroup1
alias                             Example Group 1
contact_groups              examplecontact
members                       examplehost1
}
 
            define hostgroup{
hostgroup_name            examplegroup2
alias                             Example Group 2
contact_groups              examplecontact
members                       examplehost2
}
 
            define hostgroup{
hostgroup_name            examplegroup3
alias                             Example Group 3
contact_groups              examplecontact
members                       examplegroup1,examplegroup2
}
 
            Any ideas are a huge help...  Thank you!
 
-Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021227/7d47167b/attachment.html>


More information about the Users mailing list