Nagios XI Custom Plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nickgt30
Posts: 3
Joined: Thu Apr 09, 2015 1:04 pm

Nagios XI Custom Plugin

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios XI Custom Plugin

Post 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
Former Nagios employee
Locked