<div dir="ltr">Connect to the host locally and telnet on each of the ports that are opened. Verify if you have a firewall running that are filtering access to the machine in anyway.<br><br>telnet localhost 25 - if that works<br>
<br>Connect another machine to the same switch and telnet ip.addr.xx.xx 25 and see if you can connect<br><br>If these work, there is no reason why nagios plugins shouldn't work<br><br>Regards,<br>Lex<br><br><div class="gmail_quote">
On Tue, Sep 2, 2008 at 9:00 AM, Arno Lehmann <span dir="ltr"><<a href="mailto:al@its-lehmann.de">al@its-lehmann.de</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;">
Hello,<br>
<br>
please respond to the list.<br>
<br>
02.09.2008 10:44, J. Bakshi wrote:<br>
> Arno Lehmann wrote:<br>
>> Hi,<br>
>><br>
>> 02.09.2008 09:37, J. Bakshi wrote:<br>
>>> Dear list,<br>
>>><br>
>>> I have installed<br>
>>><br>
>>> nagios-nrpe   2.0<br>
>>> nagios-plugins  1.4<br>
>>> nagios-plugins-extras 1.4<br>
>>><br>
>>> How can I check smtps, ldaps, pop3s, imaps  with nrpe ?<br>
>>> the default check_smtp ; check_imap etc can't check the SSL version of<br>
>>> the services.<br>
>> Mine can; call them with -h for help and read the output. I usually<br>
>> use the -S swich plus, as needed, -p for the target port.<br>
>><br>
>> Example output:<br>
>> $ /usr/local/nagios3/libexec/check_imap -H <a href="http://192.168.1.2" target="_blank">192.168.1.2</a> -S -p 993 -D 12<br>
>> OK - Certificate will expire on 04/27/2009 21:13.<br>
>> IMAP OK - 0.060 second response time on port 993 [* OK IMAP4 Ready<br>
>> <a href="http://balrog.privat.lehleute.de" target="_blank">balrog.privat.lehleute.de</a> 0001b1a4]|time=0.059891s;;;0.000000;10.000000<br>
>><br>
><br>
> Hi Arno,<br>
><br>
> first of all thanks for your kind response. I have also found the "-S"<br>
> option but the story is different here and it is<br>
> negative :-(<br>
><br>
> here is the nmap output which proves the required port are open<br>
<br>
It does not actually prove the services are listening on localhost,<br>
and that access is not filtered, for example by hosts files.<br>
<br>
> PORT     STATE SERVICE<br>
> 25/tcp   open  smtp<br>
> 80/tcp   open  http<br>
> 143/tcp  open  imap<br>
> 389/tcp  open  ldap<br>
> 443/tcp  open  https<br>
> 465/tcp  open  smtps<br>
> 993/tcp  open  imaps<br>
> 995/tcp  open  pop3s<br>
> 1234/tcp open  hotline<br>
> 2000/tcp open  callbook<br>
> 3306/tcp open  mysql<br>
><br>
> more important I can use the SSL enabled services, like pop3s , smtps etc...<br>
><br>
> If I check with check_smtp I get the following<br>
><br>
> /usr/lib/nagios/plugins/check_smtp -H localhost  -p 465 -S  -v<br>
> CRITICAL - Socket timeout after 10 seconds<br>
<br>
Check with the ip address that is usually used - it's quite possible<br>
the service is not bound to localhost.<br>
<br>
> And here is the check fir ftp :-(<br>
><br>
> /usr/lib/nagios/plugins/check_ftp -H localhost  -p 60021 -S  -v<br>
> CRITICAL - Cannot make  SSL connection 13948:error:140770FC:SSL<br>
> routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:478:<br>
><br>
> Plese note I am practically using ftps, smtps, pop3s<br>
><br>
> I have no clue really.<br>
> Hope you can enlighten me to point out my mistake.<br>
<br>
Try what I suggested... that's what I'd do now.<br>
<br>
Arno<br>
<br>
> with many thanks<br>
><br>
>> Arno<br>
>><br>
>>> thanks<br>
>>><br>
>>><br>
><br>
><br>
<br>
--<br>
Arno Lehmann<br>
IT-Service Lehmann<br>
Sandstr. 6, 49080 Osnabrück<br>
<a href="http://www.its-lehmann.de" target="_blank">www.its-lehmann.de</a><br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<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>
<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 OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</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>