Wednesday, March 2, 2011

nagios notification

Object Inheritance http://nagios.sourceforge.net/docs/3_0/objectinheritance.html

define host {
 name              windows
 contact_groups    +windows
 ...
}
define host {
    name              citrix
    contact_groups    +citrix
    ...
}

For the citrix Windows VM, we want it inherit all the Windows properties, but not the contact group. This would not work.

define contact {
     contact_name      joe
     contact_groups    +windows, !citrix
     ...
}

Work around:

define host {
     use              windows, citrix
     contact_group    citrix
     ...
}


There seems to be a bug that host and service contact_groups overwrite each other. Similiar to bug http://tracker.nagios.org/view.php?id=166
define host {
     use              windows, citrix
     contact_group    citrix
     ...
}

would overwrite

define host {
    contact_group    +windows
    ...
}

end up with only critical group receive alert.

No comments:

Post a Comment