Restarting Windows Services With NRPE in Nagios XI
Open the Services console under Administrative Tools. Right click the Print Spooler service and select Stop. Wait for the Nagios service to go to a critical
Nagios Enterprises
To test simply force the service to stop on the Linux machine. Execute the following command on your Linux machine: service crond stop. Wait for the Nagios
NRPE DOCUMENTATION
# svcadm disable nrpe && svcadm enable nrpe # smf. # /etc/rc.d/nrpe restart You are now monitoring a new service on the remote host using the NRPE addon.
OpenSwitch OPX Administration Guide Release 2.1.0
25 июл. 2017 г. service. └─930 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -g snmp -I -smux ... Stop service ... nrpe-server stop (code=exited status=0/SUCCESS).
OpenSwitch OPX Administration Guide Release 2.1.0
25 июл. 2017 г. $ service snmpd stop. $ service snmpd status snmpd.service - LSB ... nrpe-server stop (code=exited status=0/SUCCESS). Process: 8345 ExecStart ...
OpenSwitch OPX Administration Guide Release 2.2.0
$ service snmpd stop. $ service snmpd status snmpd.service - LSB: SNMP agents nrpe-server stop (code=exited status=0/SUCCESS). Process: 8345 ExecStart ...
OpenSwitch OPX Administration Guide Release 2.1.0
25 июл. 2017 г. service. └─930 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -g snmp -I -smux ... Stop service ... nrpe-server stop (code=exited status=0/SUCCESS).
OpenSwitch OPX Administration Guide Release 2.3.0
service. └─930 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -g snmp -I -smux Stop service ... nrpe-server stop (code=exited status=0/SUCCESS). Process: 8345 ...
Configuring The Windows Agent NSClient++ for Nagios XI
• How to Restart A Windows Service With NRPE. • Using Scripts / Plugins With NSClient++. Finishing Up. This completes the documentation on configuring the
OpenSwitch OPX Administration Guide Release 3.0.0
August 04 11:39:15 OPX systemd[1]: Started PySNMP agent. Stop service nrpe-server stop (code=exited status=0/SUCCESS). Process: 8345 ExecStart ...
NRPE - How To Uninstall NRPE
10 août 2017 Execute these commands to stop disable and remove the NRPE service
Nagios Enterprises
following command as root to give NRPE permission to restart services: To test simply force the service to stop on the Linux machine.
OpenSwitch OPX Administration Guide Release 2.3.0
opx-config-fanout — enable or disable interface fan-out on a specific port (see nagios-nrpe-server.service - LSB: Start/Stop the Nagios remote plugin ...
Restarting Windows Services With NRPE in Nagios XI
Create A Batch File To Restart The Service. On your windows machine open Notepad and paste in the following code: @echo off net stop %1 net start %1.
OpenSwitch OPX Administration Guide Release 2.1.0
25 juil. 2017 opx-config-fanout — enable or disable interface fan-out on a specific ... nagios-nrpe-server.service - LSB: Start/Stop the Nagios remote ...
Nagios Certified Administrator
If you make any changes to the configuration stop the service and restart it. NRPE on Nagios Server. These instructions pertain to the installation of the
Nagios XI - Installing The Linux Agent
This document describes how to install the Linux NRPE monitoring agent on target RHEL The script will stop to prompt you for the IP address(es) for your ...
Nagios
16 nov. 2009 Nagios. Objets. Objets manipulés par Nagios cf annexe1 pour une description exhaustive de tous les objets cibles du monitoring host service.
Configuring The Windows Agent NSClient++ for Nagios XI
NOTE: You will need to restart the NSClient++ service whenever you make changes The NRPE module allows for more advanced monitoring of the Windows ...
[PDF] Restarting Linux Services With NRPE Nagios Enterprises
This guide will be using a CentOS 6 x Linux server which uses the command service to perform the service restart Configuring NRPE Command
[PDF] Restarting Windows Services With NRPE in Nagios XI
Open the Services console under Administrative Tools Right click the Print Spooler service and select Stop Wait for the Nagios service to go to a critical
[PDF] Configuration NRPE v21
NRPE s'installe en tant que service avec le deamon inetd sur la machine cible Le serveur Nagios se un fichier PDF configure --disable-ssl
NRPE DOCUMENTATION - HEGNER ENGINEERING
4 jan 2017 · When Nagios needs to monitor a resource of service from a remote Linux/Unix machine: • Nagios will execute the check_nrpe plugin and tell it
How to stop and start services - GroundWork 721 Documentation
10 oct 2018 · For most of the services the format of the command starts with /etc/init d/groundwork and includes the and the
nrpe/READMEmd at master · NagiosEnterprises/nrpe - GitHub
Contribute to NagiosEnterprises/nrpe development by creating an account on description: NRPE (Nagios Remote Plugin Executor) service nrpe { disable
Chapter 3 Installing Nagios Remote Plug-in Executor (NRPE)
default: off # description: NRPE (Nagios Remote Plugin Executor) service nrpe { disable = yes socket_type = stream port = 5666 wait = no user = nagios group
[PDF] Download Nagios Tutorial (PDF Version) - Tutorialspoint
Nagios is the most popular continuous monitoring tool It can find and repair problems detected in the infrastructure and stop future
[PDF] Nagios Monitoring and SMS-based Alerts in the University of
Installing NRPE service on Nagios core server Setting the init script in "/etc/init d" directory to run Nagios service: sudo service kannel stop
Check_nrpe for windows - LoriotPro
La commande CheckServiceState permet de vérifier l'état déun service Windows Exemple de vérification que le service myservice est bien en état stop check_nrpe
Purpose
This document describes how to automatically restart problematic services on Linux servers using NRPE.Target Audience
This document is intended for use by Nagios XI Administrators who want to automate starting, stopping, and
restarting of problematic services on their Linux servers. A basic knowledge of NRPE is recommended.Prerequisites
You should already have the NRPE server configured on the Linux machine you would like to restart services
on, please refer to the following documentation:Installing The Nagios XI Linux Agent
Background Information
In this guide you will be shown how to use an event handler to restart a service on a Linux server. This guide
will be using a CentOS 6.x Linux server, which uses the command service to perform the service restart.
Configuring NRPE Command
First we'll create a command in the /usr/local/nagios/etc/nrpe.cfg file that will perform the restart
command. Establish a terminal or SSH session to your Linux server as the root user and execute the following command: vi /usr/local/nagios/etc/nrpe.cfgWhen using the vi editor, to make changes press i on the keyboard first to enter insert mode. Press Esc to
exit insert mode.1295 Bandana Blvd N, St. Paul, MN 55108 sales@nagios.com US: 1-888-624-4671 INTL: 1-651-204-9102
© 2017 Nagios Enterprises, LLC. All rights reserved. Nagios, the Nagios logo, and Nagios graphics are the servicemarks, trademarks, or
registered trademarks owned by Nagios Enterprises. All other servicemarks and trademarks are the property of their respective owner.www.nagios.com
Page 1 / 9
Updated - May, 2019Nagios XIThe Industry Standard In Infrastructure MonitoringRestarting Linux Services With NRPE
Go to the end of the file by pressing Shift + G and add the following line: command[service_restart]=sudo service $ARG1$ restart 2>&1 When you have finished, save the changes in vi by typing: :wq and press Enter. Remain logged into your Linux server as you'll need to perform more steps.Granting NRPE Permission to Restart Services
The nagios user will also need to be granted permissions to execute the service command. Execute the following command as root to give NRPE permission to restart services: echo "nagios ALL = NOPASSWD: `which service`" >> /etc/sudoersIt's very important to use the back-tick key on your keyboard around the `which service` words above,
this key is commonly located to the left of the 1 key.Testing the Commands from Nagios XI Server
Now we will test from the Nagios XI server that the command you just added to the NRPE client on the Linux
server is working. This example is going to restart the crond service as it is unlikely to cause any issues.
Establish a terminal session to your Nagios XI server and execute the following command: /usr/local/nagios/libexec/check_nrpe -H 10.25.13.34 -p 5666 -c service_restart -a crond1295 Bandana Blvd N, St. Paul, MN 55108 sales@nagios.com US: 1-888-624-4671 INTL: 1-651-204-9102
© 2017 Nagios Enterprises, LLC. All rights reserved. Nagios, the Nagios logo, and Nagios graphics are the servicemarks, trademarks, or
registered trademarks owned by Nagios Enterprises. All other servicemarks and trademarks are the property of their respective owner.www.nagios.com
Page 2 / 9
Updated - May, 2019Nagios XIThe Industry Standard In Infrastructure MonitoringRestarting Linux Services With NRPE
You can see from the screenshot on the previous page that we received back the results from the service_restart command, it appears to be working.Create Event Handler Script
Next we need to create a script that will be used by Nagios XI for the event handler. The script will be called
service_restart.sh and will be located in the /usr/local/nagios/libexec/ directory on the NagiosXI server. Execute the following command:
vi /usr/local/nagios/libexec/service_restart.shPaste the following into the terminal session:
#!/bin/sh case "$1" in OK)WARNING)
UNKNOWN)
CRITICAL)
/usr/local/nagios/libexec/check_nrpe -H "$2" -p 5666 -c service_restart -a "$3" esac exit 0 When you have finished, save the changes in vi by typing: :wq and press Enter.1295 Bandana Blvd N, St. Paul, MN 55108 sales@nagios.com US: 1-888-624-4671 INTL: 1-651-204-9102
© 2017 Nagios Enterprises, LLC. All rights reserved. Nagios, the Nagios logo, and Nagios graphics are the servicemarks, trademarks, or
registered trademarks owned by Nagios Enterprises. All other servicemarks and trademarks are the property of their respective owner.www.nagios.com
Page 3 / 9
Updated - May, 2019Nagios XIThe Industry Standard In Infrastructure MonitoringRestarting Linux Services With NRPE
Now execute the following commands to set the correction permissions: chown apache:nagios /usr/local/nagios/libexec/service_restart.sh chmod 775 /usr/local/nagios/libexec/service_restart.sh You can now test the script works by executing the following command: /usr/local/nagios/libexec/service_restart.sh CRITICAL 10.25.13.34 crondWhen the script is run, it receives three arguments which are referenced as $1, $2, $3 in the script.
$1 = The state of the service. $2 = The host address of the Linux server. $3 = The name of the service being restarted. You can see from the script above that it's only when the service is in a CRITICAL state that the service_restart command will be executed.Create Event Handler
Now an event handler on the Nagios XI server will be created which will be used by your services.Navigate to Configure > Core Config Manager.
Select Commands from the list on the left, click the >_ Commands link and then click the Add New button.
You will need to populate the fields with the values on the following page:1295 Bandana Blvd N, St. Paul, MN 55108 sales@nagios.com US: 1-888-624-4671 INTL: 1-651-204-9102
© 2017 Nagios Enterprises, LLC. All rights reserved. Nagios, the Nagios logo, and Nagios graphics are the servicemarks, trademarks, or
registered trademarks owned by Nagios Enterprises. All other servicemarks and trademarks are the property of their respective owner.www.nagios.com
Page 4 / 9
Updated - May, 2019Nagios XIThe Industry Standard In Infrastructure MonitoringRestarting Linux Services With NRPE
Command
Service Restart - Linux
Command line
$USER1$/service_restart.sh $SERVICESTATE$ $HOSTADDRESS$ $_SERVICESERVICE$Command type
misc commandCheck the Active check box.
Click the Save button and then Apply
Configuration.
Adding a Service Check
Now we will need to create a Service using the Linux Server Monitoring Wizard. This guide will not go into the
entire steps required, please refer to the steps in the following documentation:Monitoring Hosts Using NRPE
On Step 2 of the wizard you need to select
the crond service from the list of Services.Finish the wizard to create the new service.
1295 Bandana Blvd N, St. Paul, MN 55108 sales@nagios.com US: 1-888-624-4671 INTL: 1-651-204-9102
© 2017 Nagios Enterprises, LLC. All rights reserved. Nagios, the Nagios logo, and Nagios graphics are the servicemarks, trademarks, or
registered trademarks owned by Nagios Enterprises. All other servicemarks and trademarks are the property of their respective owner.www.nagios.com
Page 5 / 9
Updated - May, 2019Nagios XIThe Industry Standard In Infrastructure MonitoringRestarting Linux Services With NRPE
Update Service With Event Handler
Now that the Nagios service is created we need to do two things: •Select Event Handler•Add the name of the service we want to restart as a custom variable to the service object. This is how the
event handler knows what the name of the service is to restart. Navigate to Configure > Core Config Manager > Monitoring > Services. Click the service Cron Scheduling Daemon to edit the service.Click the Check Settings tab.
From the Event handler drop
down list select the optionService Restart - Linux.
For Event handler enabled
click On.Click the Misc Settings tab and then click
the Manage Free Variables button.1295 Bandana Blvd N, St. Paul, MN 55108 sales@nagios.com US: 1-888-624-4671 INTL: 1-651-204-9102
© 2017 Nagios Enterprises, LLC. All rights reserved. Nagios, the Nagios logo, and Nagios graphics are the servicemarks, trademarks, or
registered trademarks owned by Nagios Enterprises. All other servicemarks and trademarks are the property of their respective owner.www.nagios.com
Page 6 / 9
Updated - May, 2019Nagios XIThe Industry Standard In Infrastructure MonitoringRestarting Linux Services With NRPE
We will be adding a custom variable so that the event handler knows the name of the service to restart.
Name: _SERVICEValue:
crond Click Insert and the variable will be added to the list on the right. Click the Close button and then click the Save button. Click Apply Configuration for the changes to take affect. In the event handler command you created, you can see the macro $_SERVICESERVICE$ was used. This ishow a service macro is referenced by the Nagios Core engine. More information on custom variables can be
found here:1295 Bandana Blvd N, St. Paul, MN 55108 sales@nagios.com US: 1-888-624-4671 INTL: 1-651-204-9102
© 2017 Nagios Enterprises, LLC. All rights reserved. Nagios, the Nagios logo, and Nagios graphics are the servicemarks, trademarks, or
registered trademarks owned by Nagios Enterprises. All other servicemarks and trademarks are the property of their respective owner.www.nagios.com
Page 7 / 9
Updated - May, 2019Nagios XIThe Industry Standard In Infrastructure MonitoringRestarting Linux Services With NRPE
TestTo test simply force the service to stop on the Linux machine. Execute the following command on your Linux
machine: service crond stopWait for the Nagios service to go to a critical state or force the next check. Once the Nagios XI Cron
Scheduling Daemon service is in a critical state the event handler will be executed and the Linux crond
service will be restarted. The next time Nagios XI checks the Cron Scheduling Daemon service it will return
to an OK state as the Linux crond service will now be running.Troubleshooting
If the event handler does not appear to be working as expected, check the /usr/local/nagios/var/nagios.log file for any errors, for example: [1481763272] SERVICE ALERT: 10.25.13.34;Cron Scheduling Daemon;CRITICAL;SOFT;1;crond is stopped [1481763272] wproc: SERVICE EVENTHANDLER job 7 from worker Core Worker 12627 is a non-check helper but exited with return code 13 [1481763272] wproc: early_timeout=0; exited_ok=1; wait_status=3328; error_code=0; [1481763272] wproc: stderr line 01: execvp(/usr/local/nagios/libexec/service_restart.sh, ...) failed. Errno is 13: Permission deniedIn the log entries above you can see that the worker reported that it did not have permission to execute the
service_restart.sh command. If the command returns "NRPE: Unable to read output" when run manually, make sure that NRPE command definition redirects stderr to stdout; i.e., change command[service_restart]=sudo service $ARG1$ restart to command[service_restart]=sudo service $ARG1$ restart 2>&11295 Bandana Blvd N, St. Paul, MN 55108 sales@nagios.com US: 1-888-624-4671 INTL: 1-651-204-9102
© 2017 Nagios Enterprises, LLC. All rights reserved. Nagios, the Nagios logo, and Nagios graphics are the servicemarks, trademarks, or
registered trademarks owned by Nagios Enterprises. All other servicemarks and trademarks are the property of their respective owner.www.nagios.com
Page 8 / 9
Updated - May, 2019Nagios XIThe Industry Standard In Infrastructure MonitoringRestarting Linux Services With NRPE
Finishing Up
This completes the documentation on how to restart Linux services with NRPE and Nagios XI.If you have additional questions or other support related questions, please visit us at our Nagios Support
Forums:
https://support.nagios.com/forum The Nagios Support Knowledgebase is also a great support resource: https://support.nagios.com/kb1295 Bandana Blvd N, St. Paul, MN 55108 sales@nagios.com US: 1-888-624-4671 INTL: 1-651-204-9102
© 2017 Nagios Enterprises, LLC. All rights reserved. Nagios, the Nagios logo, and Nagios graphics are the servicemarks, trademarks, or
registered trademarks owned by Nagios Enterprises. All other servicemarks and trademarks are the property of their respective owner.www.nagios.com
Page 9 / 9
Updated - May, 2019Nagios XIThe Industry Standard In Infrastructure MonitoringRestarting Linux Services With NRPE
quotesdbs_dbs20.pdfusesText_26[PDF] storage class program example
[PDF] storage classes in c
[PDF] storage classes in c language
[PDF] storage classes in c pdf
[PDF] storage of hand sanitizer
[PDF] storage of pointer in c
[PDF] stored procedure in sql server in depth
[PDF] stored procedure sql w3
[PDF] stories with dialogue conversation pdf
[PDF] story elements activities
[PDF] story elements worksheet pdf
[PDF] story fun for flyers pdf
[PDF] straight line equation calculator
[PDF] strands of art