OS independent examples

Note: These examples should work on *nix boxes since they generally make use of Posix commands.

Miscellaneous

check DNS MX record

The following example is kindly provided by coffy from the german Nagios forum:

check_generic -n mx_dns -e "nslookup -querytype=mx $ARG1$ | grep 'mail exchanger' | awk '{print \$6}'"  -c '!~/$ARG2$\./'