Nagios plugins failing for Python 3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
montr3245
Posts: 12
Joined: Mon Oct 26, 2020 3:10 pm

Nagios plugins failing for Python 3

Post by montr3245 »

I am running into issues where certain Nagios plugins are breaking (e.g., check_mongodb.py) for Python 3. Is there a list somewhere or plan forward for plugins that don’t currently work with Python 3 for Nagios XI? I am mainly referring to plugins that are used when creating new checks via the Nagios XI configuration wizards.
User avatar
jmichaelson
Posts: 375
Joined: Wed Aug 23, 2023 1:02 pm

Re: Nagios plugins failing for Python 3

Post by jmichaelson »

I am unaware of any lists detailing incompatibilities with Python 3 and Nagios plugins.

That said, could you provide some details as to the nature of your environment (e.g., Linux distribution and version, Nagios XI version), as well as what the plugin is doing under Python 3?
Please let us know if you have any other questions or concerns.

-Jason
kg2857
Posts: 490
Joined: Wed Apr 12, 2023 5:48 pm

Re: Nagios plugins failing for Python 3

Post by kg2857 »

Maybe check /usr/bin/python* (or wherever it is) to see if python 2 is still around.
DoubleDoubleA
Posts: 273
Joined: Thu Feb 09, 2017 5:07 pm

Re: Nagios plugins failing for Python 3

Post by DoubleDoubleA »

Hi @montr3245,

Thanks for reporting check_mongodb.py. Definitely the version we have been shipping breaks for python3. The authors provide a later version that appears from basic initial testing to support python3 https://github.com/mzupan/nagios-plugin ... mongodb.py.

I will update that in what we distribute. In the mean time, you could

Code: Select all

mv check_mongodb.py check_mongodb.py.bak
vi check_mongodb.py
hit "i" to insert and right click to paste a clipboard-copied version of the plugin, then "<esc>:wq" to save, and test if that works on your system.

Aaron
Post Reply