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]
farmguardian
Description: Binary data
------------------------------------------------------------------------------ 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
