How to bypass motd in check_by_ssh

Marcel Mitsuto Fucatu Sugano msugano at uolinc.com
Thu Feb 1 23:03:39 CET 2007


>From check_by_ssh --help:

 -S, --skiplines=n
    Ignore first n lines on STDERR (to suppress a logon banner)

HTH.

PS: Vc estudou no senac?


On Wed, 2007-01-31 at 22:18 -0800, Nelson Serafica wrote:
> I tried to create in one of my remote pc but it still occurs. I just
> touch .hushlogin in my remote's home directory. Then tried to login
> from my pc to remote but motd still occurs.
> 
> 
> ----- Original Message ----
> From: "Frost, Mark {PBG}" <mark.frost1 at pepsi.com>
> To: Nelson Serafica <ntserafica at yahoo.com>;
> nagios-users at lists.sourceforge.net
> Sent: Wednesday, January 31, 2007 8:56:49 PM
> Subject: RE: [Nagios-users] How to bypass motd in check_by_ssh
> 
> Most Unix flavors I've ever seen allow you to create a ".hushlogin"
> file in that particular user's home directory to suppress printing of
> the motd for that particular user at login time.
> 
> touch ~/.hushlogin
> 
> for that user and that user will never see the motd.
> 
> Mark
> 
> 
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net on behalf of Nelson
> Serafica
> Sent: Wed 1/31/2007 2:26 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] How to bypass motd in check_by_ssh
> 
> HI to all,
> 
> Is there a way I can bypass motd of ssh? I cannot execute plugins if
> there's a motd in my ssh. However, when I disable it, I can execute
> the plugins. But the thing is, I do not want to disable  mthe motd in
> the server. I tried the option "-S 500" in check_by_ssh but still
> problem occurs. Please help
>   
> 
> 
> 
> 
> ____________________________________________________________________________________
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail beta.
> http://new.mail.yahoo.com
> 
> 
> 
> 
> 
> 
> ______________________________________________________________________
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________ Nagios-users mailing list Nagios-users at 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


AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. Caso você não seja o destinatário desta mensagem, informamos que qualquer divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos é absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.

NOTICE: The information contained in this e-mail and any attachments thereto is CONFIDENTIAL and is intended only for use by the recipient named herein and may contain legally privileged and/or secret information. If you are not the e-mail´s intended recipient, you are hereby notified that any dissemination, distribution or copy of this e-mail, and/or any attachments thereto, is strictly prohibited. Please immediately notify the sender replying to the above mentioned e-mail address, and permanently delete and/or destroy the original and any copy of this e-mail and/or its attachments, as well as any printout thereof. Additional information about our company may be obtained through the site http://www.uol.com.br/ir/.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list