Em 09-06-2014 12:25, sven falempin escreveu:
> Detecting bad network is problematic, i try to access external service for 
> this,
> dns and tcp, this can be done inside ifstated.
Do this already, in the same and different ways. It all depends on
what's available for network failure detection on the site. I always
prefer snmp for this. But there are sites where it's not possible to do so.
> For the counter, you could use a file and modified it from ifstated,
> and do a if grep 10 /my/file
> echo "my file reach 10"| mail -s alert root; call real action; erase file,
I use a database for this. Used files in the beginning but improved to a
database. But I need to wait a state change and/or I need to have a <run
every> statement that will make the decision. But, since It's only a
boolean, I need to have several <run every> statements to be able to
cover all cases. This makes the ifstated daemon a little slower, so the
overall link failure detection takes more time.
>
> but lets wait for people with more insight :-)
Yes. I'll probably hack it anyway. But if more people here on tech@
helps with suggestions/directions, I'll probably do a better job. Thanks
in advance for your time.

Cheers,

-- 
Giancarlo Razzolini
GPG: 4096R/77B981BC

Reply via email to