Translations of this page:

OS independent examples

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


check DNS MX record

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

  • First parameter: domain which MX record should be checked
  • Second parameter: mail server to serve this mail domain
check_generic -n mx_dns -e "nslookup -querytype=mx $ARG1$ | grep 'mail exchanger' | awk '{print \$6}'"  -c '!~/$ARG2$\./'
projects/check_generic/examples/os_independent.txt · Last modified: 2008/01/14 09:25 by flackem = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0