OHHHH good! then with this log level  the output script is clearer, I think
we are going to add this small modification in the next release.

I'm glad I helped you!!!

Regards

2012/7/18 tibz <[email protected]>

>  Hi Emilio,
>
> Thanks to your modified script and verbose log, i've found the issue ...
> Stupid error in the config... I used "-h" instead of "-H" which was
> displaying the help and probably returning OK since the command completed
> successfully, and was therefore not really testing the backend. It was so
> obvious that I did not see it.
>
> I've attached the modified log anyway, so you can clearly see it.
>
> Sorry for the noise and big thanks for your quick help
> tibz
>
>
> On 18/7/2012 12:36 AM, Emilio Campos wrote:
>
> Hi tibz, I attach you a farmguardian script   with some line of code added
> to include more information in the log, please make a copy of original
> farmguardian in
> /usr/local/zenloadbalancer/app/farmguardian/bin/farmguardian and put here
> my attached file, be sure that the new file has execution permissions and
> rerun your smtp farm for the changes take effect.
>
> Run the new farmguardian some time and after send me the ENTIRE
> farmguardian log for this farm.
>
> Regards
>
> 2012/7/17 tibz <[email protected]>
>
>> Hello,
>>
>> We are about to put the ZLB into production but we would like to receive
>> alerts when a backend server is not reachable.
>> For this I wanted to use our monitoring system and check the logs
>> generated by Farmguardian.
>> For the http checks it works OK, i'm using the "-e" switch and when the
>> text is not detected I see in the logs "execution error" instead of
>> "execution: OK".
>>
>> However for the SMTP check, it doesnt seems to work. I've created a
>> wrong server and intentionnaly misconfigured a backend server to port
>> 2552 instead of 25, however farmguardian keeps saying it's OK.
>>
>>                  farmname: ZLB-EXCH-HUB
>>                  timeout: 5
>>                  blacklist: 30
>>                  timetocheck: 10
>>                  portadmin: 18828
>>                  server[0]: 192.168.135.5:2552
>>                  server[1]: 192.168.135.6:25
>>                  check: check_smtp -h HOST -p PORT -t 2
>>
>> execution in Tue Jul 17 10:56:13 2012 ::
>>                  server[0]: 192.168.135.5:2552
>> **execution OK in server 0
>> errorcode: 0
>>                  server[1]: 192.168.135.6:25
>> **execution OK in server 1
>> errorcode: 0
>>                  server[2]: 1.2.3.4:25
>> **execution OK in server 2
>> errorcode: 0
>>
>>
>> In CLI however, it says it detects it's CRITICAL because connection fails
>>
>> root@VMWZLB001:/usr/local/zenloadbalancer/logs#
>> ../app/libexec/check_smtp -H 192.168.135.5 -p 2552 -t 2
>> Connexion refusée
>> SMTP CRITICAL - 0,004 sec. de temps de réponse|time=0,003530s;;;0,000000
>>
>> root@VMWZLB001:/usr/local/zenloadbalancer/logs#
>> ../app/libexec/check_smtp -H 192.168.135.6 -p 25 -t 2
>> SMTP OK - 0,005 sec. de temps de réponse|time=0,004987s;;;0,000000
>>
>> root@VMWZLB002:~# /usr/local/zenloadbalancer/app/libexec/check_smtp -H
>> 1.2.3.4 -t2
>> CRITICAL - Socket timeout after 2 seconds
>>
>>
>> Any idea what i'm doing wrong?
>>
>> Thanks
>> tibz
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Zenloadbalancer-support mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>>
>
>
>
> --
> Load balancer distribution - Open Source Project
> http://www.zenloadbalancer.com
> Distribution list (subscribe):
> [email protected]
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> _______________________________________________
> Zenloadbalancer-support mailing 
> [email protected]https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Zenloadbalancer-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>
>


-- 
Load balancer distribution - Open Source Project
http://www.zenloadbalancer.com
Distribution list (subscribe): [email protected]
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Zenloadbalancer-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support

Reply via email to