DRM plugin

Alt text

A plugin (Unix/Unix-like Bash script) to interact with DRM (disaster recovery monitor): query DRM for status and events, returns an interpretable message for Icinga.

Execute script without variables to view help.

Help

$ ./drm.sh
Usage: drm.sh [-h] {-q|-s|-x} (API key)

$ ./drm.sh -h

::::: DRM Plugin for Icinga

Usage: drm.sh [-h] {-q|-s|-x} (API key)

Options:
-h
    Print detailed help screen
-q
    Check DRM events
-s
    Check DRM global status
-x
    Check DRM global status and events
API key
    Your DRM API key

Example

$ ./drm.sh -x 1234567890
CRITICAL: DRM event alarm

$ echo $?
2