{"id":38,"date":"2019-05-29T04:02:13","date_gmt":"2019-05-29T04:02:13","guid":{"rendered":"http:\/\/edcint.co.nz\/checkwmiplus\/?page_id=38"},"modified":"2019-06-01T21:56:06","modified_gmt":"2019-06-01T11:56:06","slug":"nagios-host-defintions","status":"publish","type":"page","link":"https:\/\/edcint.co.nz\/checkwmiplus\/documentation\/nagios-host-defintions\/","title":{"rendered":"Nagios Host Defintions"},"content":{"rendered":"<p>You can use these host\/hostgroup definitions to complete your Nagios config if needed.<br \/>\nObviously, you&#8217;ll have to put your own host details in!<\/p>\n<p>###########################################################################<br \/>\n#<br \/>\n# Host Group configuration file<br \/>\n#<br \/>\n###############################################################################<\/p>\n<p>define hostgroup {<br \/>\nhostgroup_name primary_windows<br \/>\nalias Windows Primary Group<br \/>\n}<\/p>\n<p>define hostgroup {<br \/>\nhostgroup_name secondary_windows<br \/>\nalias Windows Secondary Group<br \/>\n}<\/p>\n<p>###############################################################################<br \/>\n#<br \/>\n# Host configuration file<br \/>\n#<br \/>\n###############################################################################<\/p>\n<p>define host {<br \/>\nname windows_host<br \/>\nmax_check_attempts 3<br \/>\ncheck_command check-host-alive ; ====== you&#8217;ll have to define this one<br \/>\npassive_checks_enabled 1<br \/>\ncheck_period 24&#215;7<br \/>\nobsess_over_host 1<br \/>\ncheck_freshness 0<br \/>\nevent_handler_enabled 1<br \/>\nflap_detection_enabled 1<br \/>\nprocess_perf_data 0<br \/>\nretain_status_information 1<br \/>\nretain_nonstatus_information 1<br \/>\ncontact_groups windows_admin ; ====== you&#8217;ll have to define this one<br \/>\nnotification_interval 1440<br \/>\nnotification_period 24&#215;7<br \/>\nnotification_options d,r,f<br \/>\nnotifications_enabled 1<br \/>\nregister 0<br \/>\n}<\/p>\n<p>define host {<br \/>\nuse windows_host<br \/>\nhost_name test1<br \/>\nalias test1<br \/>\naddress 192.168.1.100<br \/>\n}<\/p>\n<p>define host {<br \/>\nuse windows_host<br \/>\nhost_name test2<br \/>\nalias test2<br \/>\naddress 192.168.1.101<br \/>\nhostgroups secondary_windows,primary_windows<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use these host\/hostgroup definitions to complete your Nagios config if needed. Obviously, you&#8217;ll have to put your own host details in! ########################################################################### #&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":37,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-38","page","type-page","status-publish","hentry","category-documentation"],"_links":{"self":[{"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/pages\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":6,"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/pages\/38\/revisions"}],"predecessor-version":[{"id":370,"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/pages\/38\/revisions\/370"}],"up":[{"embeddable":true,"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/pages\/37"}],"wp:attachment":[{"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edcint.co.nz\/checkwmiplus\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}