{"id":7237,"date":"2023-06-09T09:19:07","date_gmt":"2023-06-09T03:49:07","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=7237"},"modified":"2023-06-09T09:20:07","modified_gmt":"2023-06-09T03:50:07","slug":"how-to-install-and-configure-nsclient-to-monitor-the-windows-server-on-nagios","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-install-and-configure-nsclient-to-monitor-the-windows-server-on-nagios\/","title":{"rendered":"How to install and configure NSClient to monitor the Windows server on Nagios"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Introduction<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">NSClient++ is&nbsp;<em>a monitoring agent\/daemon for Windows systems that works with Nagios. This service allows Nagios to gather the performance metrics<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prerequisites<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Credentials of Windows server<\/li>\n\n\n\n<li>Nagios Host IP address<\/li>\n\n\n\n<li>SSH (sudo) access of Nagios host<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Implementation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 1: Download NSClient from the below link on the Windows server<br><br><a href=\"https:\/\/sourceforge.net\/projects\/nscplus\/\" target=\"_blank\" rel=\"noopener\"><u>https:\/\/sourceforge.net\/projects\/nscplus\/<\/u><\/a><br><br>Step 2: Start the installation process. Click on next<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.25.55-PM.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"765\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.25.55-PM-1024x765.png\" alt=\"\" class=\"wp-image-7238\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.25.55-PM-1024x765.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.25.55-PM-300x224.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.25.55-PM-768x574.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.25.55-PM-402x300.png 402w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.25.55-PM.png 1178w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Step 3: Click on the generic option &gt; Next<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.29.19-PM-1.png\"><img decoding=\"async\" width=\"1024\" height=\"756\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.29.19-PM-1-1024x756.png\" alt=\"\" class=\"wp-image-7240\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.29.19-PM-1-1024x756.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.29.19-PM-1-300x221.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.29.19-PM-1-768x567.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.29.19-PM-1-407x300.png 407w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.29.19-PM-1.png 1190w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 4: Click on custom &gt; Next<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.29.53-PM.png\"><img decoding=\"async\" width=\"1024\" height=\"776\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.29.53-PM-1024x776.png\" alt=\"\" class=\"wp-image-7241\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.29.53-PM-1024x776.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.29.53-PM-300x227.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.29.53-PM-768x582.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.29.53-PM-396x300.png 396w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.29.53-PM.png 1172w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 5: Navigate the program and choose &#8220;will be installed on local hard drive&#8221; then next<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.30.24-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"778\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.30.24-PM-1024x778.png\" alt=\"\" class=\"wp-image-7242\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.30.24-PM-1024x778.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.30.24-PM-300x228.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.30.24-PM-768x584.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.30.24-PM-395x300.png 395w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.30.24-PM.png 1174w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 6: Leave the default path and click on next<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.30.45-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"757\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.30.45-PM-1024x757.png\" alt=\"\" class=\"wp-image-7243\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.30.45-PM-1024x757.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.30.45-PM-300x222.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.30.45-PM-768x568.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.30.45-PM-406x300.png 406w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.30.45-PM.png 1180w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 7: Specify the Nagios host IP and a new strong password. Then enable the NRPE server option and Insecure legacy mode &gt; next<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.31.07-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"801\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.31.07-PM-1024x801.png\" alt=\"\" class=\"wp-image-7244\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.31.07-PM-1024x801.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.31.07-PM-300x235.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.31.07-PM-768x601.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.31.07-PM-383x300.png 383w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.31.07-PM.png 1084w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 8: Click on Install to initiate the installation and finish the installation<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.31.25-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"763\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.31.25-PM-1024x763.png\" alt=\"\" class=\"wp-image-7245\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.31.25-PM-1024x763.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.31.25-PM-300x224.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.31.25-PM-768x572.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.31.25-PM-403x300.png 403w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.31.25-PM.png 1178w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 9: On the Nagios host server, modify the check_nt command definition to include the password and restart the Nagios service<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$ vi \/usr\/local\/nagios\/etc\/objects\/commands.cfg<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Change the definition of the check_nt command to include the -s argument (where PASSWORD is the password you specified on the Windows machine) like this:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">define command{ command_name check_nt command_line $USER1$\/check_nt -H $HOSTADDRESS$ -p 12489 -s PASSWORD -v $ARG1$ $ARG2$ }<br><br><strong>$ service nagios restart<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 10: Edit the hostname and IP to configure the Windows server in Nagios<br><br><strong>$vi \/usr\/local\/nagios\/etc\/objects\/windows.cfg<\/strong><br><br>Note: Type hostname in the command prompt to find the hostname of the Windows server.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.14-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"199\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.14-PM-1024x199.png\" alt=\"\" class=\"wp-image-7246\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.14-PM-1024x199.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.14-PM-300x58.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.14-PM-768x149.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.14-PM-1536x299.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.14-PM-850x165.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.14-PM.png 1646w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 11: Uncomment the windows.cfg file in \/usr\/local\/nagios\/etc\/nagios.cfg<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.39-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"104\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.39-PM-1024x104.png\" alt=\"\" class=\"wp-image-7247\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.39-PM-1024x104.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.39-PM-300x30.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.39-PM-768x78.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.39-PM-1536x155.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.39-PM-850x86.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.39-PM.png 1582w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 12: Verify the Nagios configuration files for any errors and restart Nagios<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$\/usr\/local\/nagios\/bin\/nagios -v \/usr\/local\/nagios\/etc\/nagios.cfg<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.56-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"155\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.56-PM-1024x155.png\" alt=\"\" class=\"wp-image-7248\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.56-PM-1024x155.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.56-PM-300x46.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.56-PM-768x117.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.56-PM-1536x233.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.56-PM-850x129.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.32.56-PM.png 1648w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$service nagios restart<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 13: Edit the nsclient.ini file from the path C:\\Program Files\\NSClient++ in the Windows server as mentioned below<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>============================================================<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># If you want to fill this file with all available options run the following command:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># nscp settings &#8211;generate &#8211;add-defaults &#8211;load-all<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># If you want to activate a module and bring in all its options use:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># nscp settings &#8211;activate-module &lt;MODULE NAME&gt; &#8211;add-defaults<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"># For details run: nscp settings &#8211;help<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; in flight &#8211; TODO<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[\/settings\/default]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; Undocumented key<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">password = password<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; Undocumented key<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">allowed hosts = nagiosIP, 127.0.0.1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">port = 12489<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; in flight &#8211; TODO<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[\/settings\/NRPE\/server]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; Undocumented key<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">verify mode = none<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">allowed ciphers = ALL:!MD5:@STRENGTH<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">use ssl = false<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">performance data = 1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; Undocumented key<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">insecure = true<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; in flight &#8211; TODO<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[\/modules]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; Undocumented key<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CheckExternalScripts = 1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; Undocumented key<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CheckHelpers = 1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; Undocumented key<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CheckEventLog = 1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; Undocumented key<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CheckNSCP = 1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; Undocumented key<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CheckDisk = 1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; Undocumented key<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CheckSystem = 1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; Undocumented key<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">NSClientServer = 1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">; Undocumented key<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">NRPEServer = enabled<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">=============================================================<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 14: Restart the NSClient service in the Windows server. Search service in the search bar and click on service<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.35.23-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"959\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.35.23-PM-1024x959.png\" alt=\"\" class=\"wp-image-7250\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.35.23-PM-1024x959.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.35.23-PM-300x281.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.35.23-PM-768x719.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.35.23-PM-320x300.png 320w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.35.23-PM.png 1198w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 15: Search for the NSClient monitoring agent and click on restart<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.36.10-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"594\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.36.10-PM-1024x594.png\" alt=\"\" class=\"wp-image-7251\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.36.10-PM-1024x594.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.36.10-PM-300x174.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.36.10-PM-768x445.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.36.10-PM-1536x891.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.36.10-PM-517x300.png 517w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.36.10-PM.png 1662w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 16: Check on the Nagios Monitoring Web interface (https:\/\/nagiosip\/nagios) to ensure the Windows server has been added to that list<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.34.22-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"269\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.34.22-PM-1024x269.png\" alt=\"\" class=\"wp-image-7249\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.34.22-PM-1024x269.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.34.22-PM-300x79.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.34.22-PM-768x202.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.34.22-PM-1536x403.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.34.22-PM-850x223.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/06\/Screen-Shot-2023-06-07-at-7.34.22-PM.png 1630w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction NSClient++ is&nbsp;a monitoring agent\/daemon for Windows systems that works with Nagios. This service allows Nagios to gather the performance [&hellip;]<\/p>\n","protected":false},"author":495,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_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},"jetpack_post_was_ever_published":false},"categories":[1019],"tags":[976,35],"class_list":["post-7237","post","type-post","status-publish","format-standard","hentry","category-cloud-aws","tag-nsclient","tag-windows","psol-cat-cloud-aws"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1SJ","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/495"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=7237"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7237\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=7237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=7237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=7237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}