bundles/{netdata,pppd,radvd,vmhost,vnstat,wide-dhcp6c}: add monitoring
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
9d3d0bcc69
commit
5935aed0db
8 changed files with 100 additions and 0 deletions
|
@ -11,4 +11,34 @@ defaults = {
|
|||
'cron': {
|
||||
'restart-pppoe-if-no-public-ip': '*/5 * * * * root /usr/local/bin/restart-pppoe-if-no-public-ip',
|
||||
},
|
||||
'icinga2_api': {
|
||||
'pppd': {
|
||||
'services': {
|
||||
'PPPD PROCESS': {
|
||||
'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -C pppd -c 1:',
|
||||
},
|
||||
'PPPOE PROCESS': {
|
||||
'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -C pppoe -c 1:',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor
|
||||
def icinga_dyndns(metadata):
|
||||
if 'dyndns' not in metadata.get('pppd'):
|
||||
return {}
|
||||
|
||||
return {
|
||||
'icinga2_api': {
|
||||
'pppd': {
|
||||
'services': {
|
||||
'DYNDNS UPDATE': {
|
||||
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_dyndns_update',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue