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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Cpt.Ackbar
Posts: 31
Joined: Thu Aug 17, 2017 7:14 am

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

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Cpt.Ackbar
Posts: 31
Joined: Thu Aug 17, 2017 7:14 am

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

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post by lmiltchev »

I am glad I was able to help! Is it OK if we closed this topic?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked