<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi,<br><br>Thank you for the explanation.<br>I read through the Distributed Monitoring Document in the following link:<br><span><a target="_blank" href="http://nagios.sourceforge.net/docs/2_0/distributed.html">http://nagios.sourceforge.net/docs/2_0/distributed.html</a></span><br><br>In the last section "<strong><u>Performing Host Checks", </u></strong><br>It mentions ochp command can be used for processing host check. <br>Can I use check_by_ssh in the ochp command?<br>The reason of using check_by_ssh is that my clients don't want to have an *Agent* installed in their server.<br>If I can use check_by_ssh with ochp, my goal is accomplished.<br><br>Thanks<br>Sam<br><br><div style="font-family: times new roman,new
 york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Marc Powell <marc@ena.com><br>To: nagios-users@lists.sourceforge.net<br>Sent: Thursday, October 4, 2007 11:02:17 PM<br>Subject: Re: [Nagios-users] check_by_ssh - please clarify.<br><br><div><br><br>> -----Original Message-----<br>> From: nagios-users-bounces@lists.sourceforge.net [mailto:nagios-users-<br>> bounces@lists.sourceforge.net] On Behalf Of Live Great<br>> Sent: Wednesday, October 03, 2007 2:02 AM<br>> To: nagios-users@lists.sourceforge.net<br>> Subject: Re: [Nagios-users] check_by_ssh - please clarify.<br>> <br>> If I want to set Nagios distribution architecture, can I still use<br>> check_by_ssh with NSCA server?<br>> eg.<br>> Nagios central server <--> NSCA ---execute ssh--> host 1<br>> <br>> in this sense, NSCA will gather information from host 1 using<br>> check_by_ssh, and send back the collected data to the
 Nagios central<br>> server.<br>> <br>> Is this possible? how to setup the monitoring architecture like this?<br><br>If you haven't guessed, what you're trying to accomplish isn't clear.<br>The question, as you've put it, doesn't make sense. About the only case<br>I can think of that you might need to use NSCA and check_by_ssh together<br>were if you were checking a third host that was only accessible from a<br>second host, neither of which are directly accessible by your nagios<br>server (i.e. firewalled, or other).<br><br>send_nsca can be run on a remote host to send check results executed by<br>an external program (nagios on that remote host or your own script),<br>back to another nagios machine running NSCA. This is a passive check for<br>nagios. Nagios doesn't 'call' or 'run' nsca or send_nsca. The<br>Distributed Monitoring documentation, while specific to running a<br>distributed nagios instance, talks about how this is
 accomplished.<br><br>check_by_ssh is a plugin that is actively run by your nagios machine<br>that will ssh into a remote host, execute a nagios plugin installed<br>there and return the results to nagios as an active check. If you have<br>direct access to the monitored machine and don't mind setting up<br>key-based authentication for this purpose, this is probably the easiest<br>way to go. Another option might be NRPE.<br><br>Both accomplish the pretty much the same thing, just in very different<br>ways.<br><br>--<br>Marc<br><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by: Splunk Inc.<br>Still grepping through log files to find problems?  Stop.<br>Now Search log events and configuration files using AJAX and a browser.<br>Download your FREE copy of Splunk now >> <a target="_blank"
 href="http://get.splunk.com/">http://get.splunk.com/</a><br>_______________________________________________<br>Nagios-users mailing list<br>Nagios-users@lists.sourceforge.net<br><a target="_blank" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <br>::: Messages without supporting info will risk being sent to /dev/null<br></div></div><br></div></div></body></html>