...........................................................................................................................................................................................................................................................................................................................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%PDF-1.5 MRK IS HERE %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 65.108.66.160 / Your IP : 216.73.217.50 Web Server : Apache System : Linux srv16.asso.com.ar 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64 User : alasaweborg ( 1047) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /nagios_install/nrpe-nrpe-4.1.0/startup/ |
Upload File : |
#!/bin/sh
# Start/stop/restart/reload nrpe
# Copyright (c) 2016 Nagios(R) Core(TM) Development Team
NRPE_BIN=/usr/local/nagios/bin/nrpe
NRPE_CFG=/etc/nagios//nrpe.cfg
PID_DIR=/usr/local/nagios/var
PID_FILE=/usr/local/nagios/var/nrpe.pid
# Start nrpe
nrpe_start() {
echo -n "Starting nrpe daemon: $NRPE_BIN - "
if [ ! -d "$PID_DIR" ]; then
mkdir -p "$PID_DIR"
fi
$NRPE_BIN -c $NRPE_CFG -d
if [ $? = 0 ]; then
echo "started"
else
echo "failed"
fi
}
# Stop nrpe
nrpe_stop() {
echo -n "Stopping nrpe daemon - "
if [ -r "$PID_FILE" ]; then
kill $(cat "$PID_FILE")
else
killall nrpe
fi
if [ $? = 0 ]; then
echo "stopped"
else
echo "failed"
fi
}
# Restart nrpe
nrpe_restart() {
nrpe_stop
sleep 1
nrpe_start
}
# Reload nrpe
nrpe_reload() {
echo -n "Reloading nrpe daemon - "
if [ -r "$PID_FILE" ]; then
kill -HUP $(cat "$PID_FILE")
else
killall -HUP nrpe
fi
if [ $? = 0 ]; then
echo "reloaded"
else
echo "failed"
fi
}
# nrpe status
nrpe_status() {
if ps -C nrpe >/dev/null; then
echo "nrpe is running."
else
echo "nrpe is stopped."
fi
}
case "$1" in
'start')
nrpe_start
;;
'stop')
nrpe_stop
;;
'restart')
nrpe_restart
;;
'reload')
nrpe_reload
;;
'status')
nrpe_status
;;
*)
echo "Usage $0 start|stop|restart|reload|status"
;;
esac