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