nagios: Added smb and wins service targets.

This commit is contained in:
Timo Makinen 2013-11-15 08:46:04 +02:00
parent 70d894e4b1
commit 95f66a4b3d
5 changed files with 147 additions and 0 deletions

View file

@ -198,6 +198,18 @@ class nagios::target::pop3s inherits nagios::target {
}
# Configure SMB service target.
#
class nagios::target::smb inherits nagios::target {
@@nagios::service { "${::homename}_smb":
command => "check_smb",
description => "SMB",
}
}
# Configure smtp service target.
#
class nagios::target::smtp inherits nagios::target {
@ -263,6 +275,27 @@ define nagios::target::tcp($port, $description=undef) {
}
# Configure WINS service target.
#
# === Parameters:
#
# $query:
# Address to query from WINS. Defaults to $homename.
#
# $type:
# Record type to query. Defaults to 00 (workstation service).
# For different types see: http://support.microsoft.com/kb/830578
#
class nagios::target::wins($query="${::homename}", $type="00") inherits nagios::target {
@@nagios::service { "${::homename}_wins":
command => "check_wins!${query} -t ${type}",
description => "WINS",
}
}
# Configure nagios nrpe target.
#
# === Global variables