Template for Generic Nagios Plugin | blog.jgriffiths.org

I love nagios it’s the perfect way to monitor linux. Monitoring command can be written in almost any language: nagios expects a exit code and a exit string and it works. I write most of my plugins in bash shell. Here is a generic plugin template: #!/bin/bash # Sanity check if [ $# -ne 2 […]