I am current with two problems!

The first is, that i can't call externel command for checks! It does not
matter with command i call the answers is:

Deactivated service 10.0.1.11:25:  after calling /home/gerente/teste.sh with
> result 72057594037927935
>

And The other problem is i cant send email alerts, it does not say anything!
Just this:

emailalert: Purged real server (stop): 10.0.1.10:143 (200.20.1.105:143)
> DEBUG2: failed to send email message
> failed to send email message
>

 Does anyone have any ideia ?

I first called an python script!


#!/usr/bin/python

import smtplib

server = smtplib.SMTP('HOST')
server.set_debuglevel(0)
server.sendmail('email1','email2','text')
server.quit()


After it i considered it might be the python so i called an bash script!
just to teste a teory and find out the arguments for the script:

#!/bin/bash
>
> log=teste.log
> echo $1 >> $log
> echo $2 >> $log
> echo $3 >> $log
> echo $4 >> $log
> echo $5 >> $log
> echo $6 >> $log
>
>
> exit 0
>


The script runs, normally, but the error is the same! And it deactivates the
server!

Helps ?


Here is my config!

I do have other virtual sections, but i took it out! fors tests, and still
not working!

Thanks!!

checktimeout=10
> checkinterval=2
> autoreload=no
> logfile="local2"
> quiescent=yes
>
> [email protected]
>
> virtual=someip:25
>         netmask=255.255.255.128
>         real=10.0.1.10:25 masq
>         real=10.0.1.11:25 masq
>         service=smtp
>         protocol=tcp
>         checktype= external
>         checkcommand = "/home/gerente/teste.sh"
>






[]'sf.rique
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - [email protected]
Send requests to [email protected]
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Reply via email to