1 ###############################################################################
4 ################################################################################
6 ################################################################################
12 # template <templatename>
14 # command_name <commandname>
15 # command_line <commandline>
20 # <templatename> = object name of another command definition that should be
21 # used as a template for this definition (optional)
22 # <objectname> = object name of command definition, referenced by other
23 # command definitions that use it as a template (optional)
24 # <commandname> = name of the command, as recognized/used by Nagios
25 # <commandline> = command line
27 ################################################################################
29 ################################################################################
31 # NOTIFICATION COMMANDS
33 # In PLD Linux we use "nagios-notify" package for notification templates.
34 # See /etc/nagios/plugins/nagios-notify.cfg.
36 ################################################################################
39 # In PLD Linux we have "check-host-alive" command definition in "nagios-plugin-check_ping" package.
40 # See /etc/nagios/plugins/check_ping.cfg.
42 ################################################################################
44 ################################################################################
46 # PERFORMANCE DATA COMMANDS
48 # These are sample performance data commands that can be used to send performance
49 # data output to two text files (one for hosts, another for services). If you
50 # plan on simply writing performance data out to a file, consider using the
51 # host_perfdata_file and service_perfdata_file options in the main config file.
53 ################################################################################
55 # 'process-host-perfdata' command definition
57 command_name process-host-perfdata
58 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
61 # 'process-service-perfdata' command definition
63 command_name process-service-perfdata
64 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