~asanjar/charms/trusty/hdp-hadoop/test

« back to all changes in this revision

Viewing changes to hooks/test/hdp_scripts/hdp_manual_install_rpm_helper_files-2.1.1.385/configuration_files/nagios/objects/hadoop-commands.cfg

  • Committer: amir sanjar
  • Date: 2014-07-21 19:53:44 UTC
  • Revision ID: amir.sanjar@canonical.com-20140721195344-a23z0lrebqzhl167
namenode & data node initialization

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
#
3
 
# Licensed to the Apache Software Foundation (ASF) under one
4
 
# or more contributor license agreements.  See the NOTICE file
5
 
# distributed with this work for additional information
6
 
# regarding copyright ownership.  The ASF licenses this file
7
 
# to you under the Apache License, Version 2.0 (the
8
 
# "License"); you may not use this file except in compliance
9
 
# with the License.  You may obtain a copy of the License at
10
 
#
11
 
#   http://www.apache.org/licenses/LICENSE-2.0
12
 
#
13
 
# Unless required by applicable law or agreed to in writing,
14
 
# software distributed under the License is distributed on an
15
 
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
 
# KIND, either express or implied.  See the License for the
17
 
# specific language governing permissions and limitations
18
 
# under the License.
19
 
#
20
 
#
21
 
#
22
 
#
23
 
# 'check_cpu' check remote cpu load
24
 
define command {
25
 
        command_name    check_cpu
26
 
        command_line    $USER1$/check_cpu.pl -H $HOSTADDRESS$ -C hadoop -w $ARG1$ -c $ARG2$
27
 
       }
28
 
 
29
 
# Check data node storage full 
30
 
define command {
31
 
        command_name    check_datanode_storage
32
 
        command_line    php $USER1$/check_datanode_storage.php -h $HOSTADDRESS$ -p $ARG1$ -w $ARG2$ -c $ARG3$
33
 
       }
34
 
 
35
 
define command{
36
 
        command_name    check_hdfs_blocks
37
 
        command_line    php $USER1$/check_hdfs_blocks.php -h $HOSTADDRESS$ -p $ARG1$ -w $ARG2$ -c $ARG3$
38
 
       }
39
 
 
40
 
define command{
41
 
        command_name    check_hdfs_capacity
42
 
        command_line    php $USER1$/check_hdfs_capacity.php -h $HOSTADDRESS$ -p $ARG1$ -w $ARG2$ -c $ARG3$
43
 
       }
44
 
 
45
 
define command{
46
 
        command_name    check_aggregate
47
 
        command_line    php $USER1$/check_aggregate.php -f @STATUS_DAT@ -s 1 -t service -n $ARG1$ -w $ARG2$ -c $ARG3$
48
 
       }
49
 
 
50
 
define command{
51
 
        command_name    check_rpcq_latency
52
 
        command_line    php $USER1$/check_rpcq_latency.php -h $HOSTADDRESS$ -p $ARG2$ -n $ARG1$ -w $ARG3$ -c $ARG4$
53
 
       }
54
 
 
55
 
define command{
56
 
        command_name    check_nagios
57
 
        command_line    $USER1$/check_nagios -e $ARG1$ -F $ARG2$ -C $ARG3$ 
58
 
       }
59
 
 
60
 
define command{
61
 
        command_name    check_webui
62
 
        command_line    $USER1$/check_webui.sh $ARG1$ $HOSTADDRESS$
63
 
       }
64
 
 
65
 
define command{
66
 
        command_name    check_name_dir_status
67
 
        command_line    php $USER1$/check_name_dir_status.php -h $HOSTADDRESS$ -p $ARG1$
68
 
       }
69
 
 
70
 
define command{
71
 
        command_name    check_oozie_status
72
 
        command_line    $USER1$/check_oozie_status.sh $HOSTADDRESS$ $ARG1$ $ARG2$
73
 
       }
74
 
 
75
 
define command{
76
 
        command_name    check_webhcat_status
77
 
        command_line    $USER1$/check_webhcat_status.sh $HOSTADDRESS$ $ARG1$ $ARG2$ 
78
 
       }
79
 
 
80
 
define command{
81
 
        command_name    check_hive_metastore_status
82
 
        command_line    $USER1$/check_hive_metastore_status.sh $HOSTADDRESS$ $ARG1$
83
 
       }
84
 
 
85
 
define command{
86
 
       command_name    check_mapred_local_dir_used_space
87
 
       command_line    $USER1$/check_mapred_local_dir_used.sh $ARG1$ $ARG2$
88
 
       }
89
 
 
90
 
define command{
91
 
        command_name    check_nodemanager_health
92
 
        command_line    $USER1$/check_nodemanager_health.sh $HOSTADDRESS$ $ARG1$
93
 
       }
94
 
 
95
 
define command{
96
 
        command_name    check_resourcemanager_nodes_percentage
97
 
        command_line    $USER1$/check_resourcemanager_nodes_percentage.sh $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
98
 
       }