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.
Monitoring new version of Nagios XI, LS, FU and NA
-
Cpt.Ackbar
- Posts: 31
- Joined: Thu Aug 17, 2017 7:14 am
Re: Monitoring new version of Nagios XI, LS, FU and NA
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:
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".
If there was a new version available, you would see:
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:
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.
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=xmlCode: Select all
<update_available>0</update_available>Code: Select all
<update_available>1</update_available>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.4Meanwhile, 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
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.
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
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!