Skip to content

Python3 Nagios plugin that will query AlertManger and check if there is any alerte

License

Notifications You must be signed in to change notification settings

christopherime/check_AlertManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check_AlertManager

Plugin in Python3 for Nagios to check the status of alerts on a remote AlertManager.

Installation

pip3 install -r requirements.txt

Usage

check_AlertManager.py <alertManager_URL> <crit_level> <alt_hostname> <tls_enable>

Help

Arguments

    -h, --help:  Show this help message and exit

    alertManager_URL:
        URL of the AlertManager instance

    crit_level:
        The sensibility of the check. Default is 2.
            1: Critical if ANY alert is raised regardless of the alert severity
            2: Critical if ONLY CRITICAL alerts are raised
            3: Warning always, this check will return a warning
            4: Warning if ANY alert is raised regardless if the alert is suppressed or not
            5: Critical if ANY alert is raised regardless if the alert is suppressed or not

    alt_hostname:
        Alternative hostname to use in the output. Default is the hostname of the machine.
        If empty localhost will be used.
        
    tls_enable:
        TLS for the hostname. Default is False.
        0: Disable TLS, HTTP scheme will be used
        1: Enable TLS, HTTPS scheme will be used

About

Python3 Nagios plugin that will query AlertManger and check if there is any alerte

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages