]> git.pld-linux.org Git - projects/nagios-config.git/blame - commands.cfg
use .xz for archive format
[projects/nagios-config.git] / commands.cfg
CommitLineData
d9fc610a
ER
1###############################################################################
2# COMMANDS.CFG
3#
d9fc610a
ER
4################################################################################
5
6################################################################################
7# COMMAND DEFINITIONS
8#
9# SYNTAX:
10#
70d3f139
ER
11# define command {
12# template <templatename>
13# name <objectname>
14# command_name <commandname>
15# command_line <commandline>
16# }
d9fc610a
ER
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#
ef12d9f6
ER
33# In PLD Linux we use "nagios-notify" package for notification templates.
34# See /etc/nagios/plugins/nagios-notify.cfg.
d9fc610a
ER
35
36################################################################################
37#
38# HOST CHECK COMMANDS
7618a0c6 39# In PLD Linux we have "check-host-alive" command definition in "nagios-plugin-check_ping" package.
197331df 40# See /etc/nagios/plugins/check_ping.cfg.
d9fc610a
ER
41#
42################################################################################
43
d9fc610a
ER
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
197331df 50# plan on simply writing performance data out to a file, consider using the
d9fc610a
ER
51# host_perfdata_file and service_perfdata_file options in the main config file.
52#
53################################################################################
54
55# 'process-host-perfdata' command definition
56define command {
70d3f139
ER
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
d9fc610a
ER
59}
60
61# 'process-service-perfdata' command definition
62define command {
70d3f139
ER
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
d9fc610a 65}
This page took 0.175369 seconds and 4 git commands to generate.