PDA

View Full Version : Reseller get daily bandwith update



mrpddnos
11-18-2010, 02:10 AM
Hi,

I have an reseller account at my webhost. I would like to get an e-mail every day with the status of my bandwith. That way I can monitor it more easilly. Is there an existing API that does this or will I have to script an PHP file for this? And if I have to script it myself, do you know where I could find an tutorial or so?

yours,
bernhard

DirectAdmin Support
11-18-2010, 11:09 PM
Hello,

You'd use the API (http://www.directadmin.com/api.html) to access the command:
CMD_API_RESELLER_STATS

which will dump the info you want.
Setup a cronjob to run this once per day, and email it the bits you want.

John

mrpddnos
11-18-2010, 11:58 PM
I can only find an CMD_API_ADMIN_STATS and CMD_API_USER_STATS API. not an CMD_API_RESELLER_STATS...

DirectAdmin Support
11-19-2010, 12:14 AM
Did you try the versions system (http://www.directadmin.com/versions.php)?
http://www.directadmin.com/features.php?id=368

John

nimafire
11-25-2010, 03:07 AM
how can i use this api ?

mean
12-01-2010, 10:41 PM
how can i use this api ?

http://www.directadmin.com/api.html

:)