Page 1 of 1

Active checks

Posted: Mon Dec 14, 2015 7:49 am
by peter19x
Forgive me if I sound silly , but I am pretty new to nagiosxi and I am trying to dig into the right documents to start with.

I want to tell my nagios server to get to that X machine and ask her to execute a certain script, then take the output of the script and generate an alarm, graph for that output.

For example I want the nagios to go to a Linux machine, ask it to execute a script that list all customers and number of current calls on that Linux box, take the customer name and number of calls associated with it and sends it back to nagios.

Is it something that can be done with active checks? (and not passive)

Many Thanks,
Peter

Re: Active checks

Posted: Mon Dec 14, 2015 10:06 am
by jolson
This can be done with active checks. If you have a way of getting data off of a remote server (with a script or otherwise) then Nagios XI is capable of seeing and graphing that data.

A good place to start would be reading through the developer guidelines - the guidelines describe designing plugins:
https://nagios-plugins.org/doc/guidelines.html

The next thing you'll need to know is how to get your custom plugin working with Nagios - it's very likely that you'll be using NRPE to check on your remote Linux boxes. Let me know if you have any questions!