help with a plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

help with a plugin

Post 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!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: help with a plugin

Post 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
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: help with a plugin

Post 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.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: help with a plugin

Post 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
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: help with a plugin

Post by benhank »

thanks bro. till next-time! fort nox this mofo!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: help with a plugin

Post by slansing »

Will do, locking as resolved.
Locked