]> granicus.if.org Git - icinga2/commitdiff
Add lsyncd CheckCommand definition
authorBarbUk <julien.virey@gmail.com>
Wed, 28 Nov 2018 12:55:23 +0000 (16:55 +0400)
committerBarbUk <julien.virey@gmail.com>
Wed, 28 Nov 2018 12:55:23 +0000 (16:55 +0400)
doc/10-icinga-template-library.md
itl/plugins-contrib.d/network-services.conf

index 103410d2d98d9be95c65b7f67409d4ffb7aec254..ecedc252f0e2f12d7f05213ea27a9a0ca696ee44 100644 (file)
@@ -2975,6 +2975,23 @@ nwc_health_oids                  | **Optional.** A list of oids which are downloaded and writte
 nwc_health_offline             | **Optional.** The maximum number of seconds since the last update of cache file before it is considered too old.
 nwc_health_multiline           | **Optional.** Multiline output
 
+### Network Services <a id="plugin-contrib-network-services"></a>
+
+This category contains plugins which receive details about network services
+
+#### lsyncd <a id="plugin-contrib-command-lsyncd"></a>
+
+The [check_lsyncd](https://github.com/ohitz/check_lsyncd) plugin,
+uses the `lsyncd` status file to monitor [lsyncd](https://axkibe.github.io/lsyncd/).
+
+Custom attributes passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
+
+Name                    | Description
+------------------------|---------------------------------------------------------------------------
+lsyncd_statfile         | **Optional.** Set status file path (default: /var/run/lsyncd.status).
+lsyncd_warning          | **Optional.** Warning if more than N delays (default: 10).
+lsyncd_critical         | **Optional.** Critical if more then N delays (default: 100).
+
 
 ### Operating System <a id="plugin-contrib-operating-system"></a>
 
index 0e1420d5bbd8c1791fa07b01c15cec862d578027..5126dcc690172369444debda0b1fa3de48a05fec 100644 (file)
@@ -81,3 +81,23 @@ object CheckCommand "rbl" {
        vars.rbl_warning = 1
        vars.rbl_critical = 1
 }
+
+object CheckCommand "lsyncd" {
+    import "plugin-check-command"
+    command = [ PluginDir + "/check_lsyncd" ]
+
+    arguments = {
+        "-s" = {
+            value = "$lsyncd_statfile$"
+            description = "Set status file path (default: /var/run/lsyncd.status)."
+        }
+        "-w" = {
+            value = "$lsyncd_warning$"
+            description = "Warning if more than N delays (default: 10)."
+        }
+        "-c" = {
+            value = "$lsyncd_critical$"
+            description = "Critical if more then N delays (default: 100)."
+        }
+    }
+}