{"id":314,"date":"2019-05-14T14:04:00","date_gmt":"2019-05-14T14:04:00","guid":{"rendered":"https:\/\/blog.iabsolute.com\/?p=314"},"modified":"2019-05-14T14:04:00","modified_gmt":"2019-05-14T21:04:00","slug":"monitor-multiple-windows-server","status":"publish","type":"post","link":"https:\/\/blog.iabsolute.com\/?p=314","title":{"rendered":"Monitor Multiple windows server"},"content":{"rendered":"\n<p>To monitor multiple windows server using nagios, define multiple hosts in the windows.cfg mentioned in the step#3. For example, your \/usr\/local\/nagios\/etc\/objects\/windows.cfg will looks like the following:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">define host{\nuse  windows-server\nhost_name   remote-windows-host1\nalias  Remote Windows Host1\naddress 192.168.1.4\n}\n\ndefine host{\nuse  windows-server\nhost_name   remote-windows-host2\nalias  Remote Windows Host2\naddress 192.168.1.5\n}<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">----===----<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">&nbsp;got it working, but it took some trial and error. Essentially just making<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">copies of the sample windows.cfg wasn\u2019t working, so I had to comment out<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">everything in copy and start one thing at a time until I got it right.<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">From what I can tell, you need to keep the \u2018hostgroup\u2019 section commented<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">out in all but the first .cfg you make. This will set the hostgroup for<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">the template \u2018windows-servers\u2019, so any other host added that uses that<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">template will automatically be added. I got errors if I included this in<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">the other .cfg\u2019s.\nI think multiple .cfgs, one for each server, is a better way for me to do<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">it, because it will keep them more organized. I support tens of small<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">businesses all over my area and am working to monitor them all over<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">the Internet. This is method just makes more sense to me.\n\nHope this helps, Carlos! Post back with your progress!<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To monitor multiple windows server using nagios, define multiple hosts in the windows.cfg mentioned in the step#3. For example, your \/usr\/local\/nagios\/etc\/objects\/windows.cfg will looks like the following: define host{ use windows-server host_name remote-windows-host1 alias Remote Windows Host1 address 192.168.1.4 } define &hellip; <a href=\"https:\/\/blog.iabsolute.com\/?p=314\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-314","post","type-post","status-publish","format-standard","hentry","category-nagios"],"_links":{"self":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=314"}],"version-history":[{"count":1,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/314\/revisions"}],"predecessor-version":[{"id":315,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/314\/revisions\/315"}],"wp:attachment":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}