Page 1 of 1

HOw to add new plugin to Nagios core

Posted: Wed Apr 06, 2011 2:51 am
by elvinchia
How to add a new plugin to Nagios core?

Re: HOw to add new plugin to Nagios core

Posted: Wed Apr 06, 2011 9:54 am
by shean71
What kind of new plugin you would like to add?
May refer to this http://www.nagios.org/download/addons/

Re: HOw to add new plugin to Nagios core

Posted: Wed Apr 06, 2011 10:31 am
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

Re: HOw to add new plugin to Nagios core

Posted: Tue Apr 12, 2011 7:59 pm
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

Re: HOw to add new plugin to Nagios core

Posted: Wed Apr 13, 2011 9:53 am
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++.

Re: HOw to add new plugin to Nagios core

Posted: Wed Jun 01, 2011 1:26 pm
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!!!