wip
This commit is contained in:
parent
9c26233321
commit
f3c5da7404
2 changed files with 20 additions and 1 deletions
|
@ -18,6 +18,8 @@ fi
|
|||
|
||||
ssh sshmon@"$SSHMON_HOST" "$SSHMON_COMMAND"
|
||||
|
||||
exitcode=$?
|
||||
|
||||
if [ "$exitcode" = 124 ]
|
||||
then
|
||||
echo 'check_by_sshmon: Timeout while running check remotely' >&2
|
||||
|
|
|
@ -3,13 +3,30 @@ defaults = {
|
|||
'services': {
|
||||
'test': {
|
||||
'vars.command': '/bin/ls /',
|
||||
'check_command': 'sshmon',
|
||||
'host_name': node.name,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'monitoring/services',
|
||||
)
|
||||
def service_defaults(metadata):
|
||||
return {
|
||||
'monitoring': {
|
||||
'services': {
|
||||
name: {
|
||||
'check_command': 'sshmon',
|
||||
}
|
||||
for name, conf in metadata.get('monitoring/services').items()
|
||||
if 'check_command' not in conf
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'users/sshmon/authorized_users'
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue