Created
September 1, 2012 02:48
-
-
Save jssjr/3563022 to your computer and use it in GitHub Desktop.
Nagios inheritance patters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define hostgroup{ | |
hostgroup_name servers | |
alias Class - Servers | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define hostgroup{ | |
hostgroup_name mysqls | |
alias Role - MySQL | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define host { | |
name class-server | |
register 0 | |
hostgroups +servers | |
_CLASS server | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define host { | |
name prod.rws-asset | |
use rws-asset | |
notification_period 24x7 | |
register 0 | |
_ENV prod.rws | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define host { | |
name rws-asset | |
use generic-asset-reachable | |
notification_period 24x7 | |
register 0 | |
_ENV rws | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define host { | |
name role-mysql | |
register 0 | |
hostgroups +mysqls | |
_ROLE mysql | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define host { | |
use prod.rws-asset,class-server,role-mysql | |
host_name prod-server-hulk | |
alias Hulk | |
parents dca1-switch-sw001 | |
address hulk.dca1.rws | |
_VENDOR Dell | |
_MODEL PowerEdge R510 | |
_SERIAL xxxxxx | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define service { | |
name critical-service | |
use generic-service | |
contact_groups +sysadmins-mobile,irc | |
register 0 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define service{ | |
use critical-service | |
service_description vfs.numvnodes | |
hostgroup_name servers | |
display_name Current vnodes | |
check_command check_snmp_extend!sysctl_numvnodes | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment