Page 1 of 1

help with a plugin

Posted: Mon Mar 18, 2013 4:02 pm
by benhank
if this request is not something you guys are supposed to fix , just lock it. But if not:
I have this plugin that I cant seem to get to work:
http://exchange.nagios.org/directory/Pl ... ts/details .
i added the command he put up, but I get :

Code: Select all

COMMAND: /check_insight_agents  -H wkensimpo1 -C 
OUTPUT: 
any help is welcome!

Re: help with a plugin

Posted: Mon Mar 18, 2013 4:12 pm
by slansing
If you are running the command from your libexec directory be sure to append it with an execute like so:

Code: Select all

./check_insight_agents -H ip.of.target.host/hostname -C community.string.here

Re: help with a plugin

Posted: Tue Mar 19, 2013 11:14 am
by benhank
yah know I need to learn how to fish (if you give a man a fish he will eat for a day, but teach his punk >censored< to fish and he will never go hongry).
The truly larger issue is I don't know how plugin code works. Can you point me to a good resource that explains\teaches how to write a nagios plugin? I dont care how advanced it is, cause right now I got nuthin.

Re: help with a plugin

Posted: Tue Mar 19, 2013 11:59 am
by slansing
Sure, keep in mind plugins can be written in many of the popular languages due to the nature of how they are executed, you need only return data in a format readable to Nagios, and supply that data with a exit code to notate state changes. We have several guidelines, here are a couple links:

http://nagiosplug.sourceforge.net/devel ... lines.html

http://nagios.sourceforge.net/docs/3_0/pluginapi.html

Re: help with a plugin

Posted: Tue Mar 19, 2013 12:20 pm
by benhank
thanks bro. till next-time! fort nox this mofo!

Re: help with a plugin

Posted: Tue Mar 19, 2013 12:31 pm
by slansing
Will do, locking as resolved.