<div dir="ltr">once you login with ssh and run them at the command line that is fine. The issue now is nagios times out when connecting to these servers. Any firewalls?<br><br>Lex<br><br><div class="gmail_quote">On Tue, Sep 2, 2008 at 12:48 PM, J. Bakshi <span dir="ltr"><<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Alex Dehaini wrote:<br>
> Run the commands interactively and see if you get socket errors? You<br>
> will have socket errors once you can't connect to the machine.<br>
><br>
<br>
</div>I have already run the command at the remote server through (SSH login)<br>
And all the commands are running quite normal.<br>
<br>
I am sorry but how can I run command *interactively* ?<br>
kindly enlighten me.<br>
thanks<br>
<div class="Ih2E3d">> Lex<br>
><br>
> On Tue, Sep 2, 2008 at 12:27 PM, J. Bakshi <<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a><br>
</div><div class="Ih2E3d">> <mailto:<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a>>> wrote:<br>
><br>
> Alex Dehaini wrote:<br>
> > Are all commands above giving you scoket time out or just some<br>
> of them?<br>
><br>
> At a time some of them are giving this error and next time , rest<br>
> of the<br>
> commands generates the error but the others becomes normal from its<br>
> previous state<br>
><br>
><br>
> ><br>
> > Lex<br>
> ><br>
> > On Tue, Sep 2, 2008 at 12:20 PM, J. Bakshi<br>
> <<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a> <mailto:<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a>><br>
</div><div><div></div><div class="Wj3C7c">> > <mailto:<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a><br>
> <mailto:<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a>>>> wrote:<br>
> ><br>
> > Alex Dehaini wrote:<br>
> ><br>
> > Here ae the commands I'm using<br>
> ><br>
> > # nrpe.cfg file<br>
> > #####################<br>
> > # Disk space<br>
> > command[check_space]=/usr/lib/nagios/plugins/check_disk<br>
> check_disk -w<br>
> > 40% -c 20% -p / -u GB<br>
> > #Mailq<br>
> > command[check_mailq]=/usr/lib/nagios/plugins/check_mailq -w<br>
> 10 -c<br>
> > 15 -t 10<br>
> > #SSH<br>
> > command[check_SSH]=/usr/lib/nagios/plugins/check_ssh localhost<br>
> > #HTTP<br>
> > command[check_web]=/usr/lib/nagios/plugins/check_http -H<br>
> localhost -p<br>
> > 80 -w 2 -c 4<br>
> ><br>
> > #IMAPS<br>
> > /usr/lib/nagios/plugins/check_imap -H localhost -p 993 -S<br>
> -w 5 -c 8<br>
> ><br>
> > #POP3s<br>
> > /usr/lib/nagios/plugins/check_pop -H localhost -p 995 -w 5<br>
> -c 8<br>
> > -t 10 -S<br>
> ><br>
> > thanks<br>
> ><br>
> ><br>
> > > socket time out means the plugin timed out after a specific<br>
> > number of<br>
> > > time. Show use the command you are using?<br>
> > ><br>
> > > Lex<br>
> > ><br>
> > > On Tue, Sep 2, 2008 at 11:59 AM, J. Bakshi<br>
> > <<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a> <mailto:<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a>><br>
> <mailto:<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a> <mailto:<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a>>><br>
> > > <mailto:<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a><br>
> <mailto:<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a>><br>
> > <mailto:<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a><br>
> <mailto:<a href="mailto:joydeep@infoservices.in">joydeep@infoservices.in</a>>>>> wrote:<br>
> > ><br>
> > > Dear list,<br>
> > ><br>
> > > Now I am monitoring some servers with nagios and nrpe.<br>
> > > But some times there is an error msg as "critical" and<br>
> it is<br>
> > ><br>
> > > ****** CHECK_NRPE: Socket timeout after 10 seconds.<br>
> ******<br>
> > ><br>
> > > How can I fix this ?<br>
> > ><br>
> > > will -t help ?<br>
> > > thanks<br>
> > ><br>
> > > --<br>
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
> > > Joydeep Bakshi, Linux System Admin<br>
> > > Kolkatainfoservices Pvt Ltd,<br>
> > > 23A Royd Street, Kolkata 700016, India<br>
> > > Work Phone 91 033 40014784<br>
> > > <a href="http://infoservices.in/" target="_blank">http://infoservices.in/</a><br>
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
> > ><br>
> > ><br>
> > ><br>
> ><br>
> -------------------------------------------------------------------------<br>
> > > This SF.Net email is sponsored by the Moblin Your Move<br>
> > Developer's<br>
> > > challenge<br>
> > > Build the coolest Linux based applications with Moblin<br>
> SDK & win<br>
> > > great prizes<br>
> > > Grand prize is a trip for two to an Open Source event<br>
> > anywhere in<br>
> > > the world<br>
> > ><br>
> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> <<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a>><br>
> > <<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> <<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a>>><br>
> > ><br>
> <<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> <<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a>><br>
> > <<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
> <<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a>>>><br>
> > > _______________________________________________<br>
> > > Nagios-users mailing list<br>
> > > <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> <mailto:<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>><br>
> > <mailto:<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> <mailto:<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>>><br>
> > > <mailto:<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> <mailto:<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>><br>
> > <mailto:<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
> <mailto:<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>>>><br>
> > > <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> > > ::: Please include Nagios version, plugin version (-v) and<br>
> > OS when<br>
> > > reporting any issue.<br>
> > > ::: Messages without supporting info will risk being<br>
> sent to<br>
> > /dev/null<br>
> > ><br>
> > ><br>
> > ><br>
> > ><br>
> > > --<br>
> > > Alex Dehaini<br>
> > > Developer<br>
> > > Site - <a href="http://www.alexdehaini.com" target="_blank">www.alexdehaini.com</a> <<a href="http://www.alexdehaini.com" target="_blank">http://www.alexdehaini.com</a>><br>
> <<a href="http://www.alexdehaini.com" target="_blank">http://www.alexdehaini.com</a>><br>
> > <<a href="http://www.alexdehaini.com" target="_blank">http://www.alexdehaini.com</a>><br>
> > > Email - <a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a><br>
> <mailto:<a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a>> <mailto:<a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a><br>
> <mailto:<a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a>>><br>
> > <mailto:<a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a> <mailto:<a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a>><br>
> <mailto:<a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a> <mailto:<a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a>>>><br>
> ><br>
> ><br>
> > --<br>
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
> > Joydeep Bakshi, Linux System Admin<br>
> > Kolkatainfoservices Pvt Ltd,<br>
> > 23A Royd Street, Kolkata 700016, India<br>
> > Work Phone 91 033 40014784<br>
> > <a href="http://infoservices.in/" target="_blank">http://infoservices.in/</a><br>
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Alex Dehaini<br>
> > Developer<br>
> > Site - <a href="http://www.alexdehaini.com" target="_blank">www.alexdehaini.com</a> <<a href="http://www.alexdehaini.com" target="_blank">http://www.alexdehaini.com</a>><br>
> <<a href="http://www.alexdehaini.com" target="_blank">http://www.alexdehaini.com</a>><br>
> > Email - <a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a> <mailto:<a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a>><br>
> <mailto:<a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a> <mailto:<a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a>>><br>
><br>
><br>
> --<br>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
> Joydeep Bakshi, Linux System Admin<br>
> Kolkatainfoservices Pvt Ltd,<br>
> 23A Royd Street, Kolkata 700016, India<br>
> Work Phone 91 033 40014784<br>
> <a href="http://infoservices.in/" target="_blank">http://infoservices.in/</a><br>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
><br>
><br>
><br>
><br>
> --<br>
> Alex Dehaini<br>
> Developer<br>
> Site - <a href="http://www.alexdehaini.com" target="_blank">www.alexdehaini.com</a> <<a href="http://www.alexdehaini.com" target="_blank">http://www.alexdehaini.com</a>><br>
> Email - <a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a> <mailto:<a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a>><br>
<br>
<br>
--<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
Joydeep Bakshi, Linux System Admin<br>
Kolkatainfoservices Pvt Ltd,<br>
23A Royd Street, Kolkata 700016, India<br>
Work Phone 91 033 40014784<br>
<a href="http://infoservices.in/" target="_blank">http://infoservices.in/</a><br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Alex Dehaini<br>Developer<br>Site - <a href="http://www.alexdehaini.com">www.alexdehaini.com</a><br>Email - <a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a><br>
</div>