added a new hosts

This commit is contained in:
Stephen Smoogen 2017-01-08 21:34:50 +00:00
parent 62d6bac4c1
commit b22761d497
7 changed files with 11 additions and 46 deletions

View file

@ -57,13 +57,6 @@ define command{
command_line /usr/bin/echo '{"type": "$NOTIFICATIONTYPE$", "host": "$HOSTALIAS$", "state": "$HOSTSTATE$", "output": "$HOSTOUTPUT$", "host_ack_author": "$HOSTACKAUTHOR$", "service_ack_author": "$SERVICEACKAUTHOR$"}' | fedmsg-logger --cert-prefix nagios --modname nagios --topic host.state.change --json-input
}
# 'notify-by-epager' command definition
define command{
command_name notify-by-epager
command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nInfo: $SERVICEOUTPUT$\nSource: $$(hostname -s)\nDate: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$
}
# 'notify-by-fedmsg' command definition
define command{
command_name notify-by-fedmsg

View file

@ -4,19 +4,3 @@ define command{
command_line $USER1$/check_ssh -H $HOSTADDRESS$
}
define command {
command_name check_by_ssh_check_raid
command_line $USER1$/check_by_ssh -t 30 -H $HOSTADDRESS$ "$USER1$/check_raid.py"
}
define command {
command_name check_by_ssh_check_disk
command_line $USER1$/check_by_ssh -t 30 -H $HOSTADDRESS$ "$USER1$/check_disk -w $ARG1$% -c $ARG2$% -p $ARG3$"
}
# 'check_postgres_conns' command definition
define command{
command_name check_postgres_conns
command_line $USER1$/check_by_ssh -t 30 -H $HOSTADDRESS$ "$USER1$/check_procs -u postgres -w $ARG1$ -c $ARG2$ -a $ARG3$"
}