diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-01-23 04:11:08 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-01-23 04:11:08 +0000 |
commit | 288e207f19c8bcea6e73867a39637152694e60af (patch) | |
tree | bd4ad16752c64396fa5e6701fc9862c9aa8a3e43 /nagios-templates.cfg | |
parent | d6a04c6db6948067c34507c0e44a410c72c7f402 (diff) | |
download | sitesummary-288e207f19c8bcea6e73867a39637152694e60af.tar.gz sitesummary-288e207f19c8bcea6e73867a39637152694e60af.tar.bz2 sitesummary-288e207f19c8bcea6e73867a39637152694e60af.tar.xz |
Use switch information collected using cdpr to specify Nagios
host parent relationships.
Diffstat (limited to 'nagios-templates.cfg')
-rw-r--r-- | nagios-templates.cfg | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nagios-templates.cfg b/nagios-templates.cfg index 4fdd2fb..797b56e 100644 --- a/nagios-templates.cfg +++ b/nagios-templates.cfg @@ -66,6 +66,12 @@ define host { contact_groups admins } +define host { + use server-host + name switch-host + check_command check-host-none +} + define service { name server-service is_volatile 0 @@ -203,6 +209,11 @@ define command{ } define command{ + command_name check-host-none + command_line /bin/echo Switch hosts are not checked +} + +define command{ command_name check_nrpe command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } |