*Change the jenkins/hudson test scripts
[shinken.git] / etc / commands.cfg
blob29da906c0719949600ddba21ac9ca6c6ae72d639
1 #Template and commons things in this file
4 #First : commands
6 #Pollertag is a advanced features for mix architectures. Look at the doc for it.
7 define command{
8         command_name    check_linux_host_alive
9         command_line    $USER1$/check_tcp -H $HOSTADDRESS$ -p 22 -t 3
10         #poller_tag     DMZ
13 #Pollertag is a advanced features for mix architectures. Look at the doc for it.
14 define command{
15         command_name    check_host_alive
16         command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w 1,50% -c 2,70% -p 1
17         #poller_tag     DMZ
21 define command{
22         command_name    check_windows_host_alive
23         command_line    $USER1$/check_tcp -H $HOSTADDRESS$ -p 139 -t 3
24         #poller_tag     DMZ
28 define command{
29         command_name    check_local_disk
30         command_line    $USER1$/check.sh $HOSTADDRESS$ -c $ARG1$ SERVICE $USER1$
34 # Dummy cehck port command
35 define command{
36        command_name     check_port
37        command_line     $USER1$/check.sh $HOSTADDRESS$ -c $ARG1$
40 # Dummy check for mysql, always CRITICAL
41 define command{
42        command_name     check_mysql
43        command_line     $USER1$/check_dummy.sh 2
47 define command{
48         command_name    check_dummy
49         command_line    $USER1$/check_dummy.sh $ARG1$
53 define command{
54         command_name    super_event_kill_everyone
55         command_line    $USER1$/check.sh $HOSTADDRESS$ -c $ARG1$ SERVICE $_HOSTDELLSUCK$
59 # We say Http checks are always OK
60 define command{
61         command_name    check_http
62         command_line    $USER1$/check_dummy.sh 1
65 define command{
66         command_name    check-host-alive
67         command_line    $USER1$/check.sh $HOSTADDRESS$ -c $ARG1$ HOST $_HOSTDELLSUCK$ $SERVICEDESC:srv-1:Service-2$ $SERVICEDESC::Service-30$ $HOSTADDRESS:$  $HOSTGROUPALIAS:linux-servers$
74 #### Now notification commands
75 define command{
76         command_name                    notify-host-by-email
77         command_line                    $USER1$/sendmailhost.pl "$NOTIFICATIONTYPE$" "$HOSTNAME$" "$HOSTSTATE$" "$HOSTADDRESS$" "$HOSTOUTPUT$" "$SHORTDATETIME$" "$CONTACTEMAIL$"
80 define command{
81         command_name                    notify-service-by-email
82         command_line                    $USER1$/sendmailservices.pl "$NOTIFICATIONTYPE$" "$SERVICEDESC$" "$HOSTALIAS$" "$HOSTADDRESS$" "$SERVICESTATE$" "$SHORTDATETIME$" "$SERVICEOUTPUT$" "$CONTACTEMAIL$" "$SERVICENOTESURL$"