Page 1 of 1

Nagios XI Custom Plugin

Posted: Thu Apr 09, 2015 1:11 pm
by nickgt30
Hi guys,

I'm trying to run a custom command line command on a linux server and return the result with some grep and cut magic so the output is consumable.

We use U2 database which is a multivalue database. There is a command that can be run called uvlictool which will list who is using licenses and the output is pretty long and nasty but there's only two lines of it that I need which are Used and Available licenses. I know how to grep and cut to get just what I want but I don't know how to integrate this into nagios. This command could be run via ssh or through nrpe if that's an option. I want to return the two data points (lines) and error. So if there's 1000 licenses used and 200 available I'd get a warning and if 1100 are used and 100 are available I'd go critical.

Re: Nagios XI Custom Plugin

Posted: Thu Apr 09, 2015 1:22 pm
by tmcdonald
If you are looking to write your own plugin there is no finer source of information:

https://nagios-plugins.org/doc/guidelines.html