Skip to content

Return code from remote check not prorperly handled #24

@marcosjl

Description

@marcosjl

When using check_ssh_proxy_check.py to lookup at another check on a remote machine, the actual return code from the check is not properly handle.

Let's say I want to execute 'check_something', the return code (OK, WARNING, CRITICAL,UNKNOWN) is never handled by check_ssh_proxy_ssh.py resulting in a permanent OK state for the service, even though the remote check is CRITICAL.

When looking to the pyton code, it finishes by :
print result
sys.exit(0)

The latest line explains the 'permanent OK' state.

Totally newbie in Python language, so cannot figure out a way to do this... :(

Jose L.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions