Install and configure nsclient++ on Windows machine for nagios nrpe based remote monitoring

From Notes_Wiki

Home > Windows > Windows 7 or Vista > Install and configure nsclient++ on Windows machine for nagios nrpe based remote monitoring

Home > CentOS > CentOS 7.x > Monitoring > Nagios > Install and configure nsclient++ on Windows machine for nagios nrpe based remote monitoring

To install nsclient++ for nrpe based remote monitoring of Windows system use following steps:

  1. Download nsclient++ from https://exchange.nagios.org/directory/Addons/Monitoring-Agents/NSClient++/details#_ga=1.97078301.382761490.1485522039 Avoid downloading latest version from http://nsclient.org/download/ as it has different configuration steps then what is mentioned below.
  2. Install the package. Use new configuration file. Fill nagios server IP in allowed hosts and leave password blank. Enable common check plugins, Enable nrpe_server (check_nrpe_ and Enable WMI checks.
  3. Go to "C:\Program Files". Change owner of NSClient++ from System to current user and give full read/write access. We should be able to edit "C:\Program Files\NSClient++\NSC.ini" file.
  4. Edit "C:\Program Files\NSClient++\NSC.ini" as follows
    1. Uncomment 'CheckExternalScripts.dll' line
    2. Ensure that use_file=1 and allowed_hosts=<> has correct IPs of nagios servers. Allowed hosts are provided during package installation.
    3. Under [nrpe] Uncomment port=5666 and Uncomment allow_arguments=1
    4. Under [External Scripts] Uncomment all five lines starting with check_
  5. Stop nsclient++ service using start menu
  6. Start nsclient++ service using start menu
  7. Use "netstat -an" to verify that something is listening on port 5666.
  8. Connect from server using:
    /usr/lib64/nagios/plugins/check_nrpe -H <Windows-IP>
    And things are fine message should appear
  9. Check few internal services using:
    /usr/lib64/nagios/plugins/check_nrpe -H <Windows-IP> -c alias_cpu
    /usr/lib64/nagios/plugins/check_nrpe -H <Windows-IP> -c alias_disk



Home > Windows > Windows 7 or Vista > Install and configure nsclient++ on Windows machine for nagios nrpe based remote monitoring

Home > CentOS > CentOS 7.x > Monitoring > Nagios > Install and configure nsclient++ on Windows machine for nagios nrpe based remote monitoring