Created
February 7, 2016 14:30
-
-
Save dnsmichi/4d12028ca8348d908d20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Host "lcp-example" { | |
import "rittal-host" | |
display_name = "Rittal LCP Example" | |
address = "192.168.1.1" | |
groups += [ "rittal" ] | |
vars.rittal_checks["water-out-temp"] = { | |
display_name = "Water-Out Temperature [decigrade C]" | |
rittal_oid = ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.74" | |
rittal_warn = "50:250" | |
rittal_crit = "50:350" | |
} | |
vars.rittal_checks["water-in-temp"] = { | |
display_name = "Water-In Temperature [decigrade C]" | |
rittal_oid = ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.65" | |
rittal_warn = "50:200" | |
rittal_crit = "50:250" | |
} | |
vars.rittal_checks["water-flow-rate"] = { | |
display_name = "Water Flow Rate [l/m]" | |
rittal_oid = ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.83" | |
rittal_warn = "0:80" | |
rittal_crit = "0:100" | |
} | |
vars.rittal_checks["water-air-out-temp"] = { | |
display_name = "Air-Out Temperature [decigrade C]" | |
rittal_oid = [ ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.10", ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.11", ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.12" ] | |
rittal_warn = [ "150:400", "150:400", "150:400" ] | |
rittal_crit = [ "120:500", "120:500", "120:500" ] | |
} | |
vars.rittal_checks["water-air-in-temp"] = { | |
display_name = "Air-In Temperature [decigrade C]" | |
rittal_oid = [ ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.7", ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.8", ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.9" ] | |
rittal_warn = [ "120:250", "120:250", "120:250" ] | |
rittal_crit = [ "90:300", "90:300", "90:300" ] | |
} | |
vars.rittal_checks["fan-speed-123456"] = { | |
display_name = "Fan Speed [percent %]" | |
rittal_oid = [ "1.3.6.1.4.1.2606.7.4.2.2.1.11.2.36", ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.40", ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.44", ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.48", ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.52", ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.56" ] | |
rittal_warn = [ "15:85", "15:85", "15:85", "15:85", "15:85", "15:85" ] | |
rittal_crit = [ "5:95", "5:95", "5:95", "5:95", "5:95", "5:95" ] | |
} | |
vars.rittal_checks["fan-speed-103006"] = { | |
display_name = "Fan Speed [percent %]" | |
rittal_oid = [ ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.36", ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.44", ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.52" ] | |
rittal_warn = [ "15:85", "15:85", "15:85" ] | |
rittal_crit = [ "5:95", "5:95", "5:95" ] | |
} | |
vars.rittal_checks["cooling-capacity"] = { | |
display_name = "Cooling Capacity [watts]" | |
rittal_oid = ".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.93" | |
rittal_warn = "0:80000" | |
rittal_crit = "0:100000" | |
} | |
} | |
/* use the prefix "rittal-" for all service names. "rname" is the key in the "rittal_checks" dictionary, e.g. "cooling-capacitry" */ | |
apply Service "rittal-" for (rname => config in host.vars.rittal_checks) { | |
import "generic-service" | |
check_command = "check_rittal" | |
/* only set the display_name if provided */ | |
if (config.display_name) { | |
display_name = config.display_name | |
} | |
/* short simple approach: assign all thresholds provided by the config dictionary */ | |
/* | |
vars.rittal_oid = config.rittal_oid | |
vars.rittal_warn = config.rittal_warn | |
vars.rittal_crit = config.rittal_crit | |
*/ | |
/* the shorter programmatic approach: clone the config dictionary and remove unwanted keys */ | |
var cfgvars = config.clone() | |
cfgvars.remove("display_name") | |
vars += cfgvars | |
} | |
template Host "rittal-host" { | |
icon_image = "rittal.png" | |
icon_image_alt = "rittal icon" | |
import "generic-host" | |
} | |
/* Define host group for Rittal devices */ | |
object HostGroup "rittal" { | |
display_name = "Rittal LCP" | |
} | |
/* Define check command for Rittal devices */ | |
object CheckCommand "check_rittal" { | |
import "plugin-check-command" | |
command = [PluginDir + "/check_snmp" ] | |
arguments = { | |
"-H" = { | |
value = "$rittal_address$" | |
description = "Using the IP." | |
} | |
"-o" = { | |
value = "$rittal_oid$" | |
description = "OID" | |
} | |
"-P" = { | |
value = "3" | |
} | |
"-w" = { | |
value = "$rittal_warn$" | |
description = "Warning threshold" | |
} | |
"-c" = { | |
value = "$rittal_crit$" | |
description = "Critical threshold" | |
} | |
"-L" = { | |
value = "authNoPriv" | |
} | |
"-U" = { | |
value="$rittal_user$" | |
description = "SNMPv3 username" | |
} | |
"-a" = { | |
value = "MD5" | |
} | |
"-A" = { | |
value="$rittal_passwd$" | |
description = "SNMPv3 password" | |
} | |
} | |
vars.rittal_address = "$address$" | |
vars.rittal_user = "cmc_user" | |
vars.rittal_passwd = "yoursecretpassword" | |
} | |
/* api output | |
https://localhost:5665/v1/objects/services?filter=match(%22rittal*%22,service.name) | |
{"results":[{"attrs":{"__name":"lcp-example!rittal-cooling-capacity","acknowledgement":0.0,"acknowledgement_expiry":0.0,"action_url":"","active":true,"check_attempt":1.0,"check_command":"check_rittal","check_interval":60.0,"display_name":"Cooling Capacity [watts]","enable_active_checks":true,"enable_event_handler":true,"enable_flapping":false,"enable_notifications":true,"enable_passive_checks":true,"enable_perfdata":true,"flapping":false,"flapping_last_change":1454855343.8231399059,"flapping_negative":1454855343.0,"flapping_positive":0.0,"flapping_threshold":30.0,"force_next_check":false,"force_next_notification":false,"groups":[],"ha_mode":0.0,"host_name":"lcp-example","icon_image":"","icon_image_alt":"","last_check":1454855343.8230309486,"last_check_result":{"active":true,"check_source":"mbmif.int.netways.de","command":["/usr/local/sbin/check_snmp","-A","yoursecretpassword","-H","192.168.1.1","-L","authNoPriv","-P","3","-U","cmc_user","-a","MD5","-c","0:100000","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.93","-w","0:80000"],"execution_end":1454855343.8228991032,"execution_start":1454855337.7738649845,"exit_status":3.0,"output":"External command error: snmpget: Timeout","performance_data":[],"schedule_end":1454855343.8230309486,"schedule_start":1454855397.7700002193,"state":3.0,"type":"CheckResult","vars_after":{"attempt":1.0,"reachable":true,"state":3.0,"state_type":1.0},"vars_before":null},"last_hard_state":3.0,"last_hard_state_change":1454855343.8230309486,"last_in_downtime":false,"last_reachable":true,"last_state":3.0,"last_state_change":1454855308.3344979286,"last_state_critical":0.0,"last_state_ok":0.0,"last_state_type":0.0,"last_state_unknown":0.0,"last_state_unreachable":0.0,"last_state_warning":0.0,"max_check_attempts":5.0,"name":"rittal-cooling-capacity","next_check":1454855457.7699999809,"notes":"","notes_url":"","original_attributes":null,"package":"_etc","paused":false,"retry_interval":30.0,"state":3.0,"state_type":1.0,"templates":["rittal-cooling-capacity","generic-service"],"type":"Service","vars":{"rittal_crit":"0:100000","rittal_oid":".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.93","rittal_warn":"0:80000"},"version":0.0,"volatile":false,"zone":""},"joins":{},"meta":{},"name":"lcp-example!rittal-cooling-capacity","type":"Service"},{"attrs":{"__name":"lcp-example!rittal-fan-speed-103006","acknowledgement":0.0,"acknowledgement_expiry":0.0,"action_url":"","active":true,"check_attempt":1.0,"check_command":"check_rittal","check_interval":60.0,"display_name":"Fan Speed [percent %]","enable_active_checks":true,"enable_event_handler":true,"enable_flapping":false,"enable_notifications":true,"enable_passive_checks":true,"enable_perfdata":true,"flapping":false,"flapping_last_change":1454855355.9791409969,"flapping_negative":1454855355.0,"flapping_positive":0.0,"flapping_threshold":30.0,"force_next_check":false,"force_next_notification":false,"groups":[],"ha_mode":0.0,"host_name":"lcp-example","icon_image":"","icon_image_alt":"","last_check":1454855355.9788329601,"last_check_result":{"active":true,"check_source":"mbmif.int.netways.de","command":["/usr/local/sbin/check_snmp","-A","yoursecretpassword","-H","192.168.1.1","-L","authNoPriv","-P","3","-U","cmc_user","-a","MD5","-c","5:95","-c","5:95","-c","5:95","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.36","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.44","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.52","-w","15:85","-w","15:85","-w","15:85"],"execution_end":1454855355.978441,"execution_start":1454855349.9341349602,"exit_status":3.0,"output":"External command error: snmpget: Timeout","performance_data":[],"schedule_end":1454855355.9788329601,"schedule_start":1454855409.9300000668,"state":3.0,"type":"CheckResult","vars_after":{"attempt":1.0,"reachable":true,"state":3.0,"state_type":1.0},"vars_before":null},"last_hard_state":3.0,"last_hard_state_change":1454855355.9788329601,"last_in_downtime":false,"last_reachable":true,"last_state":3.0,"last_state_change":1454855308.3344979286,"last_state_critical":0.0,"last_state_ok":0.0,"last_state_type":0.0,"last_state_unknown":0.0,"last_state_unreachable":0.0,"last_state_warning":0.0,"max_check_attempts":5.0,"name":"rittal-fan-speed-103006","next_check":1454855409.9300000668,"notes":"","notes_url":"","original_attributes":null,"package":"_etc","paused":false,"retry_interval":30.0,"state":3.0,"state_type":1.0,"templates":["rittal-fan-speed-103006","generic-service"],"type":"Service","vars":{"rittal_crit":["5:95","5:95","5:95"],"rittal_oid":[".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.36",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.44",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.52"],"rittal_warn":["15:85","15:85","15:85"]},"version":0.0,"volatile":false,"zone":""},"joins":{},"meta":{},"name":"lcp-example!rittal-fan-speed-103006","type":"Service"},{"attrs":{"__name":"lcp-example!rittal-fan-speed-123456","acknowledgement":0.0,"acknowledgement_expiry":0.0,"action_url":"","active":true,"check_attempt":1.0,"check_command":"check_rittal","check_interval":60.0,"display_name":"Fan Speed [percent %]","enable_active_checks":true,"enable_event_handler":true,"enable_flapping":false,"enable_notifications":true,"enable_passive_checks":true,"enable_perfdata":true,"flapping":false,"flapping_last_change":1454855341.0375359058,"flapping_negative":1454855341.0,"flapping_positive":0.0,"flapping_threshold":30.0,"force_next_check":false,"force_next_notification":false,"groups":[],"ha_mode":0.0,"host_name":"lcp-example","icon_image":"","icon_image_alt":"","last_check":1454855341.0374319553,"last_check_result":{"active":true,"check_source":"mbmif.int.netways.de","command":["/usr/local/sbin/check_snmp","-A","yoursecretpassword","-H","192.168.1.1","-L","authNoPriv","-P","3","-U","cmc_user","-a","MD5","-c","5:95","-c","5:95","-c","5:95","-c","5:95","-c","5:95","-c","5:95","-o","1.3.6.1.4.1.2606.7.4.2.2.1.11.2.36","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.40","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.44","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.48","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.52","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.56","-w","15:85","-w","15:85","-w","15:85","-w","15:85","-w","15:85","-w","15:85"],"execution_end":1454855341.0373370647,"execution_start":1454855334.9853289127,"exit_status":3.0,"output":"External command error: snmpget: Timeout","performance_data":[],"schedule_end":1454855341.0374319553,"schedule_start":1454855394.9800000191,"state":3.0,"type":"CheckResult","vars_after":{"attempt":1.0,"reachable":true,"state":3.0,"state_type":1.0},"vars_before":null},"last_hard_state":3.0,"last_hard_state_change":1454855341.0374319553,"last_in_downtime":false,"last_reachable":true,"last_state":3.0,"last_state_change":1454855308.3344979286,"last_state_critical":0.0,"last_state_ok":0.0,"last_state_type":0.0,"last_state_unknown":0.0,"last_state_unreachable":0.0,"last_state_warning":0.0,"max_check_attempts":5.0,"name":"rittal-fan-speed-123456","next_check":1454855454.9800000191,"notes":"","notes_url":"","original_attributes":null,"package":"_etc","paused":false,"retry_interval":30.0,"state":3.0,"state_type":1.0,"templates":["rittal-fan-speed-123456","generic-service"],"type":"Service","vars":{"rittal_crit":["5:95","5:95","5:95","5:95","5:95","5:95"],"rittal_oid":["1.3.6.1.4.1.2606.7.4.2.2.1.11.2.36",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.40",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.44",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.48",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.52",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.56"],"rittal_warn":["15:85","15:85","15:85","15:85","15:85","15:85"]},"version":0.0,"volatile":false,"zone":""},"joins":{},"meta":{},"name":"lcp-example!rittal-fan-speed-123456","type":"Service"},{"attrs":{"__name":"lcp-example!rittal-water-air-in-temp","acknowledgement":0.0,"acknowledgement_expiry":0.0,"action_url":"","active":true,"check_attempt":1.0,"check_command":"check_rittal","check_interval":60.0,"display_name":"Air-In Temperature [decigrade C]","enable_active_checks":true,"enable_event_handler":true,"enable_flapping":false,"enable_notifications":true,"enable_passive_checks":true,"enable_perfdata":true,"flapping":false,"flapping_last_change":1454855342.7982869148,"flapping_negative":1454855342.0,"flapping_positive":0.0,"flapping_threshold":30.0,"force_next_check":false,"force_next_notification":false,"groups":[],"ha_mode":0.0,"host_name":"lcp-example","icon_image":"","icon_image_alt":"","last_check":1454855342.7981638908,"last_check_result":{"active":true,"check_source":"mbmif.int.netways.de","command":["/usr/local/sbin/check_snmp","-A","yoursecretpassword","-H","192.168.1.1","-L","authNoPriv","-P","3","-U","cmc_user","-a","MD5","-c","90:300","-c","90:300","-c","90:300","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.7","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.8","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.9","-w","120:250","-w","120:250","-w","120:250"],"execution_end":1454855342.7980070114,"execution_start":1454855336.7532799244,"exit_status":3.0,"output":"External command error: snmpget: Timeout","performance_data":[],"schedule_end":1454855342.7981638908,"schedule_start":1454855396.75,"state":3.0,"type":"CheckResult","vars_after":{"attempt":1.0,"reachable":true,"state":3.0,"state_type":1.0},"vars_before":null},"last_hard_state":3.0,"last_hard_state_change":1454855342.7981638908,"last_in_downtime":false,"last_reachable":true,"last_state":3.0,"last_state_change":1454855308.3344979286,"last_state_critical":0.0,"last_state_ok":0.0,"last_state_type":0.0,"last_state_unknown":0.0,"last_state_unreachable":0.0,"last_state_warning":0.0,"max_check_attempts":5.0,"name":"rittal-water-air-in-temp","next_check":1454855456.75,"notes":"","notes_url":"","original_attributes":null,"package":"_etc","paused":false,"retry_interval":30.0,"state":3.0,"state_type":1.0,"templates":["rittal-water-air-in-temp","generic-service"],"type":"Service","vars":{"rittal_crit":["90:300","90:300","90:300"],"rittal_oid":[".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.7",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.8",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.9"],"rittal_warn":["120:250","120:250","120:250"]},"version":0.0,"volatile":false,"zone":""},"joins":{},"meta":{},"name":"lcp-example!rittal-water-air-in-temp","type":"Service"},{"attrs":{"__name":"lcp-example!rittal-water-air-out-temp","acknowledgement":0.0,"acknowledgement_expiry":0.0,"action_url":"","active":true,"check_attempt":1.0,"check_command":"check_rittal","check_interval":60.0,"display_name":"Air-Out Temperature [decigrade C]","enable_active_checks":true,"enable_event_handler":true,"enable_flapping":false,"enable_notifications":true,"enable_passive_checks":true,"enable_perfdata":true,"flapping":false,"flapping_last_change":1454855363.5689620972,"flapping_negative":1454855363.0,"flapping_positive":0.0,"flapping_threshold":30.0,"force_next_check":false,"force_next_notification":false,"groups":[],"ha_mode":0.0,"host_name":"lcp-example","icon_image":"","icon_image_alt":"","last_check":1454855363.5688340664,"last_check_result":{"active":true,"check_source":"mbmif.int.netways.de","command":["/usr/local/sbin/check_snmp","-A","yoursecretpassword","-H","192.168.1.1","-L","authNoPriv","-P","3","-U","cmc_user","-a","MD5","-c","120:500","-c","120:500","-c","120:500","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.10","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.11","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.12","-w","150:400","-w","150:400","-w","150:400"],"execution_end":1454855363.5686910152,"execution_start":1454855357.5249960423,"exit_status":3.0,"output":"External command error: snmpget: Timeout","performance_data":[],"schedule_end":1454855363.5688340664,"schedule_start":1454855417.5199999809,"state":3.0,"type":"CheckResult","vars_after":{"attempt":1.0,"reachable":true,"state":3.0,"state_type":1.0},"vars_before":null},"last_hard_state":3.0,"last_hard_state_change":1454855363.5688340664,"last_in_downtime":false,"last_reachable":true,"last_state":3.0,"last_state_change":1454855308.3344979286,"last_state_critical":0.0,"last_state_ok":0.0,"last_state_type":0.0,"last_state_unknown":0.0,"last_state_unreachable":0.0,"last_state_warning":0.0,"max_check_attempts":5.0,"name":"rittal-water-air-out-temp","next_check":1454855417.5199999809,"notes":"","notes_url":"","original_attributes":null,"package":"_etc","paused":false,"retry_interval":30.0,"state":3.0,"state_type":1.0,"templates":["rittal-water-air-out-temp","generic-service"],"type":"Service","vars":{"rittal_crit":["120:500","120:500","120:500"],"rittal_oid":[".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.10",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.11",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.12"],"rittal_warn":["150:400","150:400","150:400"]},"version":0.0,"volatile":false,"zone":""},"joins":{},"meta":{},"name":"lcp-example!rittal-water-air-out-temp","type":"Service"},{"attrs":{"__name":"lcp-example!rittal-water-flow-rate","acknowledgement":0.0,"acknowledgement_expiry":0.0,"action_url":"","active":true,"check_attempt":1.0,"check_command":"check_rittal","check_interval":60.0,"display_name":"Water Flow Rate [l/m]","enable_active_checks":true,"enable_event_handler":true,"enable_flapping":false,"enable_notifications":true,"enable_passive_checks":true,"enable_perfdata":true,"flapping":false,"flapping_last_change":1454855391.3641080856,"flapping_negative":0.0,"flapping_positive":0.0,"flapping_threshold":30.0,"force_next_check":false,"force_next_notification":false,"groups":[],"ha_mode":0.0,"host_name":"lcp-example","icon_image":"","icon_image_alt":"","last_check":1454855391.3638589382,"last_check_result":{"active":true,"check_source":"mbmif.int.netways.de","command":["/usr/local/sbin/check_snmp","-A","yoursecretpassword","-H","192.168.1.1","-L","authNoPriv","-P","3","-U","cmc_user","-a","MD5","-c","0:100","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.83","-w","0:80"],"execution_end":1454855391.3636860847,"execution_start":1454855385.3146879673,"exit_status":3.0,"output":"External command error: snmpget: Timeout","performance_data":[],"schedule_end":1454855391.3638589382,"schedule_start":1454855445.3099999428,"state":3.0,"type":"CheckResult","vars_after":{"attempt":1.0,"reachable":true,"state":3.0,"state_type":1.0},"vars_before":{"attempt":1.0,"reachable":true,"state":3.0,"state_type":1.0}},"last_hard_state":3.0,"last_hard_state_change":1454855331.3911020756,"last_in_downtime":false,"last_reachable":true,"last_state":3.0,"last_state_change":1454855308.3344979286,"last_state_critical":0.0,"last_state_ok":0.0,"last_state_type":1.0,"last_state_unknown":1454855391.364068985,"last_state_unreachable":0.0,"last_state_warning":0.0,"max_check_attempts":5.0,"name":"rittal-water-flow-rate","next_check":1454855445.3099999428,"notes":"","notes_url":"","original_attributes":null,"package":"_etc","paused":false,"retry_interval":30.0,"state":3.0,"state_type":1.0,"templates":["rittal-water-flow-rate","generic-service"],"type":"Service","vars":{"rittal_crit":"0:100","rittal_oid":".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.83","rittal_warn":"0:80"},"version":0.0,"volatile":false,"zone":""},"joins":{},"meta":{},"name":"lcp-example!rittal-water-flow-rate","type":"Service"},{"attrs":{"__name":"lcp-example!rittal-water-in-temp","acknowledgement":0.0,"acknowledgement_expiry":0.0,"action_url":"","active":true,"check_attempt":1.0,"check_command":"check_rittal","check_interval":60.0,"display_name":"Water-In Temperature [decigrade C]","enable_active_checks":true,"enable_event_handler":true,"enable_flapping":false,"enable_notifications":true,"enable_passive_checks":true,"enable_perfdata":true,"flapping":false,"flapping_last_change":1454855350.118144989,"flapping_negative":1454855350.0,"flapping_positive":0.0,"flapping_threshold":30.0,"force_next_check":false,"force_next_notification":false,"groups":[],"ha_mode":0.0,"host_name":"lcp-example","icon_image":"","icon_image_alt":"","last_check":1454855350.1179850101,"last_check_result":{"active":true,"check_source":"mbmif.int.netways.de","command":["/usr/local/sbin/check_snmp","-A","yoursecretpassword","-H","192.168.1.1","-L","authNoPriv","-P","3","-U","cmc_user","-a","MD5","-c","50:250","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.65","-w","50:200"],"execution_end":1454855350.1178379059,"execution_start":1454855344.0743460655,"exit_status":3.0,"output":"External command error: snmpget: Timeout","performance_data":[],"schedule_end":1454855350.1179850101,"schedule_start":1454855404.0699999332,"state":3.0,"type":"CheckResult","vars_after":{"attempt":1.0,"reachable":true,"state":3.0,"state_type":1.0},"vars_before":null},"last_hard_state":3.0,"last_hard_state_change":1454855350.1179850101,"last_in_downtime":false,"last_reachable":true,"last_state":3.0,"last_state_change":1454855308.3344979286,"last_state_critical":0.0,"last_state_ok":0.0,"last_state_type":0.0,"last_state_unknown":0.0,"last_state_unreachable":0.0,"last_state_warning":0.0,"max_check_attempts":5.0,"name":"rittal-water-in-temp","next_check":1454855404.0699999332,"notes":"","notes_url":"","original_attributes":null,"package":"_etc","paused":false,"retry_interval":30.0,"state":3.0,"state_type":1.0,"templates":["rittal-water-in-temp","generic-service"],"type":"Service","vars":{"rittal_crit":"50:250","rittal_oid":".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.65","rittal_warn":"50:200"},"version":0.0,"volatile":false,"zone":""},"joins":{},"meta":{},"name":"lcp-example!rittal-water-in-temp","type":"Service"},{"attrs":{"__name":"lcp-example!rittal-water-out-temp","acknowledgement":0.0,"acknowledgement_expiry":0.0,"action_url":"","active":true,"check_attempt":1.0,"check_command":"check_rittal","check_interval":60.0,"display_name":"Water-Out Temperature [decigrade C]","enable_active_checks":true,"enable_event_handler":true,"enable_flapping":false,"enable_notifications":true,"enable_passive_checks":true,"enable_perfdata":true,"flapping":false,"flapping_last_change":1454855391.3641440868,"flapping_negative":0.0,"flapping_positive":0.0,"flapping_threshold":30.0,"force_next_check":false,"force_next_notification":false,"groups":[],"ha_mode":0.0,"host_name":"lcp-example","icon_image":"","icon_image_alt":"","last_check":1454855391.3639190197,"last_check_result":{"active":true,"check_source":"mbmif.int.netways.de","command":["/usr/local/sbin/check_snmp","-A","yoursecretpassword","-H","192.168.1.1","-L","authNoPriv","-P","3","-U","cmc_user","-a","MD5","-c","50:350","-o",".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.74","-w","50:250"],"execution_end":1454855391.3638041019,"execution_start":1454855385.3163859844,"exit_status":3.0,"output":"External command error: snmpget: Timeout","performance_data":[],"schedule_end":1454855391.3639190197,"schedule_start":1454855445.3099999428,"state":3.0,"type":"CheckResult","vars_after":{"attempt":1.0,"reachable":true,"state":3.0,"state_type":1.0},"vars_before":{"attempt":1.0,"reachable":true,"state":3.0,"state_type":1.0}},"last_hard_state":3.0,"last_hard_state_change":1454855331.3911159039,"last_in_downtime":false,"last_reachable":true,"last_state":3.0,"last_state_change":1454855308.3344979286,"last_state_critical":0.0,"last_state_ok":0.0,"last_state_type":1.0,"last_state_unknown":1454855391.3641040325,"last_state_unreachable":0.0,"last_state_warning":0.0,"max_check_attempts":5.0,"name":"rittal-water-out-temp","next_check":1454855445.3099999428,"notes":"","notes_url":"","original_attributes":null,"package":"_etc","paused":false,"retry_interval":30.0,"state":3.0,"state_type":1.0,"templates":["rittal-water-out-temp","generic-service"],"type":"Service","vars":{"rittal_crit":"50:350","rittal_oid":".1.3.6.1.4.1.2606.7.4.2.2.1.11.2.74","rittal_warn":"50:250"},"version":0.0,"volatile":false,"zone":""},"joins":{},"meta":{},"name":"lcp-example!rittal-water-out-temp","type":"Service"}]} | |
*/ | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment