I have the ability not to check by ssh. The script can be run *from* any server 
*to* any server.

I just need to run this script, let's say from nagios server (so no need to 
ssh). I expect from nagios either not to notify me (in that case, the remote 
server status is OK) or send me an alert (But with the output of the script, 
that is actually the erroneous logs, either in the message body or in 
attachement)

Let me know your thoughts please

--- On Mon, 7/9/09, Anthony <[email protected]> wrote:

> From: Anthony <[email protected]>
> Subject: Re: [Nagios-users] shell script in nagios
> To: "Melanie Pfefer" <[email protected]>
> Cc: [email protected]
> Date: Monday, 7 September, 2009, 8:16 PM
> Oops.. I'm a nuff nuff..
> 
> There's a plugin called check_by_ssh in the standard
> set of plugins (at least the source - check to see if your
> install of nagios has it compiled)
> 
> $ ./check_by_ssh --help
> check_by_ssh v2002 (nagios-plugins 1.4.13)
> 
> Copyright (c) 1999 Karl DeBisschop <[email protected]>
> Copyright (c) 2000-2008 Nagios Plugin Development Team
>     <[email protected]>
> 
> 
> This plugin uses SSH to execute commands on a remote host
> 
> Usage: check_by_ssh -H <host> -C <command>
> [-fqv] [-1|-2] [-4|-6]
>        [-S [lines]] [-E [lines]] [-t timeout] [-i
> identity]
>        [-l user] [-n name] [-s servicelist] [-O
> outputfile]
> 
>        [-p port] [-o ssh-option]
> 
> 
> 


      


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to