Avast script for Nagios

Hi,

I have to install a Nagios server in my company with alerts if the virus database of avast client are not up to date. So i would like to know how can i have this data ? I want to create a script to output this data and others data like reports, quarantine… I have to ask the database of Avast or can I ask the Avast server ?

If you know a script to do that it will be great, else have you got some idea ?

Thanks in advance,

(Sorry for my english)

Loris