nagios: Added support for MySQL service target.
This commit is contained in:
parent
85f598d885
commit
ea01b37485
2 changed files with 18 additions and 0 deletions
|
@ -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
|
# 'check_smb' command definition
|
||||||
define command{
|
define command{
|
||||||
command_name check_smb
|
command_name check_smb
|
||||||
|
|
|
@ -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.
|
# Configure pop3 service target.
|
||||||
#
|
#
|
||||||
class nagios::target::pop3s inherits nagios::target {
|
class nagios::target::pop3s inherits nagios::target {
|
||||||
|
|
Loading…
Add table
Reference in a new issue