Skip to content
forked from jpmens/check-mqtt

A Nagios/Icinga plugin for testing an MQTT broker

Notifications You must be signed in to change notification settings

sjsf/check-mqtt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

check-mqtt

A Nagios/Icinga plugin for checking connectivity to an MQTT broker.

This plugin connects to the specified broker and subscribes to a topic. Upon successful subscription, a message is published to said topic, and the plugin expects to receive that payload within max_wait seconds.

Configuration

Configuration is currently hard-coded in the Python source. Check the following variables and alter to taste:

mqtt_host = 'localhost'
mqtt_port = 1883
mqtt_username = None
mqtt_password = None

check_topic = 'nagios/test'
check_payload = 'PiNG'
max_wait = 4
  • max_wait is the time we're willing to wait for a SUB to the topic we PUBlish on. If we don't receive the MQTT PUB within this many seconds we exist with CRITICAL.

Example

OK - PUB to nagios/test at localhost responded in 0.00

About

A Nagios/Icinga plugin for testing an MQTT broker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%