HOw to add new plugin to Nagios core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
elvinchia
Posts: 25
Joined: Fri Jul 23, 2010 12:01 am

HOw to add new plugin to Nagios core

Post by elvinchia »

How to add a new plugin to Nagios core?
shean71
Posts: 10
Joined: Fri Mar 25, 2011 9:14 am

Re: HOw to add new plugin to Nagios core

Post by shean71 »

What kind of new plugin you would like to add?
May refer to this http://www.nagios.org/download/addons/
Thanks & Regards,
SHEAN
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: HOw to add new plugin to Nagios core

Post by tonyyarusso »

Basically the process goes something like this:
  1. Find a plugin you want
  2. Place it on the filesystem of the Nagios server
  3. Create a command definition pointing to that file with any appropriate arguments
  4. If using NRPE, create a command definition there too
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
mrtexasfreedom
Posts: 19
Joined: Tue Apr 12, 2011 6:31 pm

Re: HOw to add new plugin to Nagios core

Post by mrtexasfreedom »

tonyyarusso wrote:Basically the process goes something like this:
  1. Find a plugin you want
  2. Place it on the filesystem of the Nagios server
  3. Create a command definition pointing to that file with any appropriate arguments
  4. If using NRPE, create a command definition there too
So there's no pre-defined directory in which to install the plugins? They can go anywhere?

Also, in an architecture where Nagios core is running on a single Linux (fedora) server monitoring a dozen Windows servers, does that mean windows binary plugins like check_mssql_nt aren't going to work? With Nagios, are the plugins installed only on the central server rather than on the remote machines?

Thanks in advance for any clarity you may provide,

mrtexasfreedom
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: HOw to add new plugin to Nagios core

Post by tonyyarusso »

mrtexasfreedom wrote:So there's no pre-defined directory in which to install the plugins? They can go anywhere?
Yes and no. They can go anywhere, yes. That said, most people do put them all in a particular directory. Depending on how you installed Nagios and on what distro, this is usually one of:
  • /usr/local/nagios/libexec/
  • /usr/lib/nagios/plugins/
  • /usr/lib64/nagios/plugins/
  • /opt/nagios/libexec/
mrtexasfreedom wrote: Also, in an architecture where Nagios core is running on a single Linux (fedora) server monitoring a dozen Windows servers, does that mean windows binary plugins like check_mssql_nt aren't going to work? With Nagios, are the plugins installed only on the central server rather than on the remote machines?
Plugins can go either on the Nagios server or the target client (or both), depending on how they are intended to work. That particular plugin would go on the client (Windows) side, and you would access it through NRPE by installing something like NSClient++.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Alexgr
Posts: 1
Joined: Wed Jun 01, 2011 1:17 pm

Re: HOw to add new plugin to Nagios core

Post by Alexgr »

I would like to install one of the following plugins http://exchange.nagios.org/directory/Pl ... e-and-Load but I cant find the way.

Do I just copy the .sh file into the directory /usr/local/nagios/libexec and then make it executable?

I just want to monitor the cpu load only in my pc not on a remote host.

After that how do I configure the service? I found that http://www.thegeekstuff.com/2008/06/how ... nagios-30/ in the 3rd section. Is that ok?

Please help!!!
Locked