[icinga-checkins] icinga.org: icinga2/feature/check_nscp-12874: Add CheckCommand for check_nscp.exe

git at icinga.org git at icinga.org
Thu Dec 8 14:14:38 CET 2016


Module: icinga2
Branch: feature/check_nscp-12874
Commit: bc1bc63be3cf3655b1534d071fbef6be7f8fb785
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=bc1bc63be3cf3655b1534d071fbef6be7f8fb785

Author: Jean Flach <jean-marcel.flach at netways.de>
Date:   Fri Oct  7 16:22:20 2016 +0200

Add CheckCommand for check_nscp.exe

Currently Windows only

refs #12874

---

 itl/command-plugins-windows.conf |   62 +++++++++++++++++++++++++++-----------
 1 file changed, 45 insertions(+), 17 deletions(-)

diff --git a/itl/command-plugins-windows.conf b/itl/command-plugins-windows.conf
index 11d2734..595a47a 100644
--- a/itl/command-plugins-windows.conf
+++ b/itl/command-plugins-windows.conf
@@ -19,7 +19,7 @@
 
 object CheckCommand "disk-windows" {
 	command = [ PluginDir + "/check_disk.exe" ]
-	
+
 	arguments = {
 		"-w" = {
 			value = "$disk_win_warn$"
@@ -43,14 +43,14 @@ object CheckCommand "disk-windows" {
 			description = "Exclude these drives from check"
 		}
 	}
-	
+
 	vars.disk_win_unit = "mb"
 	//The default
 }
-	
+
 object CheckCommand "load-windows" {
 	command = [ PluginDir + "/check_load.exe" ]
-	
+
 	arguments = {
 		"-w" = {
 			value = "$load_win_warn$"
@@ -65,7 +65,7 @@ object CheckCommand "load-windows" {
 
 object CheckCommand "memory-windows" {
 	command = [ PluginDir + "/check_memory.exe" ]
-	
+
 	arguments = {
 		"-w" = {
 			value = "$memory_win_warn$"
@@ -86,7 +86,7 @@ object CheckCommand "memory-windows" {
 
 object CheckCommand "network-windows" {
 	command = [ PluginDir + "/check_network.exe" ]
-	
+
 	arguments = {
 		"-w" = {
 			value = "$network_win_warn$"
@@ -104,9 +104,37 @@ object CheckCommand "network-windows" {
 	vars.network_no_isatap = true
 }
 
+object CheckCommand "nscp-windows" {
+	command = [ PluginDir + "/check_nscp.exe" ]
+
+	arguments = {
+		"-H" = {
+			value = $nscp_win_host$
+			description = "NSCP host address"
+		}
+		"-P" = {
+			value = $nscp_win_port$
+			description = "NSCP host port"
+		}
+		"--passwd" = {
+			value = $nscp_win_passwd$
+			description = "NSCP password"
+		}
+		"-q" = {
+			value = $nscp_win_query$
+			description = "Query enpoint to use"
+		}
+		"-a" = {
+			value = $nscp_win_arg$
+			description = "Query arguments"
+			repeat_key = true
+		}
+	}
+}
+
 object CheckCommand "perfmon-windows" {
 	command = [ PluginDir + "/check_perfmon.exe" ]
-	
+
 	arguments = {
 		"-w" = {
 			value = "$perfmon_win_warn$"
@@ -130,7 +158,7 @@ object CheckCommand "perfmon-windows" {
 			description = "Performance counter type"
 		}
 	}
-	
+
 	vars.performance_win_wait = 1000
 	vars.perfmon_win_type = "double"
 	//The default values
@@ -163,7 +191,7 @@ template CheckCommand "ping-common-windows" {
 			description = "Timeout in ms"
 		}
 	}
-	
+
 	vars.ping_win_packets = "5"
 	vars.ping_win_timeout = "1000"
 	//The default values
@@ -194,7 +222,7 @@ object CheckCommand "ping6-windows" {
 
 object CheckCommand "procs-windows" {
 	command = [ PluginDir + "/check_procs.exe" ]
-	
+
 	arguments = {
 		"-w" = {
 			value = "$procs_win_warn$"
@@ -213,7 +241,7 @@ object CheckCommand "procs-windows" {
 
 object CheckCommand "service-windows" {
 	command = [ PluginDir + "/check_service.exe" ]
-	
+
 	arguments = {
 		"-w" = {
 			set_if = "$service_win_warn$"
@@ -229,7 +257,7 @@ object CheckCommand "service-windows" {
 
 object CheckCommand "swap-windows" {
 	command = [ PluginDir + "/check_swap.exe" ]
-	
+
 	arguments = {
 		"-w" = {
 			value = "$swap_win_warn$"
@@ -244,14 +272,14 @@ object CheckCommand "swap-windows" {
 			description = "Unit to display swap in"
 		}
 	}
-	
+
 	vars.swap_win_unit = "mb"
 	//The default
 }
 
 object CheckCommand "update-windows" {
 	command = [ PluginDir + "/check_update.exe" ]
-	
+
 	arguments = {
 		"-w" = {
 			set_if = "$update_win_warn$"
@@ -272,7 +300,7 @@ object CheckCommand "update-windows" {
 
 object CheckCommand "uptime-windows" {
 	command = [ PluginDir + "/check_uptime.exe" ]
-	
+
 	arguments = {
 		"-w" = {
 			value = "$uptime_win_warn$"
@@ -287,14 +315,14 @@ object CheckCommand "uptime-windows" {
 			description = "Time unit to use"
 		}
 	}
-	
+
 	vars.uptime_win_unit = "s"
 	//The default
 }
 
 object CheckCommand "users-windows" {
 	command = [ PluginDir + "/check_users.exe" ]
-	
+
 	arguments = {
 		"-w" = {
 			value = "$users_win_warn$"



More information about the icinga-checkins mailing list