icinga2: more checks should send sms
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-01-02 12:26:37 +01:00
parent 6e4c1ca502
commit 4f57a6c0e3
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 8 additions and 1 deletions

View file

@ -17,11 +17,13 @@ defaults = {
'IMAP CONNECT': { 'IMAP CONNECT': {
'check_command': 'check_imap', 'check_command': 'check_imap',
'vars.imap_port': 143, 'vars.imap_port': 143,
'vars.notification.sms': True,
}, },
'IMAPS CONNECT': { 'IMAPS CONNECT': {
'check_command': 'check_imap', 'check_command': 'check_imap',
'vars.imap_port': 993, 'vars.imap_port': 993,
'vars.imap_ssl': True, 'vars.imap_ssl': True,
'vars.notification.sms': True,
}, },
}, },
}, },

View file

@ -19,8 +19,9 @@ defaults = {
'icinga2_api': { 'icinga2_api': {
'matrix-synapse': { 'matrix-synapse': {
'services': { 'services': {
'SYNAPSE PROCESS': { 'MATRIX-SYNAPSE PROCESS': {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_http_url_for_string http://[::1]:20080/_matrix/static/ "Synapse is running"', 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_http_url_for_string http://[::1]:20080/_matrix/static/ "Synapse is running"',
'vars.notification.sms': True,
}, },
}, },
}, },

View file

@ -29,10 +29,12 @@ if node.has_bundle('postfixadmin'):
'SMTP CONNECT': { 'SMTP CONNECT': {
'check_command': 'check_smtp', 'check_command': 'check_smtp',
'vars.notification.sms': True, 'vars.notification.sms': True,
'vars.notification.sms': True,
}, },
'SMTP SUBMISSION CONNECT': { 'SMTP SUBMISSION CONNECT': {
'check_command': 'check_smtp', 'check_command': 'check_smtp',
'vars.port': '587', 'vars.port': '587',
'vars.notification.sms': True,
}, },
}) })
else: else:

View file

@ -15,6 +15,7 @@ defaults = {
'POWERDNS PROCESS': { 'POWERDNS PROCESS': {
'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -C pdns_server -c 1:', 'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -C pdns_server -c 1:',
'vars.notification.mail': True, 'vars.notification.mail': True,
'vars.notification.sms': True,
}, },
}, },
}, },

View file

@ -17,6 +17,7 @@ defaults = {
'services': { 'services': {
'SEAFILE PROCESS': { 'SEAFILE PROCESS': {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit seafile', 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit seafile',
'vars.notification.sms': True,
}, },
'SEAHUB PROCESS': { 'SEAHUB PROCESS': {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit seahub', 'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit seahub',