Nagios_XI_Service_Control
Nagios_XI_Service_Control
1. Download the NSClient++ installer from the official NSClient++ site: https://nsclient.org/.
2. Install NSClient++ on the Windows machine (10.5.0.78):
- Choose "Generic" during installation.
- Enable the NRPE and NSCA modules during installation.
- Set a secure password when prompted.
2. Configure NSClient++
[/settings/default]
password = YourPasswordHere
[/modules]
CheckExternalScripts = enabled
NRPEListener = enabled
[/settings/NRPE/server]
allow arguments = true
allowed hosts = 10.5.0.82
[/settings/external scripts/scripts]
start_service = cmd /c net start "Siemens License Server"
stop_service = cmd /c net stop "Siemens License Server"
check_service = cmd /c sc query "Siemens License Server" | find "RUNNING"
/usr/local/nagios/libexec/check_nrpe -H 10.5.0.78
Add custom commands in Nagios XI for starting, stopping, and checking the service:
1. Log in to the Nagios XI web interface.
2. Go to Configuration > Commands > Add New Command.
Start Command:
Stop Command:
Check Command:
6. Apply Configuration
7. Optional Troubleshooting