{"id":1282,"date":"2009-10-09T22:33:23","date_gmt":"2009-10-10T03:33:23","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=1282"},"modified":"2010-01-25T10:35:50","modified_gmt":"2010-01-25T15:35:50","slug":"monitor-windows-with-nagios","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=1282","title":{"rendered":"Monitor Windows with Nagios"},"content":{"rendered":"<span id=\"Install_Monitoring_Agent_on_Windows\"><h2>Install Monitoring Agent on Windows<\/h2><\/span>\n<p>* Download NSClient++ from <a href=\"http:\/\/sourceforge.net\/projects\/nscplus\/\">http:\/\/sourceforge.net\/projects\/nscplus\/<\/a>.<br \/>\n* Install NSClient++ on the Windows machine as a service. Check &#8220;Allow service to interact with desktop&#8221; on the Logon tab.<br \/>\n* Uncomment and edit c:\\Program Files\\NSClient++\\NSC.ini:<\/p>\n<pre>\r\nFileLogger.dll\r\nCheckSystem.dll\r\nCheckDisk.dll\r\nNSClientListener.dll\r\nNRPEListener.dll\r\nSysTray.dll\r\nCheckEventLog.dll\r\nCheckHelpers.dll\r\nCheckExternalScripts.dll\r\nNSCAAgent.dll\r\nLUAScript.dll\r\nNRPEClient.dll\r\nCheckTaskSched.dll\r\n\r\nuse_file=1\r\nallowed_hosts=192.60.250.134\r\n\r\nport=12489\r\n<\/pre>\n<p>* Start NSClient++ service.<\/p>\n<span id=\"Enable_Nagios_to_Monitor_Windows\"><h2>Enable Nagios to Monitor Windows<\/h2><\/span>\n<p>* Verify check_nt command in \/usr\/local\/nagios\/etc\/objects\/commands.cfg<br \/>\n* Verify windows-server template in \/usr\/local\/nagios\/etc\/objects\/templates.cfg<br \/>\n* Uncomment in \/usr\/local\/nagios\/etc\/nagios.cfg<\/p>\n<pre> cfg_file=\/usr\/local\/nagios\/etc\/objects\/windows.cfg <\/pre>\n<p>* Modify \/usr\/local\/nagios\/etc\/objects\/windows.cfg<br \/>\n&#8211; Global replacement of window-server with the Name of windows box.<br \/>\n&#8211; Add\/Remove services to be monitored.<br \/>\n* If password protection is enabled on NSClient++, edit check_nt command in \/usr\/local\/nagios\/etc\/objects\/commands.cfg file<\/p>\n<pre>\r\ndefine command{\r\ncommand_name\tcheck_nt\r\ncommand_line\t$USER1$\/check_nt -H $HOSTADDRESS$ -p 12489 -s secrete -v $ARG1$ $ARG2$\r\n}<\/pre>\n<p>* Verify config and restart Nagios<\/p>\n<pre>\r\n \/usr\/local\/nagios\/bin\/nagios -v \/usr\/local\/nagios\/etc\/nagios.cfg\r\n\/sbin\/service nagios restart\r\n<\/pre>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p><a href=\"http:\/\/nagios.sourceforge.net\/docs\/3_0\/monitoring-windows.html\">http:\/\/nagios.sourceforge.net\/docs\/3_0\/monitoring-windows.html<\/a><br \/>\n<a href=\"http:\/\/www.thegeekstuff.com\/2008\/07\/how-to-monitor-remote-windows-machine-using-nagios-on-linux\/\">http:\/\/www.thegeekstuff.com\/2008\/07\/how-to-monitor-remote-windows-machine-using-nagios-on-linux\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Monitoring Agent on Windows * Download NSClient++ from http:\/\/sourceforge.net\/projects\/nscplus\/. * Install NSClient++ on the Windows machine as a service. Check &#8220;Allow service to interact with desktop&#8221; on the Logon tab. * Uncomment and edit c:\\Program Files\\NSClient++\\NSC.ini: FileLogger.dll CheckSystem.dll CheckDisk.dll &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=1282\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[61,10],"tags":[],"class_list":["post-1282","post","type-post","status-publish","format-standard","hentry","category-linux","category-winos"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-kG","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1282"}],"version-history":[{"count":3,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1282\/revisions"}],"predecessor-version":[{"id":1432,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1282\/revisions\/1432"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}