[ale] nagios NRPE proxy
Shawn
taaj.shawn at gmail.com
Fri Apr 8 15:24:03 EDT 2011
To add to this .. the nrpe daemon needs to be compiled with
1. Run the configure script with the --enable-command-args
option
2. Set the 'dont_blame_nrpe' directive in the NRPE config
file to 1.
./check_nrpe -H x.x.x.x -c check_ping -a "-H 10.x.x.x. -w 3000.0,80%
-c 5000.0,100% -p 5"
NRPE: Command 'check_ping' not defined
So this is better than the error I was seeing ->
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server
logs for error messages.
so instead of passing arguments with a check i decided to just make the
check command static to the server its talking to.
ex. from the nrpe.cfg of the remote host
command[check_ping_mysqlmaster]=/usr/local/nagios/libexec/check_ping -H
10.x.x.x -w 3000.0,80% -c 5000.0,100% -p 5
this returns
./check_nrpe -H x.x.x.x -c check_ping_patientpadmysqlmaster
PING OK - Packet loss = 0%, RTA = 0.62
ms|rta=0.622000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0
so it looks like im good to go the proxy is working.. Any tips on how to get
this to show as a unique host in nagios?
On Fri, Apr 8, 2011 at 1:40 PM, Shawn <taaj.shawn at gmail.com> wrote:
> I am trying to understand how a NRPE proxy works so I can test this as a
> solution..
>
> Currently my nagios core is outside of the "production" network for various
> reasons. I have NRPE setup via xinetd on two production servers inside this
> network. a number of the servers inside this network are internal only db
> servers with no outbound access.
>
> I found this here ->
>
> http://serverfault.com/questions/117815/distributed-nagios-installation
>
> So I would need the NRPE and plugins i'm using installed on the db
> server..
>
> From the main nagios server: check_nrpe -H NRPEPROXYHOST -c check_ping -H
> 10.0.0.3 ....
> So that makes sense, you call a regular check and then have it run whatever
> check on the internal.. What if I wanted to do something besides a check
> ping, maybe a disk check that requires the plugin to be on the server? Can I
> string something to together? Can anyone provide me with an example of this?
>
> So I assume to do that the NRPE daemon needs to be running on internal db
> server. Which is fine, but when nagios checks through the proxy.. How do I
> configure it to display it is a unique host instead of the NRPEPROXYHOST?
>
> thanks
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20110408/c12a8cf3/attachment-0001.html
More information about the Ale
mailing list