Re: SNMP Monitoring a VPN interface that changes
Posted: Tue May 02, 2017 10:47 pm
within your shell script, nagios cares about a few things on output -rjesse wrote:Thanks everyone for the tips and samples, I have a working shell script outside of Nagios, I just need to figure out how to get it working inside Nagios as a plugin, some quick learning for me. I'll post my solution when i get it working.
1. exit code (exit 0)
2. line of text here (echo "OK: TACOS STILL IN FREEZER" | tacos=101) - the first part is the text to be displayed in the nagios page, where as what's after | will be represented as performance data.
3. logic - you need to create logic based on your result somehow to determine what to inform nagios about. exit 0 = ok, exit 1 = warning, exit 2 = critical, exit 3 = unknown. add your echo of text accordingly
good luck!