Translations of this page:

Nagios configuration example

As you can see, this is fairly straight forward.

The example uses a command file check_multi.cmd and the following output options:

  • 1 - list of services for each severity level
  • 2 - HTML output
  • 4 - STDERR output
  • 8 - performance data

Note: you can provide the sum of the report options as a '+' separated number string

Service definition

define service { 
   name                 multi-service
   use                  generic-service
   check_command        check_multi!-f /usr/local/nagios/etc/check_multi.cmd -r 1+2+4+8
   service_description  check_multi_test
   host_name            localhost 
}

Command definition

define command {
  command_name         check_multi
  command_line         $USER1$/check_multi $ARG1$ $ARG2$ $ARG3$ $ARG4$
}
projects/check_multi/configuration/nagios.txt · Last modified: 2009/12/01 17:19 by flackem
chimeric.de = 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