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.