Page 1 of 1

Nagios XI service check for Nagios XI license expiration?

Posted: Fri Jan 15, 2016 10:28 am
by jwelch
Silly question: Has anyone written a service check for the Nagios XI license expiration?

Alternatively, is there a command line that will return the expiration date? If so, I'll write a check
around that.

We don't get renewal notices so every year it's a scramble to get a quote and PO cut before the
license expires.

Re: Nagios XI service check for Nagios XI license expiration

Posted: Fri Jan 15, 2016 2:47 pm
by tmcdonald
I spoke to the devs and there isn't anything currently available that can be run from the CLI (See update below). I tried writing a perl script to log in, visit the admin page, and scrape the info, but that's going to take longer than I can do without having to charge for custom development.

However, it's more troubling that you aren't getting renewal notices. Our Sales team should be sending those out to someone on your team - you can contact [email protected] and they can probably get you on the renewal list.

UPDATE: One of our developers came up with this for a solution:

Code: Select all

wget -q "http://127.0.0.1/nagiosxi/admin/license.php?&username=nagiosadmin&ticket=YOURTICKETHERE" -O output && cat output | grep "Expires in" | sed 's/.*<b>\([0-9]\+\)<\/b>.*/\1/'
You'll need to replace the ticket with an appropriate value for the nagiosadmin user. The ticket can be found under Admin -> Manage Components -> Backend API URL, then clicking the settings icon.

Re: Nagios XI service check for Nagios XI license expiration

Posted: Tue Jan 19, 2016 1:27 pm
by jwelch
Thanks! I'll tinker with it. I get a 404 error for that url, but then I'm still on the pre-5 version so I may have to symlink the script to someplace that I can reach with a backend API url.

Just a suggestion, IMHO internal license expiration checks should be a standard check for Nagios XI licensed systems.

Re: Nagios XI service check for Nagios XI license expiration

Posted: Tue Jan 19, 2016 2:40 pm
by lmiltchev
jwelch, I put together a small bash script for checking the XI license/maintenance status and a document explaining how to add the service to XI. I could PM them to you if you would like to check them out. The plugin hasn't been tested yet and I am not a developer, so I am reluctant to post it "officially" just yet. :)
Any suggestions/tips would be welcome.