… appologies, took me a time to find right one … our enviroment is massive …
following is missing cmd conf:
{
"ExternalCommand": {
"nrpe": {
"arguments": {
"-6": {
"description": "Use IPv6 connection",
"set_if": "$nrpe_ipv6$"
},
"-4": {
"description": "Use IPv4 connection",
"set_if": "$nrpe_ipv4$"
},
"-2": {
"description": "Use this if you want to connect to NRPE v2",
"set_if": "$nrpe_version_2$"
},
"-A": {
"description": "The CA file to use for PKI",
"value": "$nrpe_ca$"
},
"-C": {
"description": "The cert file to use for PKI",
"value": "$nrpe_cert$"
},
"-H": {
"description": "The address of the host running the NRPE daemon",
"value": "$nrpe_address$"
},
"-K": {
"description": "The key file to use for PKI",
"value": "$nrpe_key$"
},
"-L": {
"description": "The list of SSL ciphers to use",
"value": "$nrpe_cipher_list$"
},
"-S": {
"description": "The SSL/TLS version to use",
"value": "$nrpe_ssl_version$"
},
"-a": {
"repeat_key": false,
"value": "$nrpe_arguments$",
"order": "1"
},
"-c": "$nrpe_command$",
"-d": {
"description": "Anonymous Diffie Hellman use: 0 = deny, 1 = allow, 2 = force",
"value": "$nrpe_dh_opt$"
},
"-n": {
"description": "Do not use SSL",
"set_if": "$nrpe_no_ssl$"
},
"-p": "$nrpe_port$",
"-t": {
"description": "<interval>:<state> = <Number of seconds before connection times out>:<Check state to exit with in the event of a timeout (default=CRITICAL)>",
"value": "$nrpe_timeout$"
},
"-u": {
"description": "Make socket timeouts return an UNKNOWN state instead of CRITICAL",
"set_if": "$nrpe_timeout_unknown$"
}
},
"command": "check_nrpe",
"fields": [
{
"datafield_id": 123,
"is_required": "n",
"var_filter": null
},
{
"datafield_id": 76,
"is_required": "n",
"var_filter": null
},
{
"datafield_id": 77,
"is_required": "n",
"var_filter": null
},
{
"datafield_id": 124,
"is_required": "n",
"var_filter": null
},
{
"datafield_id": 78,
"is_required": "n",
"var_filter": null
},
{
"datafield_id": 95,
"is_required": "n",
"var_filter": null
},
{
"datafield_id": 392,
"is_required": "n",
"var_filter": null
},
{
"datafield_id": 393,
"is_required": "n",
"var_filter": null
}
],
"methods_execute": "PluginCheck",
"object_name": "nrpe",
"object_type": "external_object",
"timeout": "300",
"vars": {
"check_address": {
"arguments": [],
"deprecated": false,
"name": "<anonymous>",
"side_effect_free": false,
"type": "Function"
},
"check_ipv4": "$nrpe_ipv4$",
"check_ipv6": "$nrpe_ipv6$",
"nrpe_address": "$check_address$",
"nrpe_no_ssl": false,
"nrpe_timeout_unknown": false,
"nrpe_version_2": false
}
}
},
"Datafield": {
"123": {
"varname": "nrpe_address",
"caption": "nrpe_address",
"description": "The address of the host running the NRPE daemon",
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString",
"format": null,
"originalId": "123",
"settings": {},
"category": null
},
"76": {
"varname": "nrpe_arguments",
"caption": "nrpe_arguments",
"description": null,
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeArray",
"format": null,
"originalId": "76",
"settings": {},
"category": null
},
"77": {
"varname": "nrpe_command",
"caption": "nrpe_command",
"description": null,
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString",
"format": null,
"originalId": "77",
"settings": {},
"category": null
},
"124": {
"varname": "nrpe_no_ssl",
"caption": "nrpe_no_ssl",
"description": "no SSL handshake to use",
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeBoolean",
"format": null,
"originalId": "124",
"settings": {
"rename_vars": "y"
},
"category": null
},
"78": {
"varname": "nrpe_port",
"caption": "nrpe_port",
"description": null,
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString",
"format": null,
"originalId": "78",
"settings": {},
"category": null
},
"95": {
"varname": "nrpe_timeout",
"caption": "nrpe_timeout",
"description": "<interval>:<state> = <Number of seconds before connection times out>:<Check state to exit with in the event of a timeout (default=CRITICAL)>",
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString",
"format": null,
"originalId": "95",
"settings": {},
"category": null
},
"392": {
"varname": "nrpe_timeout_unknown",
"caption": "nrpe_timeout_unknown",
"description": null,
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeBoolean",
"format": null,
"originalId": "392",
"settings": {},
"category": null
},
"393": {
"varname": "nrpe_version_2",
"caption": "nrpe_version_2",
"description": null,
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeBoolean",
"format": null,
"originalId": "393",
"settings": {},
"category": null
}
}
}
service template:
{
"ServiceTemplate": {
"tp_windows_nrpe": {
"check_command": "nrpe",
"check_interval": "300",
"check_period": "notify_24",
"check_timeout": "30",
"enable_active_checks": true,
"enable_event_handler": true,
"enable_flapping": false,
"enable_notifications": true,
"enable_passive_checks": true,
"enable_perfdata": true,
"fields": [
{
"datafield_id": 77,
"is_required": "n",
"var_filter": null
},
{
"datafield_id": 95,
"is_required": "n",
"var_filter": null
}
],
"max_check_attempts": "7",
"object_name": "tp_windows_nrpe",
"object_type": "template",
"retry_interval": "30",
"vars": {
"nrpe_address": "$address$",
"nrpe_timeout": "30",
"nrpe_version_2": true
}
}
},
"Datafield": {
"77": {
"varname": "nrpe_command",
"caption": "nrpe_command",
"description": null,
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString",
"format": null,
"originalId": "77",
"settings": {},
"category": null
},
"95": {
"varname": "nrpe_timeout",
"caption": "nrpe_timeout",
"description": "<interval>:<state> = <Number of seconds before connection times out>:<Check state to exit with in the event of a timeout (default=CRITICAL)>",
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString",
"format": null,
"originalId": "95",
"settings": {},
"category": null
}
}
}
Hope this is all.