fix monitoring for arch linux hosts
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
dfbdbe73bd
commit
7b00e7484e
3 changed files with 11 additions and 1 deletions
|
@ -15,6 +15,7 @@ pkg_pacman = {
|
||||||
'curl': {},
|
'curl': {},
|
||||||
'dialog': {},
|
'dialog': {},
|
||||||
'diffutils': {},
|
'diffutils': {},
|
||||||
|
'dnsutils': {},
|
||||||
'fakeroot': {},
|
'fakeroot': {},
|
||||||
'file': {},
|
'file': {},
|
||||||
'findutils': {},
|
'findutils': {},
|
||||||
|
|
|
@ -14,7 +14,7 @@ defaults = {
|
||||||
'postfix': {
|
'postfix': {
|
||||||
'services': {
|
'services': {
|
||||||
'POSTFIX PROCESS': {
|
'POSTFIX PROCESS': {
|
||||||
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit postfix@-',
|
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit postfix' + ('' if node.os == 'arch' else '@-'),
|
||||||
},
|
},
|
||||||
'POSTFIX QUEUE': {
|
'POSTFIX QUEUE': {
|
||||||
'command_on_monitored_host': 'sudo /usr/local/share/icinga/plugins/check_postfix_queue -w 20 -c 40 -d 50',
|
'command_on_monitored_host': 'sudo /usr/local/share/icinga/plugins/check_postfix_queue -w 20 -c 40 -d 50',
|
||||||
|
|
|
@ -61,3 +61,12 @@ for check in {
|
||||||
files["/usr/local/share/icinga/plugins/check_{}".format(check)] = {
|
files["/usr/local/share/icinga/plugins/check_{}".format(check)] = {
|
||||||
'mode': "0755",
|
'mode': "0755",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if node.has_bundle('pacman'):
|
||||||
|
symlinks['/usr/lib/nagios/plugins'] = {
|
||||||
|
'target': '/usr/lib/monitoring-plugins',
|
||||||
|
'needs': {
|
||||||
|
'pkg_pacman:monitoring-plugins',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue