Hi Emilio, Thank you for your interest.
I confirm that I use v2 stable. Here is the content of the file: # Generated by pen 2012-07-17 19:39:00 # pen -S 10 -c 2000 -x 2000 -F '/usr/local/zenloadbalancer/config/ZLB-EXCH-HUB_pen.cfg' -C 127.0.0.1:19621 192.168.135.245:25 no acl 0 no acl 1 no acl 2 no acl 3 no acl 4 no acl 5 no acl 6 no acl 7 no acl 8 no acl 9 acl 9 deny 0.0.0.0 0.0.0.0 no ascii blacklist 30 no block client_acl 0 control_acl 0 debug 0 no delayed_forward no hash no http no log no roundrobin server 0 acl 0 address 192.168.135.5 port 2552 max 0 hard 0 server 1 acl 0 address 192.168.135.6 port 25 max 0 hard 0 server 2 acl 0 address 1.2.3.4 port 25 max 0 hard 0 server 3 acl 0 address 0.0.0.0 port 0 max 0 hard 0 server 4 acl 0 address 0.0.0.0 port 0 max 0 hard 0 server 5 acl 0 address 0.0.0.0 port 0 max 0 hard 0 server 6 acl 0 address 0.0.0.0 port 0 max 0 hard 0 server 7 acl 0 address 0.0.0.0 port 0 max 0 hard 0 server 8 acl 0 address 0.0.0.0 port 0 max 0 hard 0 server 9 acl 0 address 0.0.0.0 port 0 max 0 hard 0 no stubborn timeout 5 tracking 300 no web_stats no weight no prio # ZLB-EXCH-HUB_guardian.conf ZLB-EXCH-HUB:::10:::check_smtp -h HOST -p PORT -t 2:::true:::true Regards, tibz On 17/07/2012 19:06, Emilio Campos wrote: > Please send me your configuration farm file in: > > /usr/local/zenloadbalancer/config/ZLB-EXCH-HUB_pen.cfg > > confirm that your zlb version is v2 stable, also be sure that the > configuration farm includes farmguardian configured with the issue that > you write below. > > Regards > > > 2012/7/17 tibz <[email protected] <mailto:[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 > <http://192.168.135.5:2552> > server[1]: 192.168.135.6:25 <http://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 > <http://192.168.135.5:2552> > **execution OK in server 0 > errorcode: 0 > server[1]: 192.168.135.6:25 <http://192.168.135.6:25> > **execution OK in server 1 > errorcode: 0 > server[2]: 1.2.3.4:25 <http://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] > <mailto:[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] > <mailto:[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 > ------------------------------------------------------------------------------ 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
