]> git.pld-linux.org Git - projects/nagios-config.git/blob - commands.cfg
use .xz for archive format
[projects/nagios-config.git] / commands.cfg
1 ###############################################################################
2 # COMMANDS.CFG
3 #
4 ################################################################################
5
6 ################################################################################
7 # COMMAND DEFINITIONS
8 #
9 # SYNTAX:
10 #
11 #   define command {
12 #       template      <templatename>
13 #       name          <objectname>
14 #       command_name  <commandname>
15 #       command_line  <commandline>
16 #   }
17 #
18 # WHERE:
19 #
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
26 #
27 ################################################################################
28
29 ################################################################################
30 #
31 # NOTIFICATION COMMANDS
32 #
33 # In PLD Linux we use "nagios-notify" package for notification templates.
34 # See /etc/nagios/plugins/nagios-notify.cfg.
35
36 ################################################################################
37 #
38 # HOST CHECK COMMANDS
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.
41 #
42 ################################################################################
43
44 ################################################################################
45 #
46 # PERFORMANCE DATA COMMANDS
47 #
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.
52 #
53 ################################################################################
54
55 # 'process-host-perfdata' command definition
56 define command {
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
59 }
60
61 # 'process-service-perfdata' command definition
62 define command {
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
65 }
This page took 0.432352 seconds and 3 git commands to generate.