config/director/Cluster_Bundle.json

{"DataList":{"IcingaCheckClusterHealth WarningState":{"list_name":"IcingaCheckClusterHealth WarningState","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Paused","entry_name":"Paused","format":"string"},{"allowed_roles":null,"entry_value":"Joining","entry_name":"Joining","format":"string"}],"owner":"stein"},"IcingaCheckClusterHealth CriticalState":{"list_name":"IcingaCheckClusterHealth CriticalState","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"Unknown","entry_name":"Unknown","format":"string"},{"allowed_roles":null,"entry_value":"Up","entry_name":"Up","format":"string"},{"allowed_roles":null,"entry_value":"Down","entry_name":"Down","format":"string"},{"allowed_roles":null,"entry_value":"Paused","entry_name":"Paused","format":"string"},{"allowed_roles":null,"entry_value":"Joining","entry_name":"Joining","format":"string"}],"owner":"stein"},"IcingaCheckClusterSharedVolume Verbosity":{"list_name":"IcingaCheckClusterSharedVolume Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"stein"},"IcingaCheckClusterHealth Verbosity":{"list_name":"IcingaCheckClusterHealth Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"stein"},"IcingaCheckClusterNetwork Verbosity":{"list_name":"IcingaCheckClusterNetwork Verbosity","originalId":"2","entries":[{"allowed_roles":null,"entry_value":"0","entry_name":"0","format":"string"},{"allowed_roles":null,"entry_value":"1","entry_name":"1","format":"string"},{"allowed_roles":null,"entry_value":"2","entry_name":"2","format":"string"},{"allowed_roles":null,"entry_value":"3","entry_name":"3","format":"string"}],"owner":"stein"}},"Command":{"PowerShell Base":{"methods_execute":"PluginCheck","object_name":"PowerShell Base","vars":{},"is_string":null,"command":"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","zone":null,"disabled":false,"fields":[],"arguments":{},"imports":[],"object_type":"object","timeout":"180"},"Invoke-IcingaCheckClusterHealth":{"fields":[{"datafield_id":2,"is_required":"n","var_filter":null},{"datafield_id":3,"is_required":"n","var_filter":null},{"datafield_id":4,"is_required":"n","var_filter":null},{"datafield_id":5,"is_required":"n","var_filter":null},{"datafield_id":6,"is_required":"n","var_filter":null},{"datafield_id":7,"is_required":"n","var_filter":null},{"datafield_id":8,"is_required":"n","var_filter":null},{"datafield_id":9,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckClusterHealth","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckClusterHealth\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckClusterHealth_Object_Verbosity$","order":"6"},"-ThresholdInterval":{"value":"$IcingaCheckClusterHealth_String_ThresholdInterval$","order":"100"},"-CriticalState":{"value":{"body":"var arr = macro(\"$IcingaCheckClusterHealth_Array_CriticalState$\");\r\n if (len(arr) == 0) {\r\n return \"@()\";\r\n }\r\n return arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n ).join(\",\");","type":"Function"},"order":"5"},"-SkipClusterRessource":{"set_if":"$IcingaCheckClusterHealth_Switchparameter_SkipClusterRessource$","set_if_format":"string","order":"99"},"-Include":{"value":{"body":"var arr = macro(\"$IcingaCheckClusterHealth_Array_Include$\");\r\n if (len(arr) == 0) {\r\n return \"@()\";\r\n }\r\n return arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n ).join(\",\");","type":"Function"},"order":"2"},"-WarningState":{"value":{"body":"var arr = macro(\"$IcingaCheckClusterHealth_Array_WarningState$\");\r\n if (len(arr) == 0) {\r\n return \"@()\";\r\n }\r\n return arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n ).join(\",\");","type":"Function"},"order":"4"},"-NoPerfData":{"set_if":"$IcingaCheckClusterHealth_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-Exclude":{"value":{"body":"var arr = macro(\"$IcingaCheckClusterHealth_Array_Exclude$\");\r\n if (len(arr) == 0) {\r\n return \"@()\";\r\n }\r\n return arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n ).join(\",\");","type":"Function"},"order":"3"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckClusterHealth_Switchparameter_SkipClusterRessource":false,"IcingaCheckClusterHealth_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckClusterSharedVolume":{"fields":[{"datafield_id":15,"is_required":"n","var_filter":null},{"datafield_id":16,"is_required":"n","var_filter":null},{"datafield_id":17,"is_required":"n","var_filter":null},{"datafield_id":18,"is_required":"n","var_filter":null},{"datafield_id":19,"is_required":"n","var_filter":null},{"datafield_id":20,"is_required":"n","var_filter":null},{"datafield_id":21,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckClusterSharedVolume","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckClusterSharedVolume\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckClusterSharedVolume_Object_Verbosity$","order":"6"},"-ThresholdInterval":{"value":"$IcingaCheckClusterSharedVolume_String_ThresholdInterval$","order":"100"},"-SpaceCritical":{"value":"$IcingaCheckClusterSharedVolume_Object_SpaceCritical$","order":"5"},"-ExcludeVolumes":{"value":{"body":"var arr = macro(\"$IcingaCheckClusterSharedVolume_Array_ExcludeVolumes$\");\r\n if (len(arr) == 0) {\r\n return \"@()\";\r\n }\r\n return arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n ).join(\",\");","type":"Function"},"order":"3"},"-NoPerfData":{"set_if":"$IcingaCheckClusterSharedVolume_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"},"-SpaceWarning":{"value":"$IcingaCheckClusterSharedVolume_Object_SpaceWarning$","order":"4"},"-IncludeVolumes":{"value":{"body":"var arr = macro(\"$IcingaCheckClusterSharedVolume_Array_IncludeVolumes$\");\r\n if (len(arr) == 0) {\r\n return \"@()\";\r\n }\r\n return arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n ).join(\",\");","type":"Function"},"order":"2"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckClusterSharedVolume_Switchparameter_NoPerfData":false}},"Invoke-IcingaCheckClusterNetwork":{"fields":[{"datafield_id":10,"is_required":"n","var_filter":null},{"datafield_id":11,"is_required":"n","var_filter":null},{"datafield_id":12,"is_required":"n","var_filter":null},{"datafield_id":13,"is_required":"n","var_filter":null},{"datafield_id":14,"is_required":"n","var_filter":null}],"object_name":"Invoke-IcingaCheckClusterNetwork","arguments":{"-C":{"value":"try { Use-Icinga -Minimal; } catch { Write-Output \u0027The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details\u0027; Write-Output \u0027Error:\u0027 $$($$_.Exception.Message)Components:`r`n$$( Get-Module -ListAvailable \u0027icinga-powershell-*\u0027 )`r`n\u0027Module-Path:\u0027`r`n$$($$Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command \u0027Invoke-IcingaCheckClusterNetwork\u0027 ","order":"0"},"-Verbosity":{"value":"$IcingaCheckClusterNetwork_Object_Verbosity$","order":"4"},"-ThresholdInterval":{"value":"$IcingaCheckClusterNetwork_String_ThresholdInterval$","order":"100"},"-ExcludeClusterInterface":{"value":{"body":"var arr = macro(\"$IcingaCheckClusterNetwork_Array_ExcludeClusterInterface$\");\r\n if (len(arr) == 0) {\r\n return \"@()\";\r\n }\r\n return arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n ).join(\",\");","type":"Function"},"order":"3"},"-IncludeClusterInterface":{"value":{"body":"var arr = macro(\"$IcingaCheckClusterNetwork_Array_IncludeClusterInterface$\");\r\n if (len(arr) == 0) {\r\n return \"@()\";\r\n }\r\n return arr.map(\r\n x =\u003e if (typeof(x) == String) {\r\n var argLen = len(x);\r\n if (argLen != 0 \u0026\u0026 x.substr(0,1) == \"\u0027\" \u0026\u0026 x.substr(argLen - 1, argLen) == \"\u0027\") {\r\n x;\r\n } else {\r\n \"\u0027\" + x + \"\u0027\";\r\n }\r\n } else {\r\n x;\r\n }\r\n ).join(\",\");","type":"Function"},"order":"2"},"-NoPerfData":{"set_if":"$IcingaCheckClusterNetwork_Switchparameter_NoPerfData$","set_if_format":"string","order":"99"}},"imports":["PowerShell Base"],"object_type":"object","vars":{"IcingaCheckClusterNetwork_Switchparameter_NoPerfData":false}}},"Datafield":{"16":{"settings":{"visibility":"visible"},"description":"Used to Filter out which Cluster Shared Volumes you want to check, provided you have\nseveral SharedVolumes on your system. Example (\u0027Cluster disk 2\u0027)","caption":"IncludeVolumes","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"16","varname":"IcingaCheckClusterSharedVolume_Array_IncludeVolumes","format":null},"3":{"settings":{"visibility":"visible"},"description":"Used to specify an array of nodes to include, allows \u0027*\u0027 wildcard","caption":"Include","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"3","varname":"IcingaCheckClusterHealth_Array_Include","format":null},"5":{"settings":{"datalist":"IcingaCheckClusterHealth WarningState","behavior":"strict","data_type":"array"},"description":"Allows to specify for which node state the check will throw a warning","caption":"WarningState","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"5","varname":"IcingaCheckClusterHealth_Array_WarningState","format":null},"21":{"settings":{"datalist":"IcingaCheckClusterSharedVolume Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"21","varname":"IcingaCheckClusterSharedVolume_Object_Verbosity","format":null},"18":{"settings":{"visibility":"visible"},"description":"Used to specify a Warning threshold for the SharedVolume, either in % or as byte unit\nExample: 10% or 10GB","caption":"SpaceWarning","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"18","varname":"IcingaCheckClusterSharedVolume_Object_SpaceWarning","format":null},"12":{"settings":{"visibility":"visible"},"description":"Specify the name of the Network Interfaces you want to exclude from checks. Example \u0027Ethernet 1, Ethernet\u0027","caption":"ExcludeClusterInterface","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"12","varname":"IcingaCheckClusterNetwork_Array_ExcludeClusterInterface","format":null},"10":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"10","varname":"IcingaCheckClusterNetwork_String_ThresholdInterval","format":null},"2":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"2","varname":"IcingaCheckClusterHealth_String_ThresholdInterval","format":null},"8":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"8","varname":"IcingaCheckClusterHealth_Switchparameter_NoPerfData","format":null},"17":{"settings":{"visibility":"visible"},"description":"Used to Filter out which Cluster Shared Volumes you don\u0027t want to check, provided you have\nseveral SharedVolumes on your system. Example (\u0027Cluster disk 2\u0027).","caption":"ExcludeVolumes","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"17","varname":"IcingaCheckClusterSharedVolume_Array_ExcludeVolumes","format":null},"11":{"settings":{"visibility":"visible"},"description":"Specify the name of the Network Interfaces you want to include for checks. Example \u0027Ethernet 1, Ethernet\u0027","caption":"IncludeClusterInterface","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"11","varname":"IcingaCheckClusterNetwork_Array_IncludeClusterInterface","format":null},"9":{"settings":{"datalist":"IcingaCheckClusterHealth Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"9","varname":"IcingaCheckClusterHealth_Object_Verbosity","format":null},"14":{"settings":{"datalist":"IcingaCheckClusterNetwork Verbosity","behavior":"strict","data_type":"string"},"description":"Changes the behavior of the plugin output which check states are printed:\n0 (default): Only service checks/packages with state not OK will be printed\n1: Only services with not OK will be printed including OK checks of affected check packages including Package config\n2: Everything will be printed regardless of the check state\n3: Identical to Verbose 2, but prints in addition the check package configuration e.g (All must be [OK])","caption":"Verbosity","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"14","varname":"IcingaCheckClusterNetwork_Object_Verbosity","format":null},"7":{"settings":{"visibility":"visible"},"description":"Removes the Cluster Resources package from the check output if set to true","caption":"SkipClusterRessource","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"7","varname":"IcingaCheckClusterHealth_Switchparameter_SkipClusterRessource","format":null},"15":{"settings":{"visibility":"visible"},"description":"Change the value your defined threshold checks against from the current value to a collected time threshold of the Icinga for Windows daemon, as described here: https://icinga.com/docs/icinga-for-windows/latest/doc/service/10-Register-Service-Checks/ An example for this argument would be 1m or 15m which will use the average of 1m or 15m for monitoring.","caption":"ThresholdInterval","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"15","varname":"IcingaCheckClusterSharedVolume_String_ThresholdInterval","format":null},"20":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"20","varname":"IcingaCheckClusterSharedVolume_Switchparameter_NoPerfData","format":null},"6":{"settings":{"datalist":"IcingaCheckClusterHealth CriticalState","behavior":"strict","data_type":"array"},"description":"Allows to specify for which node state the check will throw a critical","caption":"CriticalState","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeDatalist","originalId":"6","varname":"IcingaCheckClusterHealth_Array_CriticalState","format":null},"4":{"settings":{"visibility":"visible"},"description":"Used to specify an array of nodes to exclude, allows \u0027*\u0027 wildcard","caption":"Exclude","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeArray","originalId":"4","varname":"IcingaCheckClusterHealth_Array_Exclude","format":null},"19":{"settings":{"visibility":"visible"},"description":"Used to specify a Critical threshold for the SharedVolume, either in % or as byte unit\nExample: 10% or 10GB","caption":"SpaceCritical","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeString","originalId":"19","varname":"IcingaCheckClusterSharedVolume_Object_SpaceCritical","format":null},"13":{"settings":{"visibility":"visible"},"description":"Disables the performance data output of this plugin.","caption":"NoPerfData","datatype":"Icinga\\Module\\Director\\DataType\\DataTypeBoolean","originalId":"13","varname":"IcingaCheckClusterNetwork_Switchparameter_NoPerfData","format":null}}}