nagios: Added support for MySQL service target.

This commit is contained in:
Timo Makinen 2016-06-17 13:19:52 +03:00
parent 85f598d885
commit ea01b37485
2 changed files with 18 additions and 0 deletions

View file

@ -162,6 +162,12 @@ define command{
}
# 'check_mysql' command definition
define command{
command_name check_mysql
command_line $USER1$/check_mysql -H $HOSTADDRESS$ -n
}
# 'check_smb' command definition
define command{
command_name check_smb

View file

@ -246,6 +246,18 @@ class nagios::target::munin inherits nagios::target {
}
# Configure mysql service target.
#
class nagios::target::mysql inherits nagios::target {
@@nagios::service { "${::homename}_mysql":
command => "check_mysql",
description => "MySQL",
}
}
# Configure pop3 service target.
#
class nagios::target::pop3s inherits nagios::target {