cancel
Showing results for 
Search instead for 
Did you mean: 
franco
Level 8

Simulate AV Engine Failure

Jump to solution

Guys,

I have webgateways 7 behind a load balancer & need to test load balacing by . 

Is it possbile to temprory disable AV engine or simulate a failure on Webgateway  7?

Franco

0 Kudos
1 Solution

Accepted Solutions
dstraube
Level 11

Re: Simulate AV Engine Failure

Jump to solution

Hello Franco,

if you need to simulate an AV engine failure while the machine itself is still reachable you can do that by logging in via SSH and stopping the antivirus service:

/etc/init.d/mwg-antimalware stop

Now all request will be blocked, which is the default behaviour in case something is wrong with the AV engine. This is probably something your load balancer can not handle or detect, unless you check for certain error templates.

Otherwise just follow jont717's advice and reboot/shutdown the appliance or just stop the whole MWG service (/etc/init.d/mwg stop) if you still need a ping to go through.

Regards,

Dirk

0 Kudos
5 Replies
jont717
Level 12

Re: Simulate AV Engine Failure

Jump to solution

Just reboot the device.  While it is down, all traffic should be transfered to the only device that is up. 

0 Kudos
dstraube
Level 11

Re: Simulate AV Engine Failure

Jump to solution

Hello Franco,

if you need to simulate an AV engine failure while the machine itself is still reachable you can do that by logging in via SSH and stopping the antivirus service:

/etc/init.d/mwg-antimalware stop

Now all request will be blocked, which is the default behaviour in case something is wrong with the AV engine. This is probably something your load balancer can not handle or detect, unless you check for certain error templates.

Otherwise just follow jont717's advice and reboot/shutdown the appliance or just stop the whole MWG service (/etc/init.d/mwg stop) if you still need a ping to go through.

Regards,

Dirk

0 Kudos
franco
Level 8

Re: Simulate AV Engine Failure

Jump to solution

Thanks Dirk.

That worked.

0 Kudos
v!adimir
Level 7

Re: Simulate AV Engine Failure

Jump to solution

Rebooting or stopping services, as pointed out earlier would do the trick. Depending how how you are performing the health check, blocking a page might work too.

Depending on which load balancer you use, you could do some really fancy health checks. We use F5's and perform the following check (every 10 seconds, kick MWG out of the pool on 3rd failure)

F5 sends HEAD http://www.google.com/ HTTP/1.1\r\nHost: www.google.com\r\nConnection: close\r\n\r\n string to the MWG, if responce is HTTP/1.1 200 OK you know MWG is processing traffic; if no responce or something other then 200 OK you know you have a problem. You will get HTTP/1.0 403 CannotLoadAV responce if AV engine cannot be loaded; just make sure you do not bypass the AV scanning for the site your are checking, or you will be getting 200 OK back even thought the AV engine has stopped/failed.

Cheers,

Vladimir

Message was edited by: v!adimir on 5/20/11 7:45:11 PM CDT
0 Kudos
franco
Level 8

Re: Simulate AV Engine Failure

Jump to solution

Vladmir,

Yes that is exactly what i am doing.

Thanks

0 Kudos