[clue] [tech] Nagios question - remote plugin status isn't shown

Jim Ockers ockers at ockers.net
Fri May 25 15:48:12 MDT 2012


Hi Chris,

That was it thanks, you nailed it.  I was missing the fact that NRPE 
prints out only that version message if you connect remotely and don't 
specify a command for it to run.  I had the check_nrpe command 
configured wrong in the Nagios server's commands.cfg.  In my ignorance I 
did it wrong when I defined the command.

This config snippet causes it to generate the NRPE v2.13 output (note no 
$ARG1$):

define command{
        command_name    check_nrpe
        command_line    /usr/nagios/libexec/check_nrpe -H $HOSTADDRESS$
        }

[root at nagios]# /usr/nagios/libexec/check_nrpe -H remote.host.IP
NRPE v2.13


I changed the config to this and now NRPE and my plugins generate the 
command output I expected:

define command{
        command_name    check_nrpe
        command_line    /usr/nagios/libexec/check_nrpe -H $HOSTADDRESS$ 
-c $ARG1$
        }

[root at nagios]# /usr/nagios/libexec/check_nrpe -H remote.host.IP -c 
check_md_raid
OK - Checked 1 arrays.

Thanks it's all working fine now,
Jim

-- 
Jim Ockers, P.E., P.Eng. (ockers at ockers.net)
Contact info: http://www.ockers.net/

Christopher Cross wrote:
> It sounds like you are only checking the npre plugin version and not 
> the raid check command in your Nagios config. Can you post 
> the relevant parts of your Nagios config files. The host, service, and 
> commands parts should provide enough info.
>
> Christopher Cross
> g1ccross at gmail.com <mailto:g1ccross at gmail.com>
> (310)536-6392
>
>
> On Fri, May 25, 2012 at 3:11 PM, Jim Ockers <ockers at ockers.net 
> <mailto:ockers at ockers.net>> wrote:
>
>     Hi CLUEbies,
>
>     I'll keep this simple since I hope it's a simple question. I set
>     up nagios and it's monitoring a remote system to make sure the
>     RAID array is OK. I'm using the NRPE (remote) plugin because the
>     /proc/mdstat file contains the RAID array health information, and
>     it's not readable from my Nagios server.  In the web interface the
>     status is shown (OK, critical, etc) but no further command output
>     is shown.
>
>     There's a whole "Status Information" column in the web interface
>     and instead of showing some useful command output it shows only
>     "NRPE v2.13".  When I click on the service to drill into the
>     status further, the "Performance Data" is blank where the status
>     output should be.  I think it would be a lot better if the actual
>     plugin output was shown in the web interface.
>
>     When I run the local command it displays this:
>
>     [root]# /usr/nagios/libexec/check_md_raid
>     OK - Checked 1 arrays.
>
>     When I run the remote command from the nagios monitoring server it
>     displays this:
>
>     [root at nagios ~]# /usr/nagios/libexec/check_nrpe -H remote.host.IP
>     -c check_md_raid
>     OK - Checked 1 arrays.
>
>     >From this I know the remote command is working as configured, and
>     the command output is seen on the nagios server when it runs the
>     remote command because it picks up the OK status.  In the web/GUI
>     interface for "Services" it shows OK but the only status
>     information is "NRPE v2.13" instead of the "OK - Checked 1
>     arrays." command output like it shows for every other non-remote
>     Nagios command.
>
>     Help please?  How can I get the remote command output shown in the
>     web interface?  Believe it or not I've tried a variety of google
>     searches for this and got nothing, so help me CLUE you're my only
>     hope!
>
>     Thanks,
>     Jim
>
>     -- 
>     Jim Ockers, P.E., P.Eng. (ockers at ockers.net <mailto:ockers at ockers.net>)
>     Contact info: http://www.ockers.net/
>         
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue/attachments/20120525/d503bf19/attachment-0001.html 


More information about the clue mailing list