1 ###############################################################################
5 ################################################################################
7 ################################################################################
13 # template <templatename>
15 # command_name <commandname>
16 # command_line <commandline>
21 # <templatename> = object name of another command definition that should be
22 # used as a template for this definition (optional)
23 # <objectname> = object name of command definition, referenced by other
24 # command definitions that use it as a template (optional)
25 # <commandname> = name of the command, as recognized/used by Nagios
26 # <commandline> = command line
28 ################################################################################
30 ################################################################################
32 # NOTIFICATION COMMANDS
34 # In PLD Linux we use "nagios-notify" package for notification templates.
35 # See /etc/nagios/plugins/nagios-notify.cfg.
37 ################################################################################
40 # In PLD Linux we have "check-host-alive" command definition in "nagios-plugin-check_ping" package.
41 # See /etc/nagios/plugins/check_ping.cfg.
43 ################################################################################
45 ################################################################################
47 # PERFORMANCE DATA COMMANDS
49 # These are sample performance data commands that can be used to send performance
50 # data output to two text files (one for hosts, another for services). If you
51 # plan on simply writing performance data out to a file, consider using the
52 # host_perfdata_file and service_perfdata_file options in the main config file.
54 ################################################################################
56 # 'process-host-perfdata' command definition
58 command_name process-host-perfdata
59 command_line /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /var/lib/nagios/host-perfdata.out
62 # 'process-service-perfdata' command definition
64 command_name process-service-perfdata
65 command_line /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /var/lib/nagios/service-perfdata.out