[Nagiosplug-help] Installation of a Single Plugin

lists lists at catsnest.co.uk
Fri Feb 10 11:05:43 UTC 2012


This is a bit of a sweeping how do I use Nagios question...

So depending on the type of plugin (eg run from the server or run from the
client) will depend where you install the plugin.

Plugins that run on the client normally run via NRPE (Linux) or NSClient++
(windows) (i say normally as there are many alternatives).

  Each of these have there own commands config, for example nrpe will have
something like
  "command[name_of_command]=/patch/to/plugin/or/script.sh"

Then Nagios has a set of service / command definitions to run that plugin
   Something like
  define command{
        command_name    check_my_new_plugin
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c
name_of_command
   }

This tells Nagios to use the plugin check_nrpe to connect to "$HOSTADDRESS$"
and run the command "name_of_command"


Hopefully you find that your linux clients are using nrpe if do a PS list
and have a look for nrpe, this will usualy show the location of the nrpe
config file... In my case:

# ps -ef | grep nrpe
nagios    2376     1  0 Jan01 ?        00:05:41 /usr/sbin/nrpe -c
/etc/nagios/nrpe.cfg -d

the nrpe.cfg file should show you where your existing nrpe command /
plugins are stored.

Hope some of this makes sense...

Ritchie,
--
<-- http://23.me.uk/2 -->
<--Time flies like an arrow; fruit flies like a banana.  -->


On Thu, Feb 9, 2012 at 7:28 PM, Pietan, James J (HSS) <
james.pietan at alaska.gov> wrote:

> **
>
> Recently, Nagios was added to my plate to maintain and update/upgrade as
> and when needed.
>
> Having limited exposure to Nagios and Linux, I need a little help.
>
> There are several plugins that I would like to install from the different
> Nagios web sites.
>
> However, I lack some basic information –
>
> How do I install a single plugin, whether it is a .pl or .sh
>
> When all that is given is the command…. ?
>
> Any help you would give is greatly appreciated.
>
> *******If you have any questions, please contact me.*
>
> *James Pietan*
>
> *Network Specialist II*
>
> *(907) - 465-8122  or  (907) 321-1655*
>
> *******Corripe Cervisiam or Carpe Diem*
>
> *******IMPORTANT WARNING*: This message is intended for the use of the
> person or entity to which it is addressed and may contain information that
> is confidential.  If you are not the intended recipient or the employee
> or agent responsible to deliver it to the intended recipient, you are
> hereby notified that any disclosure, copying, forwarding or distribution of
> this information is STRICTLY PROHIBITED.  If you have received this
> electronic message by error, please notify the sender and immediately
> delete all copies from your computer system to prevent further disclosure.
>
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nagios.com/pipermail/nagiosplugin-help/attachments/20120210/4d1d13e2/attachment.html>


More information about the Nagiosplugin-help mailing list