Re: [Nagios-users] check_by_ssh - please clarify.

2007-10-04 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Live Great
 Sent: Wednesday, October 03, 2007 2:02 AM
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] check_by_ssh - please clarify.
 
 If I want to set Nagios distribution architecture, can I still use
 check_by_ssh with NSCA server?
 eg.
 Nagios central server -- NSCA ---execute ssh-- host 1
 
 in this sense, NSCA will gather information from host 1 using
 check_by_ssh, and send back the collected data to the Nagios central
 server.
 
 Is this possible? how to setup the monitoring architecture like this?

If you haven't guessed, what you're trying to accomplish isn't clear.
The question, as you've put it, doesn't make sense. About the only case
I can think of that you might need to use NSCA and check_by_ssh together
were if you were checking a third host that was only accessible from a
second host, neither of which are directly accessible by your nagios
server (i.e. firewalled, or other).

send_nsca can be run on a remote host to send check results executed by
an external program (nagios on that remote host or your own script),
back to another nagios machine running NSCA. This is a passive check for
nagios. Nagios doesn't 'call' or 'run' nsca or send_nsca. The
Distributed Monitoring documentation, while specific to running a
distributed nagios instance, talks about how this is accomplished.

check_by_ssh is a plugin that is actively run by your nagios machine
that will ssh into a remote host, execute a nagios plugin installed
there and return the results to nagios as an active check. If you have
direct access to the monitored machine and don't mind setting up
key-based authentication for this purpose, this is probably the easiest
way to go. Another option might be NRPE.

Both accomplish the pretty much the same thing, just in very different
ways.

--
Marc

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_by_ssh - please clarify.

2007-10-04 Thread Live Great
Hi,

Thank you for the explanation.
I read through the Distributed Monitoring Document in the following link:
http://nagios.sourceforge.net/docs/2_0/distributed.html

In the last section Performing Host Checks, 
It mentions ochp command can be used for processing host check. 
Can I use check_by_ssh in the ochp command?
The reason of using check_by_ssh is that my clients don't want to have an 
*Agent* installed in their server.
If I can use check_by_ssh with ochp, my goal is accomplished.

Thanks
Sam

- Original Message 
From: Marc Powell [EMAIL PROTECTED]
To: nagios-users@lists.sourceforge.net
Sent: Thursday, October 4, 2007 11:02:17 PM
Subject: Re: [Nagios-users] check_by_ssh - please clarify.



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Live Great
 Sent: Wednesday, October 03, 2007 2:02 AM
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] check_by_ssh - please clarify.
 
 If I want to set Nagios distribution architecture, can I still use
 check_by_ssh with NSCA server?
 eg.
 Nagios central server -- NSCA ---execute ssh-- host 1
 
 in this sense, NSCA will gather information from host 1 using
 check_by_ssh, and send back the collected data to the Nagios central
 server.
 
 Is this possible? how to setup the monitoring architecture like this?

If you haven't guessed, what you're trying to accomplish isn't clear.
The question, as you've put it, doesn't make sense. About the only case
I can think of that you might need to use NSCA and check_by_ssh together
were if you were checking a third host that was only accessible from a
second host, neither of which are directly accessible by your nagios
server (i.e. firewalled, or other).

send_nsca can be run on a remote host to send check results executed by
an external program (nagios on that remote host or your own script),
back to another nagios machine running NSCA. This is a passive check for
nagios. Nagios doesn't 'call' or 'run' nsca or send_nsca. The
Distributed Monitoring documentation, while specific to running a
distributed nagios instance, talks about how this is accomplished.

check_by_ssh is a plugin that is actively run by your nagios machine
that will ssh into a remote host, execute a nagios plugin installed
there and return the results to nagios as an active check. If you have
direct access to the monitored machine and don't mind setting up
key-based authentication for this purpose, this is probably the easiest
way to go. Another option might be NRPE.

Both accomplish the pretty much the same thing, just in very different
ways.

--
Marc

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null




-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] check_by_ssh - please clarify.

2007-10-03 Thread Live Great
Hi,

This is the follow up the previous question.
For example, if I want to check disk info in a remote host,
In the NSCA server, I will define the following config:
define command{
command_namecheck_slash_free
command_line $USER1$/check_by_ssh -i /var/ssh/nagios-key -l root -H 
$HOSTADDRESS$ -C '$USER1$/check_disk -w $ARG1$ -c $ARG2$ -p /'
}Do I only need to install check_disk script/program in the remote host 
without installing nagios and other nagios plugins?

Thanks[
Sam

- Original Message 
From: Live Great [EMAIL PROTECTED]
To: nagios-users@lists.sourceforge.net; nagios-users@lists.sourceforge.net
Sent: Wednesday, October 3, 2007 4:14:25 PM
Subject: check_by_ssh - please clarify.

Hi, 

I am aware that NSCA can uses check_by_ssh to check remote host.
I am wondering if this means I don't have to install NSCA or Nagios plugins in 
remote host?

Thanks
Sam





-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] check_by_ssh - please clarify.

2007-10-03 Thread Live Great
Hi, 

I am aware that NSCA can uses check_by_ssh to check remote host.
I am wondering if this means I don't have to install NSCA or Nagios plugins in 
remote host?

Thanks
Sam

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] check_by_ssh - please clarify.

2007-10-03 Thread Live Great
If I want to set Nagios distribution architecture, can I still use check_by_ssh 
with NSCA server?
eg.
Nagios central server -- NSCA ---execute ssh-- host 1

in this sense, NSCA will gather information from host 1 using check_by_ssh, and 
send back the collected data to the Nagios central server.

Is this possible? how to setup the monitoring architecture like this?

Links, reference/guides are most welcome.

Thanks
Sam

- Original Message 
From: Live Great [EMAIL PROTECTED]
To: nagios-users@lists.sourceforge.net
Sent: Wednesday, October 3, 2007 4:22:48 PM
Subject: Re: check_by_ssh - please clarify.

Hi,

This is the follow up the previous question.
For example, if I want to check disk info in a remote host,
In the NSCA server, I will define the following config:
define command{
command_namecheck_slash_free
command_line $USER1$/check_by_ssh -i /var/ssh/nagios-key -l root -H 
$HOSTADDRESS$ -C '$USER1$/check_disk -w $ARG1$ -c $ARG2$ -p /'
}Do I only need to install check_disk script/program in the remote host 
without installing nagios and other nagios plugins?

Thanks[
Sam

- Original Message 
From: Live Great [EMAIL PROTECTED]
To:
 nagios-users@lists.sourceforge.net; nagios-users@lists.sourceforge.net
Sent: Wednesday, October 3, 2007 4:14:25 PM
Subject: check_by_ssh - please clarify.

Hi, 

I am aware that NSCA can uses check_by_ssh to check remote host.
I am wondering if this means I don't have to install NSCA or Nagios plugins in 
remote host?

Thanks
Sam









-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null