Module: check_mk
Branch: master
Commit: 7977281c42d7cb2fd507fa556c92b8d2f690aea3
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7977281c42d7cb…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Mon Jul 29 16:46:13 2013 +0200
check manpages for active checks which can be configured by dedicated rules in wato
---
checkman/check_disk_smb | 14 ++++++++++++++
checkman/check_dns | 19 +++++++++++++++++++
checkman/check_http | 22 ++++++++++++++++++++++
checkman/check_ldap | 16 ++++++++++++++++
checkman/check_smtp | 22 ++++++++++++++++++++++
checkman/check_tcp | 23 +++++++++++++++++++++++
6 files changed, 116 insertions(+)
diff --git a/checkman/check_disk_smb b/checkman/check_disk_smb
new file mode 100644
index 0000000..3322c28
--- /dev/null
+++ b/checkman/check_disk_smb
@@ -0,0 +1,14 @@
+title: Access to a SMB share / free space
+agents: active
+catalog: agentless
+license: GPL
+distribution: check_mk
+description:
+ This is an active check that can access a SMB share, check if it is
+ available and check the free space against given thresholds (in percent)
+ for {WARN} and {CRIT}.
+
+ This check can be configured by Wato.
+
+perfdata:
+ One value: The used space on the share in Bytes.
diff --git a/checkman/check_dns b/checkman/check_dns
new file mode 100644
index 0000000..cc975b3
--- /dev/null
+++ b/checkman/check_dns
@@ -0,0 +1,19 @@
+title: DNS query to a Nameserver
+agents: active
+catalog: agentless
+license: GPL
+distribution: check_mk
+description:
+ This is an active check that sends a DNS query to a DNS nameserver.
+
+ You can give the DNS name to query for.
+
+ It can compare the IP it gets back against a given IP and return {CRIT} if
+ they do not match. It can check the DNS server to be authoritativ for the
+ lookup. It can check response times against given thresholds for {WARN}
+ and {CRIT}.
+
+ This check can be configured by Wato.
+
+perfdata:
+ One value: The response time in seconds.
diff --git a/checkman/check_http b/checkman/check_http
new file mode 100644
index 0000000..f956423
--- /dev/null
+++ b/checkman/check_http
@@ -0,0 +1,22 @@
+title: HTTP/HTTPS connections
+agents: active
+catalog: agentless
+license: GPL
+distribution: check_mk
+description:
+ This performs an active check of a HTTP or HTTPS server.
+
+ It can check response times against given thresholds. It can check the response
+ page to match or not to match certain strings or regular expressions. It can
+ check the size of the result page against given thresholds. It can check for
+ a maximum age of the result page.
+
+ And you can configure it also to check the SSL certificate used on HTTPS
+ connection for expiration within the next days.
+
+ This check can be configured by Wato.
+
+perfdata:
+ If checking expiration of SSL certificate: None.
+
+ Otherwise two values: The response time in seconds and the size of the response in Bytes.
diff --git a/checkman/check_ldap b/checkman/check_ldap
new file mode 100644
index 0000000..68567d6
--- /dev/null
+++ b/checkman/check_ldap
@@ -0,0 +1,16 @@
+title: LDAP/LDAPS connection
+agents: active
+catalog: agentless
+license: GPL
+distribution: check_mk
+description:
+ This is an active check that connects to an LDAP server by LDAP or
+ LDAPS protocol and reports the status of the connection.
+
+ You can give a special attribute to search for. Thresholds can be set on the
+ response time for {WARN} and {CRIT}.
+
+ This check can be configured by Wato.
+
+perfdata:
+ One value: The response time in seconds.
diff --git a/checkman/check_smtp b/checkman/check_smtp
new file mode 100644
index 0000000..355a4b8
--- /dev/null
+++ b/checkman/check_smtp
@@ -0,0 +1,22 @@
+title: SMTP connection
+agents: active
+catalog: agentless
+license: GPL
+distribution: check_mk
+description:
+ This is an active check that connects to a SMTP server and checks if the
+ SMTP protocol works. STARTTLS can be used to establish a SSL encrypted
+ connection. Using SMTP AUTH is possible.
+
+ You can specify a string to expect in the respose of the server. You can
+ give specific SMTP commands to execute on the connection and define which
+ responses are expected. Thresholds for the response time can be configured
+ for {WARN} and {CRIT}.
+
+ If using SSL you can configure to check for expiration of the SSL certificate
+ within the next days.
+
+ This check can be configured by Wato.
+
+perfdata:
+ One value: The response time in seconds.
diff --git a/checkman/check_tcp b/checkman/check_tcp
new file mode 100644
index 0000000..5340bd2
--- /dev/null
+++ b/checkman/check_tcp
@@ -0,0 +1,23 @@
+title: Connection to a TCP Port (unencrypted or with SSL)
+agents: active
+catalog: agentless
+license: GPL
+distribution: check_mk
+description:
+ This is an active check that connects to any given TCP port and checks
+ if the connection could be established. Therefor it can be used to check
+ nearly any TCP based service on the monitored machine. SSL can be activated
+ to connect to any SSL encrypted service.
+
+ Thresholds for the response time can be configured for {WARN} and {CRIT}.
+ You can give a string to send over the connection and define a string to
+ expect in the response. A given string to send for terminating the connection
+ can be configured too.
+
+ If using SSL you can configure to check for expiration of the SSL certificate
+ within the next days.
+
+ This check can be configured by Wato.
+
+perfdata:
+ One value: The response time in seconds.
Module: check_mk
Branch: master
Commit: 3f9a233dd0c9e59a23d94fe17181e0c97d03a514
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3f9a233dd0c9e5…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Fri Jul 26 13:56:56 2013 +0200
initial version of check manpage for plesk_backups
---
checkman/plesk_backups | 46 +++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 41 insertions(+), 5 deletions(-)
diff --git a/checkman/plesk_backups b/checkman/plesk_backups
index f29238e..b7f4b8d 100644
--- a/checkman/plesk_backups
+++ b/checkman/plesk_backups
@@ -1,4 +1,4 @@
-title: FTP backup spaces of Plesk domains
+title: FTP backups of Plesk domains
agents: linux
catalog: app/Plesk
license: GPL
@@ -8,11 +8,47 @@ description:
manage multiple independent webspace instances including domains and
so on.
- Plugin: plesk_backup (war das bei plesk_domains auch erwähnt)?
+ This check checks the FTP backups and backup space of Plesk domains.
- BERND SCHREIBT DEN REST.
+ To make this check work you need to install the agent plugin
+ {plesk_backups} on the host wich runs Plesk in the
+ directory {/usr/lib/check_mk_agent/plugins}.
+
+item:
+ The domain name of the domain backuped.
+
+examples:
+ # set up a check for a plesk backup
+ # warn if backup is elder than 1 day (86400 sec)
+ # and crit if elder than 2 days
+ # warn if Maximum size of all files on backup space is > 70 MB
+ # (73400320 Bytes) and crit if > 80 MB
+ # warn also if no backup is configured or no backup can be found
+ static_checks['plesk_backups'] = [
+ ( ('plesk_backups',
+ 'Backup example.com',
+ { 'backup_age': (86400, 172800),
+ 'total_size': (73400320, 83886080),
+ 'no_backup_configured_state': 1,
+ 'no_backup_found_state': 1
+ }),
+ [], ['localhost1']
+ ),
+ ]
+
+perfdata:
+ Three values:
+ last backup size in bytes,
+ last backup age in seconds and
+ total size of all backups in bytes
inventory:
- One check per system is created if the {plesk_domains} agent plugin
- is installed and working (it outputs the {<<<plesk_domains>>>} section).
+ One check per plesk domain is created if the {plesk_backups} agent plugin
+ is installed and working (it outputs the {<<<plesk_backups>>>} section).
+
+[parameters]
+backup_age(int, int): if the age of the backup (in seconds) is elder than the first value, return {WARN} state, if elder than the second one, return {CRIT} state
+total_size(int, int): if the total size of all backups on the backup space (in bytes) is larger than than the first value, return {WARN} state, if larger than the second one, return {CRIT} state
+no_backup_configured_state(int): the numeric state that should be returned if no backup is configured ( 0 = {OK}, 1 = {WARN}, 2 = {CRIT} )
+no_backup_found_state(int): the numeric state that should be returned if no backup can be found ( 0 = {OK}, 1 = {WARN}, 2 = {CRIT} )