<div dir="ltr">temporarily all access from nagios server to access these servers<br><br><div class="gmail_quote">On Tue, Sep 2, 2008 at 1:14 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>
> once you login with ssh and run them at the command line that is fine.<br>
> The issue now is nagios times out when connecting to these servers.<br>
> Any firewalls?<br>
<br>
</div>Yes I have firewall since these are production server but I have rules<br>
for nagios too<br>
<br>
## NRPE port ####<br>
iptables -A INPUT -i $IFACE -p tcp -m tcp --dport 5666 -j ACCEPT<br>
<br>
thanks for your reply<br>
<div class="Ih2E3d"><br>
><br>
> Lex<br>
><br>
> On Tue, Sep 2, 2008 at 12:48 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>
> > 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>
> I have already run the command at the remote server through (SSH<br>
> 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>
> > Lex<br>
> ><br>
> > On Tue, Sep 2, 2008 at 12:27 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 class="Ih2E3d">> > <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>
> > > 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 ,<br>
> rest<br>
> > of the<br>
> > commands generates the error but the others becomes normal<br>
> 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>
> <mailto:<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>><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>
> > > 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>
> > ><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<br>
> 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<br>
> -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<br>
> 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><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>> <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><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><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<br>
> nrpe.<br>
> > > > But some times there is an error msg as<br>
> "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>
> -------------------------------------------------------------------------<br>
> > > > This SF.Net email is sponsored by the Moblin<br>
> Your Move<br>
> > > Developer's<br>
> > > > challenge<br>
> > > > Build the coolest Linux based applications with<br>
> Moblin<br>
> > SDK & win<br>
> > > > great prizes<br>
> > > > Grand prize is a trip for two to an Open Source<br>
> 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>
> > <<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>
> > > > <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>
> <mailto:<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>>>>><br>
> > > ><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<br>
> 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><br>
> <<a href="http://www.alexdehaini.com" target="_blank">http://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>><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>><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>>><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>
> > <<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>