put in the first run at new nagios configs
This commit is contained in:
parent
a1957d29d4
commit
8cf72ff116
310 changed files with 13255 additions and 26 deletions
8
roles/nagios_server/files/nagios/commands/bzr.cfg
Normal file
8
roles/nagios_server/files/nagios/commands/bzr.cfg
Normal file
|
@ -0,0 +1,8 @@
|
|||
# 'check_bzr' command definition
|
||||
# I'd like this to actually interact with BZR, but I can't find any
|
||||
# proper documentation on the protocol to craft send/expect/quit
|
||||
# strings.
|
||||
define command{
|
||||
command_name check_bzr
|
||||
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 4155
|
||||
}
|
15
roles/nagios_server/files/nagios/commands/disk.cfg
Normal file
15
roles/nagios_server/files/nagios/commands/disk.cfg
Normal file
|
@ -0,0 +1,15 @@
|
|||
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$"
|
||||
}
|
11
roles/nagios_server/files/nagios/commands/dns.cfg
Normal file
11
roles/nagios_server/files/nagios/commands/dns.cfg
Normal file
|
@ -0,0 +1,11 @@
|
|||
# 'check_dns' command definition
|
||||
define command{
|
||||
command_name check_dns
|
||||
command_line $USER1$/check_dns -H www.yahoo.com -s $HOSTADDRESS$
|
||||
}
|
||||
|
||||
# 'check_dns_fpo' command definition
|
||||
define command{
|
||||
command_name check_dns_fpo
|
||||
command_line $USER1$/check_dns -t 30 -H fedoraproject.org -A -s $HOSTADDRESS$
|
||||
}
|
8
roles/nagios_server/files/nagios/commands/git.cfg
Normal file
8
roles/nagios_server/files/nagios/commands/git.cfg
Normal file
|
@ -0,0 +1,8 @@
|
|||
# 'check_git' command definition
|
||||
# I'd like this to actually interact with GIT, but I can't find any
|
||||
# proper documentation on the protocol to craft send/expect/quit
|
||||
# strings.
|
||||
define command{
|
||||
command_name check_git
|
||||
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 9418
|
||||
}
|
79
roles/nagios_server/files/nagios/commands/httpd.cfg
Normal file
79
roles/nagios_server/files/nagios/commands/httpd.cfg
Normal file
|
@ -0,0 +1,79 @@
|
|||
##
|
||||
## This file has the commands to check and restart general httpd services
|
||||
## and websites.
|
||||
##
|
||||
|
||||
################################################################################
|
||||
# COMMAND DEFINITIONS
|
||||
#
|
||||
# SYNTAX:
|
||||
#
|
||||
# define command{
|
||||
# template <templatename>
|
||||
# name <objectname>
|
||||
# command_name <commandname>
|
||||
# command_line <commandline>
|
||||
# }
|
||||
#
|
||||
# WHERE:
|
||||
#
|
||||
# <templatename> = object name of another command definition that should be
|
||||
# used as a template for this definition (optional)
|
||||
# <objectname> = object name of command definition, referenced by other
|
||||
# command definitions that use it as a template (optional)
|
||||
# <commandname> = name of the command, as recognized/used by Nagios
|
||||
# <commandline> = command line
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# 'reload httpd'
|
||||
define command {
|
||||
command_name restart_httpd
|
||||
command_line $USER1$/restart_httpd $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $HOSTADDRESS$ "$HOSTALIAS$" "$SERVICEDESC$" "$SERVICESTATE$"
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# 'check_website_publiclist' command definition
|
||||
define command{
|
||||
command_name check_website_publiclist
|
||||
command_line $USER1$/check_http -w 60 -c 80 -I $HOSTADDRESS$ -H $ARG1$ -u "$ARG2$" -s "$ARG3$"
|
||||
}
|
||||
|
||||
# 'check_website' command definition
|
||||
define command{
|
||||
command_name check_website
|
||||
command_line $USER1$/check_http -w 30 -c 40 -I $HOSTADDRESS$ -H $ARG1$ -u "$ARG2$" -s "$ARG3$"
|
||||
}
|
||||
|
||||
define command{
|
||||
command_name check_website_ppc
|
||||
command_line $USER1$/check_http -w 300 -c 400 -I $HOSTADDRESS$ -H $ARG1$ -u "$ARG2$" -s "$ARG3$"
|
||||
}
|
||||
|
||||
define command{
|
||||
command_name check_website_ssl
|
||||
command_line $USER1$/check_http -w 30 -c 40 --ssl -I $HOSTADDRESS$ -H $ARG1$ -u $ARG2$ -s "$ARG3$"
|
||||
}
|
||||
|
||||
define command{
|
||||
command_name check_ssl_cert
|
||||
command_line $USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$ -C $ARG2$
|
||||
}
|
||||
|
||||
define command{
|
||||
command_name check_website_publiclist_ssl
|
||||
command_line $USER1$/check_http -w 40 -c 60 --ssl -I $HOSTADDRESS$ -H $ARG1$ -u $ARG2$ -s "$ARG3$"
|
||||
}
|
||||
|
||||
# 'check_http' command definition
|
||||
define command{
|
||||
command_name check_http
|
||||
command_line $USER1$/check_http -H $HOSTADDRESS$
|
||||
}
|
||||
|
||||
# 'check_https' command definition
|
||||
define command{
|
||||
command_name check_https
|
||||
command_line $USER1$/check_http -H $HOSTADDRESS$ --ssl
|
||||
}
|
29
roles/nagios_server/files/nagios/commands/koji.cfg
Normal file
29
roles/nagios_server/files/nagios/commands/koji.cfg
Normal file
|
@ -0,0 +1,29 @@
|
|||
################################################################################
|
||||
# COMMAND DEFINITIONS
|
||||
#
|
||||
# SYNTAX:
|
||||
#
|
||||
# define command{
|
||||
# template <templatename>
|
||||
# name <objectname>
|
||||
# command_name <commandname>
|
||||
# command_line <commandline>
|
||||
# }
|
||||
#
|
||||
# WHERE:
|
||||
#
|
||||
# <templatename> = object name of another command definition that should be
|
||||
# used as a template for this definition (optional)
|
||||
# <objectname> = object name of command definition, referenced by other
|
||||
# command definitions that use it as a template (optional)
|
||||
# <commandname> = name of the command, as recognized/used by Nagios
|
||||
# <commandline> = command line
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# 'check_koji'
|
||||
define command{
|
||||
command_name check_koji
|
||||
command_line $USER1$/check_koji
|
||||
}
|
||||
|
36
roles/nagios_server/files/nagios/commands/local.cfg
Normal file
36
roles/nagios_server/files/nagios/commands/local.cfg
Normal file
|
@ -0,0 +1,36 @@
|
|||
# 'check_local_disk' command definition
|
||||
define command{
|
||||
command_name check_local_disk
|
||||
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
|
||||
}
|
||||
|
||||
# 'check_local_load' command definition
|
||||
define command{
|
||||
command_name check_local_load
|
||||
command_line $USER1$/check_load -w $ARG1$ -c $ARG2$
|
||||
}
|
||||
|
||||
# 'check_local_procs' command definition
|
||||
define command{
|
||||
command_name check_local_procs
|
||||
command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
|
||||
}
|
||||
|
||||
# 'check_local_users' command definition
|
||||
define command{
|
||||
command_name check_local_users
|
||||
command_line $USER1$/check_users -w $ARG1$ -c $ARG2$
|
||||
}
|
||||
|
||||
# 'check_local_swap' command definition
|
||||
define command{
|
||||
command_name check_local_swap
|
||||
command_line $USER1$/check_swap -w $ARG1$ -c $ARG2$
|
||||
}
|
||||
|
||||
# 'check_local_mrtgtraf' command definition
|
||||
define command{
|
||||
command_name check_local_mrtgtraf
|
||||
command_line $USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$
|
||||
}
|
||||
|
96
roles/nagios_server/files/nagios/commands/misc.cfg
Normal file
96
roles/nagios_server/files/nagios/commands/misc.cfg
Normal file
|
@ -0,0 +1,96 @@
|
|||
################################################################################
|
||||
# COMMAND DEFINITIONS
|
||||
#
|
||||
# SYNTAX:
|
||||
#
|
||||
# define command{
|
||||
# template <templatename>
|
||||
# name <objectname>
|
||||
# command_name <commandname>
|
||||
# command_line <commandline>
|
||||
# }
|
||||
#
|
||||
# WHERE:
|
||||
#
|
||||
# <templatename> = object name of another command definition that should be
|
||||
# used as a template for this definition (optional)
|
||||
# <objectname> = object name of command definition, referenced by other
|
||||
# command definitions that use it as a template (optional)
|
||||
# <commandname> = name of the command, as recognized/used by Nagios
|
||||
# <commandline> = command line
|
||||
#
|
||||
################################################################################
|
||||
|
||||
define command{
|
||||
command_name true
|
||||
command_line /bin/true
|
||||
}
|
||||
|
||||
define command{
|
||||
command_name check_dummy
|
||||
command_line $USER1$/check_dummy $ARG1$ $ARG2$
|
||||
}
|
||||
|
||||
# 'check_tape'
|
||||
define command{
|
||||
command_name check_tape
|
||||
command_line $USER1$/check_tape
|
||||
}
|
||||
|
||||
# 'check_ftp' command definition
|
||||
define command{
|
||||
command_name check_ftp
|
||||
command_line $USER1$/check_ftp -H $HOSTADDRESS$
|
||||
}
|
||||
|
||||
|
||||
# 'check_hpjd' command definition
|
||||
define command{
|
||||
command_name check_hpjd
|
||||
command_line $USER1$/check_hpjd -H $HOSTADDRESS$ -C public
|
||||
}
|
||||
|
||||
# 'check_snmp' command definition
|
||||
define command{
|
||||
command_name check_snmp
|
||||
command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
|
||||
}
|
||||
|
||||
|
||||
# 'check_nntp' command definition
|
||||
define command{
|
||||
command_name check_nntp
|
||||
command_line $USER1$/check_nntp -H $HOSTADDRESS$
|
||||
}
|
||||
|
||||
|
||||
# 'check_telnet' command definition
|
||||
define command{
|
||||
command_name check_telnet
|
||||
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 23
|
||||
}
|
||||
|
||||
# 'check_dhcp' command definition
|
||||
define command{
|
||||
command_name check_dhcp
|
||||
command_line $USER1$/check_dhcp $ARG1$
|
||||
}
|
||||
|
||||
# 'check_pop' command definition
|
||||
define command{
|
||||
command_name check_pop
|
||||
command_line $USER1$/check_pop -H $HOSTADDRESS$
|
||||
}
|
||||
|
||||
# 'check_imap' command definition
|
||||
define command{
|
||||
command_name check_imap
|
||||
command_line $USER1$/check_imap -H $HOSTADDRESS$ $ARG1$
|
||||
}
|
||||
|
||||
# 'check_nt' command definition
|
||||
define command{
|
||||
command_name check_nt
|
||||
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
|
||||
}
|
||||
|
87
roles/nagios_server/files/nagios/commands/notify.cfg
Normal file
87
roles/nagios_server/files/nagios/commands/notify.cfg
Normal file
|
@ -0,0 +1,87 @@
|
|||
################################################################################
|
||||
#
|
||||
# SAMPLE NOTIFICATION COMMANDS
|
||||
#
|
||||
# These are some example notification commands. They may or may not work on
|
||||
# your system without modification. As an example, some systems will require
|
||||
# you to use "/usr/bin/mailx" instead of "/usr/bin/mail" in the commands below.
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# 'host-notify-by-email' command definition
|
||||
define command{
|
||||
command_name host-notify-by-email
|
||||
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\nSource: $$(hostname)\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
|
||||
}
|
||||
|
||||
# 'notify-service-by-email' command definition
|
||||
define command{
|
||||
command_name notify-service-by-email
|
||||
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
|
||||
}
|
||||
|
||||
# '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$
|
||||
}
|
||||
|
||||
|
||||
# 'host-notify-by-epager' command definition
|
||||
define command{
|
||||
command_name host-notify-by-epager
|
||||
command_line /usr/bin/printf "%b" "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $HOSTOUTPUT$\nSource: $$(hostname -s)\nTime: $LONGDATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$" $CONTACTPAGER$
|
||||
}
|
||||
|
||||
# 'host-notify-by-ircbot' command definition
|
||||
define command{
|
||||
command_name host-notify-by-ircbot
|
||||
command_line /usr/bin/printf "%b" "#fedora-noc $NOTIFICATIONTYPE$ - $HOSTALIAS$ is $HOSTSTATE$: $HOSTOUTPUT$ ($$(hostname -s)) $HOSTACKAUTHOR$ $SERVICEACKAUTHOR$" | /usr/local/bin/irc-colorize.py | nc -w 1 value01 5050
|
||||
}
|
||||
|
||||
# 'notify-by-email' command definition
|
||||
define command{
|
||||
command_name notify-by-email
|
||||
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nSource: $$(hostname)\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
|
||||
}
|
||||
|
||||
# 'notify-by-ircbot' command definition
|
||||
define command{
|
||||
command_name notify-by-ircbot
|
||||
command_line /usr/bin/printf "%b" "#fedora-noc $NOTIFICATIONTYPE$ - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$: $SERVICEOUTPUT$ ($$(hostname -s)) $HOSTACKAUTHOR$ $SERVICEACKAUTHOR$" | /usr/local/bin/irc-colorize.py | nc -w 1 value01 5050
|
||||
}
|
||||
|
||||
# 'host-notify-by-fedmsg' command definition
|
||||
define command{
|
||||
command_name host-notify-by-fedmsg
|
||||
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
|
||||
command_line /usr/bin/echo '{"type": "$NOTIFICATIONTYPE$", "host": "$HOSTALIAS$", "state": "$SERVICESTATE$", "service": "$SERVICEDESC$", "output": "$SERVICEOUTPUT$", "host_ack_author": "$HOSTACKAUTHOR$", "service_ack_author": "$SERVICEACKAUTHOR$"}' | fedmsg-logger --cert-prefix nagios --modname nagios --topic service.state.change --json-input
|
||||
}
|
||||
|
||||
# 'notify-by-xmpp' command definition
|
||||
define command{
|
||||
command_name notify-by-xmpp
|
||||
command_line /usr/local/bin/xmppsend -a /etc/nagios/private/xmppnagios.ini "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$" $CONTACTEMAIL$
|
||||
}
|
||||
|
||||
|
||||
# 'host-notify-by-xmpp' command definition
|
||||
define command{
|
||||
command_name host-notify-by-xmpp
|
||||
command_line /usr/local/bin/xmppsend -a /etc/nagios/private/xmppnagios.ini "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $HOSTOUTPUT$\nDate: $LONGDATETIME$" $CONTACTEMAIL$
|
||||
}
|
||||
|
||||
|
||||
|
17
roles/nagios_server/files/nagios/commands/nrpe.cfg
Normal file
17
roles/nagios_server/files/nagios/commands/nrpe.cfg
Normal file
|
@ -0,0 +1,17 @@
|
|||
# 'test nrpe'
|
||||
define command{
|
||||
command_name test_nrpe
|
||||
command_line $USER1$/check_nrpe -t 30 -H $HOSTADDRESS$
|
||||
|
||||
}
|
||||
# 'check by nrpe'
|
||||
define command{
|
||||
command_name check_by_nrpe
|
||||
command_line $USER1$/check_nrpe -t 30 -H $HOSTADDRESS$ -c $ARG1$
|
||||
}
|
||||
|
||||
# 'check-host-alive-nrpe' is better for hosts that are on vpn.
|
||||
define command{
|
||||
command_name check-host-alive-nrpe
|
||||
command_line $USER1$/check_nrpe -t 30 -H $HOSTADDRESS$
|
||||
}
|
26
roles/nagios_server/files/nagios/commands/perfdata.cfg
Normal file
26
roles/nagios_server/files/nagios/commands/perfdata.cfg
Normal file
|
@ -0,0 +1,26 @@
|
|||
################################################################################
|
||||
#
|
||||
# SAMPLE PERFORMANCE DATA COMMANDS
|
||||
#
|
||||
# These are sample performance data commands that can be used to send performance
|
||||
# data output to two text files (one for hosts, another for services). If you
|
||||
# plan on simply writing performance data out to a file, consider using the
|
||||
# host_perfdata_file and service_perfdata_file options in the main config file.
|
||||
#
|
||||
################################################################################
|
||||
|
||||
|
||||
# 'process-host-perfdata' command definition
|
||||
define command{
|
||||
command_name process-host-perfdata
|
||||
command_line /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /var/log/nagios/host-perfdata.out
|
||||
}
|
||||
|
||||
|
||||
# 'process-service-perfdata' command definition
|
||||
define command{
|
||||
command_name process-service-perfdata
|
||||
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/log/nagios/service-perfdata.out
|
||||
}
|
||||
|
||||
|
31
roles/nagios_server/files/nagios/commands/ping.cfg
Normal file
31
roles/nagios_server/files/nagios/commands/ping.cfg
Normal file
|
@ -0,0 +1,31 @@
|
|||
# This command checks to see if a host is "alive" by pinging it
|
||||
# The check must result in a 100% packet loss or 5 second (3000ms) round trip
|
||||
# average time to produce a critical error.
|
||||
# Note: Only one ICMP echo packet is sent (determined by the '-p 1' argument)
|
||||
|
||||
# 'check-host-alive' command definition
|
||||
define command{
|
||||
command_name check-host-alive
|
||||
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
|
||||
}
|
||||
|
||||
define command{
|
||||
command_name check-host-alive4
|
||||
command_line $USER1$/check_ping -4 -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 2
|
||||
}
|
||||
|
||||
define command{
|
||||
command_name check-host-alive6
|
||||
command_line $USER1$/check_ping -6 -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 2
|
||||
}
|
||||
|
||||
# 'check_ping' command definition
|
||||
define command{
|
||||
command_name check_ping4
|
||||
command_line $USER1$/check_ping -4 -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
|
||||
}
|
||||
|
||||
define command{
|
||||
command_name check_ping6
|
||||
command_line $USER1$/check_ping -6 -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
|
||||
}
|
5
roles/nagios_server/files/nagios/commands/postgres.cfg
Normal file
5
roles/nagios_server/files/nagios/commands/postgres.cfg
Normal file
|
@ -0,0 +1,5 @@
|
|||
# 'pgsql'
|
||||
define command{
|
||||
command_name check_pgsql
|
||||
command_line $USER1$/check_pgsql -H $HOSTADDRESS$ -d $ARG1$ -p '{{nagios_db_user_password}}' --logname 'nagiosuser'
|
||||
}
|
28
roles/nagios_server/files/nagios/commands/rsyslog.cfg
Normal file
28
roles/nagios_server/files/nagios/commands/rsyslog.cfg
Normal file
|
@ -0,0 +1,28 @@
|
|||
################################################################################
|
||||
# COMMAND DEFINITIONS
|
||||
#
|
||||
# SYNTAX:
|
||||
#
|
||||
# define command{
|
||||
# template <templatename>
|
||||
# name <objectname>
|
||||
# command_name <commandname>
|
||||
# command_line <commandline>
|
||||
# }
|
||||
#
|
||||
# WHERE:
|
||||
#
|
||||
# <templatename> = object name of another command definition that should be
|
||||
# used as a template for this definition (optional)
|
||||
# <objectname> = object name of command definition, referenced by other
|
||||
# command definitions that use it as a template (optional)
|
||||
# <commandname> = name of the command, as recognized/used by Nagios
|
||||
# <commandline> = command line
|
||||
#
|
||||
################################################################################
|
||||
|
||||
|
||||
define command {
|
||||
command_name restart_rsyslog
|
||||
command_line $USER1$/restart_rsyslog $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $HOSTADDRESS$ "$HOSTALIAS$" "$SERVICEDESC$" "$SERVICESTATE$"
|
||||
}
|
12
roles/nagios_server/files/nagios/commands/smtp.cfg
Normal file
12
roles/nagios_server/files/nagios/commands/smtp.cfg
Normal file
|
@ -0,0 +1,12 @@
|
|||
# 'check_smtp' command definition
|
||||
define command{
|
||||
command_name check_smtp
|
||||
command_line $USER1$/check_smtp -H $HOSTADDRESS$
|
||||
}
|
||||
|
||||
|
||||
# 'check_email_delivery' command definition
|
||||
define command{
|
||||
command_name check_email_delivery
|
||||
command_line $USER1$/check_email_delivery_epn -H $ARG1$ --mailto $ARG2$ --mailfrom $ARG3$ --username $ARG4$ --password $ARG5$ -w $ARG6$ -c $ARG7$
|
||||
}
|
22
roles/nagios_server/files/nagios/commands/ssh.cfg
Normal file
22
roles/nagios_server/files/nagios/commands/ssh.cfg
Normal file
|
@ -0,0 +1,22 @@
|
|||
# 'check_ssh' command definition
|
||||
define command{
|
||||
command_name check_ssh
|
||||
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$"
|
||||
}
|
6
roles/nagios_server/files/nagios/commands/tcp.cfg
Normal file
6
roles/nagios_server/files/nagios/commands/tcp.cfg
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
# 'check_tcp' command definition
|
||||
define command{
|
||||
command_name check_tcp
|
||||
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$
|
||||
}
|
5
roles/nagios_server/files/nagios/commands/testcloud.cfg
Normal file
5
roles/nagios_server/files/nagios/commands/testcloud.cfg
Normal file
|
@ -0,0 +1,5 @@
|
|||
# 'check_testcloud'
|
||||
define command{
|
||||
command_name check_testcloud
|
||||
command_line $USER1$/check_testcloud
|
||||
}
|
5
roles/nagios_server/files/nagios/commands/udp.cfg
Normal file
5
roles/nagios_server/files/nagios/commands/udp.cfg
Normal file
|
@ -0,0 +1,5 @@
|
|||
# 'check_udp' command definition
|
||||
define command{
|
||||
command_name check_udp
|
||||
command_line $USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$
|
||||
}
|
12
roles/nagios_server/files/nagios/commands/unbound.cfg
Normal file
12
roles/nagios_server/files/nagios/commands/unbound.cfg
Normal file
|
@ -0,0 +1,12 @@
|
|||
# 'check_unbound_80' command definition
|
||||
define command{
|
||||
command_name check_unbound_80
|
||||
command_line $USER1$/check_dig -H $HOSTADDRESS$ -w 5 -c 9 -p 80 -l $ARG1$ -A "+tcp"
|
||||
}
|
||||
|
||||
|
||||
# 'check_unbound_443' command definition
|
||||
define command{
|
||||
command_name check_unbound_443
|
||||
command_line $USER1$/check_dig_ssl -H $HOSTADDRESS$ -w 5 -c 9 -p 443 -L $ARG1$ -l $ARG2$ -A "+tcp"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue