gwcelery.tools.nagios module

A Nagios plugin for monitoring GWCelery.

See https://nagios-plugins.org/doc/guidelines.html.

class gwcelery.tools.nagios.NagiosPluginStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

Nagios plugin status codes.

OK = 0
WARNING = 1
CRITICAL = 2
UNKNOWN = 3
exception gwcelery.tools.nagios.NagiosCriticalError[source]

Bases: Exception

An exception that maps to a Nagios status of CRITICAL.

gwcelery.tools.nagios.get_active_queues(inspector)[source]
gwcelery.tools.nagios.get_active_igwn_alert_topics(inspector)[source]
gwcelery.tools.nagios.get_expected_queues(app)[source]
gwcelery.tools.nagios.get_expected_igwn_alert_topics(app)[source]
gwcelery.tools.nagios.get_active_voevent_peers(inspector)[source]
gwcelery.tools.nagios.get_expected_kafka_bootstep_urls(inspector)[source]
gwcelery.tools.nagios.get_active_kafka_bootstep_urls(inspector)[source]
gwcelery.tools.nagios.get_undelivered_message_urls(inspector)[source]
gwcelery.tools.nagios.get_active_kafka_consumer_bootstep_names(inspector)[source]
gwcelery.tools.nagios.get_expected_kafka_consumer_bootstep_names(app)[source]
gwcelery.tools.nagios.get_celery_queue_length(app)[source]
gwcelery.tools.nagios.get_recent_mdc_superevents()[source]

Get MDC superevents in last six hours

gwcelery.tools.nagios.get_distr_delay_latest_llhoft(app)[source]

Get the GPS time of the latest llhoft data distributed to the node

gwcelery.tools.nagios.check_status(app)[source]