Nagios/Bash – Example Script to Submit Passive Checks

submit_passive_check.sh – Contains functions to easily submit passive Nagios checks.  Very useful for servers that cannot run the NRPE agent.  The only external requirements are curl, awk, and grep which are installed by default on the majority of Linux based distros (ie: CheckPoint Gaia, F5, etc).  A simple example of checking the current CPU load is included at the bottom of the script.