Hi All, I fixed the issue 5 mins after posting you the issue :-)

What it was :

In /var/log/messages I had the error below for each of the check_nrpe
commands .


Jan 22 11:26:44 coal icinga: error executing command
'/usr/lib64/nagios/plugins/check_nrpe': No such file or directory. Make
sure that the file actually exists (in PATH, if set) and is executable!



After a dig about I found that  /etc/icinga/resource.cfg  sets the path to
the plugins and is



# Sets $USER1$ to be the path to the plugins

$USER1$=/usr/lib64/nagios/plugins



The install of the check_nrpe plugin put it in /usr/local/nagios/libexec/

So I copied it to the correct directory

cp /usr/local/nagios/libexec/check_nrpe /usr/lib64/nagios/plugins/check_nrpe



and the monitoring now works .


Many Thanks


Paul

On 22 January 2015 at 13:01, <icinga-users-requ...@lists.icinga.org> wrote:

> Send icinga-users mailing list submissions to
>         icinga-users@lists.icinga.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.icinga.org/mailman/listinfo/icinga-users
> or, via email, send a message with subject or body 'help' to
>         icinga-users-requ...@lists.icinga.org
>
> You can reach the person managing the list at
>         icinga-users-ow...@lists.icinga.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of icinga-users digest..."
>
>
> Today's Topics:
>
>    1. nrpe (Paul Diprose)
>    2. Restrict notifications to one specific (satellite)        endpoint
>       (Markus Joosten)
>    3. Re: nrpe (Sunil Sankar)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 22 Jan 2015 11:00:36 +0000
> From: Paul Diprose <paul.dipr...@thecarfinancecompany.co.uk>
> To: icinga-users@lists.icinga.org
> Subject: [icinga-users] nrpe
> Message-ID:
>         <CABO5tTjRnLx3gNF2uO52NLoDP7TCjg_XU=
> 3k39bosruxmze...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi, I have icinga 1.12 running nicely and needed to do some remote host
> monitoring .
> I installed nrpe and its plugin on my test box
> ( i.e wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
>
> wget
>
> http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz/download
>
> )
>
>
> and can happily run remote commands on it from my icinga server i.e:
>
>
>
> [root@icingaserver ~]# /usr/local/nagios/libexec/check_nrpe -H <my test
> box
> ip> -c check_zombie_procs
> PROCS OK: 0 processes with STATE = Z | procs=0;5;10;0;
>
> And on my test box I get :
>
> [root@my test box /]# /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
> NRPE v2.15
>
> [root@my test box /]# netstat -at | grep nrpe
> tcp        0      0 *:nrpe                      *:*
> LISTEN
>
>
> I set up the hosts.cfg and commands.cfg as I found in your guide but in the
> monitoring page I get an UNKNOWN status and (null) status information
>
> [image: Inline images 1]
>
>
> Any idea how I can fix this?
>
> Many Thanks
>
> Name:
> Role:
> Phone:
> Email:
> Website:
> Address:
>
>
> Paul Diprose
> Operations Support
> 023 92448674
> paul.dipr...@thecarfinancecompany.co.uk
> www.thecarfinancecompany.co.uk
> The Car Finance Company (2007) Limited
> 47-51 Kingston Crescent
> Portsmouth, P02 8AA
>
> --
>
>
> ******* CONFIDENTIALITY NOTICE AND LEGAL LIABILITY WAIVER *******
>
> The content of this email and any attachments are CONFIDENTIAL and may
> contain privileged information. If you are not the addressee it may be
> UNLAWFUL for you to read, copy, distribute or disclose the information
> contained herein. This email and any attachments may not reflect the
> opinions of the originating company or any party it is representing.
> Telephone calls may be recorded for training and quality monitoring
> purposes.
>
> The Car Finance Company (2007) Ltd Registered Address is 47-51 Kingston
> Crescent, Portsmouth, PO2 8AA and is authorised and regulated by the
> Financial Conduct Authority, CCL number 600168.
>
> The Car Finance Company (Trade Sales) Ltd is a wholly owned subsidiary of
> The Car Finance Company (2007) Ltd. Registered Address is 47-51 Kingston
> Crescent, Portsmouth, PO2 8AA and is authorised and regulated by the
> Financial Conduct Authority, CCL number 663690.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.icinga.org/pipermail/icinga-users/attachments/20150122/81534723/attachment-0001.html
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image.png
> Type: image/png
> Size: 1835 bytes
> Desc: not available
> URL: <
> http://lists.icinga.org/pipermail/icinga-users/attachments/20150122/81534723/attachment-0001.png
> >
>
> ------------------------------
>
> Message: 2
> Date: Thu, 22 Jan 2015 13:50:36 +0100
> From: Markus Joosten <markus.joos...@plumbe.de>
> To: icinga-users@lists.icinga.org  <icinga-users@lists.icinga.org>
> Subject: [icinga-users] Restrict notifications to one specific
>         (satellite)     endpoint
> Message-ID: <zarafa.54c0f21c.4f8a.3fd8fe014a965...@mail.plumbe.de>
> Content-Type: text/plain; charset="utf-8"
>
> Hello list,
>
> first of all i'd like to thank the Icinga2 guys for providing such an
> awesome piece of software!
> I've been using legacy Nagios for many years now and i'm about to replace
> everything with Icinga2.
>
> I'm currently running the following setup for testing and am not sure on
> how to achieve my goals:
>
> - 1 master endpoint hosting the master zone + global configuration zone
> - several satellite endpoints which are in separate child zones, each to
> their own (a zone only contains a single endpoint)
> - several globally defined templates, notifications, and so on
> - every satellite endpoint has the notification feature enabled, and i am
> required to have each endpoint send alert notifications for its own zone
> (that's my main issue so far)
>
> Now when a host located in a child zone goes down i can see that the
> endpoint located in that zone and the global master endpoint take turns in
> sending the notifications.
> - usually I receive one notification from the satellite, then one from the
> master endpoint, then one from the satellite again, and so on
> - this behavior seems to be somewhat erratic (sometimes its 2-3
> notifications from one endpoint before switching to the other).
> - am pretty sure that i am not seeing duplicate notifications since the
> notification intervals are being met.
>
> I have tried the following steps:
> - define "command_endpoint" for host, service, notification and
> notification apply rule to explicitly use the satellite endpoint
> - setting "enable_ha = false" in
> /etc/icinga2/features-available/notification.conf
> - explicitly setting the variable "zone" for host, service and notification
> - define notification, notification apply rule, users in the satellite zone
>
> All this did not have any effect whatsoever.
> Can anyone guide me in the right direction? What am i missing here?
>
> Regards from Frankfurt,
> Markus
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.icinga.org/pipermail/icinga-users/attachments/20150122/23ece164/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Thu, 22 Jan 2015 18:31:05 +0530
> From: Sunil Sankar <su...@sunil.cc>
> To: "Icinga User's Corner" <icinga-users@lists.icinga.org>
> Subject: Re: [icinga-users] nrpe
> Message-ID:
>         <CAPqUM3W=2dDYYeuMTNXfyTL9So4a=
> re99nq1xrbf2cv65k5...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Make sure command is defined in nrpe.conf file .
>
> Please paste the following output ps -ef|grep nrpe
>
> and also paste the content of nrpe.conf and the command definition on
> icinga
>
> On Thu, Jan 22, 2015 at 4:30 PM, Paul Diprose <
> paul.dipr...@thecarfinancecompany.co.uk> wrote:
>
> >
> > Hi, I have icinga 1.12 running nicely and needed to do some remote host
> > monitoring .
> > I installed nrpe and its plugin on my test box
> > ( i.e wget
> http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
> >
> > wget
> >
> http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz/download
> >
> > )
> >
> >
> > and can happily run remote commands on it from my icinga server i.e:
> >
> >
> >
> > [root@icingaserver ~]# /usr/local/nagios/libexec/check_nrpe -H <my test
> > box ip> -c check_zombie_procs
> > PROCS OK: 0 processes with STATE = Z | procs=0;5;10;0;
> >
> > And on my test box I get :
> >
> > [root@my test box /]# /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
> > NRPE v2.15
> >
> > [root@my test box /]# netstat -at | grep nrpe
> > tcp        0      0 *:nrpe                      *:*
> >   LISTEN
> >
> >
> > I set up the hosts.cfg and commands.cfg as I found in your guide but in
> > the monitoring page I get an UNKNOWN status and (null) status information
> >
> > [image: Inline images 1]
> >
> >
> > Any idea how I can fix this?
> >
> > Many Thanks
> >
> > Name:
> > Role:
> > Phone:
> > Email:
> > Website:
> > Address:
> >
> >
> > Paul Diprose
> > Operations Support
> > 023 92448674
> > paul.dipr...@thecarfinancecompany.co.uk
> > www.thecarfinancecompany.co.uk
> > The Car Finance Company (2007) Limited
> > 47-51 Kingston Crescent
> > Portsmouth, P02 8AA
> >
> > ******* CONFIDENTIALITY NOTICE AND LEGAL LIABILITY WAIVER *******
> >
> > The content of this email and any attachments are CONFIDENTIAL and may
> > contain privileged information. If you are not the addressee it may be
> > UNLAWFUL for you to read, copy, distribute or disclose the information
> > contained herein. This email and any attachments may not reflect the
> > opinions of the originating company or any party it is representing.
> > Telephone calls may be recorded for training and quality monitoring
> > purposes.
> >
> > The Car Finance Company (2007) Ltd Registered Address is 47-51 Kingston
> > Crescent, Portsmouth, PO2 8AA and is authorised and regulated by the
> > Financial Conduct Authority, CCL number 600168.
> >
> > The Car Finance Company (Trade Sales) Ltd is a wholly owned subsidiary of
> > The Car Finance Company (2007) Ltd. Registered Address is 47-51 Kingston
> > Crescent, Portsmouth, PO2 8AA and is authorised and regulated by the
> > Financial Conduct Authority, CCL number 663690.
> >
> > _______________________________________________
> > icinga-users mailing list
> > icinga-users@lists.icinga.org
> > https://lists.icinga.org/mailman/listinfo/icinga-users
> >
> >
>
>
> --
> Regards
> Sunil Sankar
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.icinga.org/pipermail/icinga-users/attachments/20150122/80df0b86/attachment.html
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image.png
> Type: image/png
> Size: 1835 bytes
> Desc: not available
> URL: <
> http://lists.icinga.org/pipermail/icinga-users/attachments/20150122/80df0b86/attachment.png
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> icinga-users mailing list
> icinga-users@lists.icinga.org
> https://lists.icinga.org/mailman/listinfo/icinga-users
>
>
> ------------------------------
>
> End of icinga-users Digest, Vol 13, Issue 19
> ********************************************
>



-- 
Name:
Role:
Phone:
Email:
Website:
Address:


Paul Diprose
Operations Support
023 92448674
paul.dipr...@thecarfinancecompany.co.uk
www.thecarfinancecompany.co.uk
The Car Finance Company (2007) Limited
47-51 Kingston Crescent
Portsmouth, P02 8AA

-- 


******* CONFIDENTIALITY NOTICE AND LEGAL LIABILITY WAIVER *******

The content of this email and any attachments are CONFIDENTIAL and may 
contain privileged information. If you are not the addressee it may be 
UNLAWFUL for you to read, copy, distribute or disclose the information 
contained herein. This email and any attachments may not reflect the 
opinions of the originating company or any party it is representing. 
Telephone calls may be recorded for training and quality monitoring 
purposes.

The Car Finance Company (2007) Ltd Registered Address is 47-51 Kingston 
Crescent, Portsmouth, PO2 8AA and is authorised and regulated by the 
Financial Conduct Authority, CCL number 600168. 

The Car Finance Company (Trade Sales) Ltd is a wholly owned subsidiary of 
The Car Finance Company (2007) Ltd. Registered Address is 47-51 Kingston 
Crescent, Portsmouth, PO2 8AA and is authorised and regulated by the 
Financial Conduct Authority, CCL number 663690.
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to