diff --git a/roles/nagios_server/files/nagios/commands/mailman.cfg b/roles/nagios_server/files/nagios/commands/mailman.cfg new file mode 100644 index 0000000000..8d31c1b601 --- /dev/null +++ b/roles/nagios_server/files/nagios/commands/mailman.cfg @@ -0,0 +1,29 @@ +################################################################################ +# COMMAND DEFINITIONS +# +# SYNTAX: +# +# define command{ +# template +# name +# command_name +# command_line +# } +# +# WHERE: +# +# = object name of another command definition that should be +# used as a template for this definition (optional) +# = object name of command definition, referenced by other +# command definitions that use it as a template (optional) +# = name of the command, as recognized/used by Nagios +# = command line +# +################################################################################ + +# 'check_mailman_api' +define command{ + command_name check_mailman_api + command_line $USER1$/check_http -H localhost -p 8001 -u /3.0 +} + diff --git a/roles/nagios_server/tasks/main.yml b/roles/nagios_server/tasks/main.yml index 6fb8f87722..e357d628dc 100644 --- a/roles/nagios_server/tasks/main.yml +++ b/roles/nagios_server/tasks/main.yml @@ -137,6 +137,7 @@ - httpd.cfg - koji.cfg - local.cfg + - mailman.cfg - misc.cfg - notify.cfg - nrpe.cfg