Page 1 of 1

Monitoring new version of Nagios XI, LS, FU and NA

Posted: Mon Sep 24, 2018 6:07 am
by Cpt.Ackbar
Are there any plugins which can be used to monitor versions of Nagios XI, Nagios Log Server, Nagios Network Analyzer and Nagios Fusion?

What I am trying to find is some check which will be able to verify version of server, version of the latest release and return me state OK (up to date) or critical (out of date).

Thanks for response.

Re: Monitoring new version of Nagios XI, LS, FU and NA

Posted: Mon Sep 24, 2018 1:28 pm
by lmiltchev
Currently, there is no plugin that would check the version number of our products, and see if an update is available. This is a good candidate for a feature request though.

You could probably use some of the URLs below in a php or bash script, in order to see if an update is available:

Code: Select all

https://api.nagios.com/versioncheck/?stableonly=1&product=nagiosxi&version=5.5.4&output=xml
https://api.nagios.com/versioncheck/?stableonly=1&product=nagioslogserver&version=2.0.5&output=xml
https://api.nagios.com/versioncheck/?stableonly=1&product=nagiosfusion&version=4.1.5&output=xml
https://api.nagios.com/versioncheck/?stableonly=1&product=nagiosnetworkanalyzer&version=2.3.2&output=xml
Note: You will need to know the current version of your product, so that you can pass it to the URL, e.g. &version=5.5.4. If you were running the latest stable release, you would see "0" (zero), meaning "no updates are available".

Code: Select all

<update_available>0</update_available>
If there was a new version available, you would see:

Code: Select all

<update_available>1</update_available>
In order not to have the version number "hard-coded", you could have a check, and assign the output (the value) to a variable.

Example in Nagios XI:

Code: Select all

[root@main-nagios-xi ~]# xiversion=`grep full /usr/local/nagiosxi/var/xiversion | cut -f2 -d '='`
[root@main-nagios-xi ~]# echo $xiversion
5.5.4
This is out of scope for Nagios support but I am trying to at least point you to the right direction.

Meanwhile, I will file an internal feature request on your behalf for creating a "version check" plugin for our products.

Re: Monitoring new version of Nagios XI, LS, FU and NA

Posted: Tue Oct 02, 2018 6:27 am
by Cpt.Ackbar
Thanks for handling feature request. I will probably wait for implementation from Nagios.

But your code brought good insight how could I handle it. So thanks for that.

Re: Monitoring new version of Nagios XI, LS, FU and NA

Posted: Tue Oct 02, 2018 11:02 am
by lmiltchev
I am glad I was able to help! Is it OK if we closed this topic?