Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
I wrote a script to reload nrpe on OpenBSD. You can easily start nrpe at boot up, but I grew tired of manually killing then launching nrpe each time I updated the nrpe.cfg file
Current Version
0.5
Last Release Date
2012-02-23
Owner
Kirk Hammond
License
GPL
Compatible With
Simple script, download it or copy paste below into your own .sh file.
#!/bin/ksh # Author: Kirk Hammond ([email protected]) # Version 0.5
#Get present npre process ID PID=`ps -aux |grep nrpe |grep -v root | awk '{print $2}'`
#If process ID was found, kill it if [ $PID ] then kill $PID echo "Killed nrpe process with PID $PID" fi
#Restart nrpe service /usr/local/sbin/nrpe -c /etc/nrpe.cfg -d
#Wait for process to start, otherwise PID is null sleep 3
#Get new process ID and echo it to shell NEW=`ps -aux | grep nrpe | grep -v root | awk '{print $2}'` echo "Restarted nrpe with PID $NEW"#
You must be logged in to submit a review.
To:
From: