Hooking into server information

3 posts / 0 new
Last post
#1 Mon, 07/21/2014 - 10:26
drguild

Hooking into server information

Currently im just having a look at bootstrap and making a internal portal page for myself and possibly a external site showing all the domains/vhosts I'm running.

Is there anyway I can hook into user info for virtualmin like server domain names, description and usernames etc and show and update that from a webpage?

This way if something changes the pages get auto updated. I was hoping it would be in a mysql database but seems you use a different format somewhere.

I'm on Centos 6.5.

Just curious thats all.

Mon, 07/21/2014 - 10:29
andreychek

Howdy,

You may want to take a look at the Virtualmin command line tools and remote API. You can see details of their usage here:

http://virtualmin.com/documentation/developer/cli

http://virtualmin.com/documentation/developer/http

http://virtualmin.com/documentation/developer/cli_examples

Mon, 07/21/2014 - 10:33
drguild

Found the files in /etc/webmin/virtual-server

I kinda know a little mysql reading but not direct file reading so may be abit over my head to do this.

If anyone has done it themselves feel free to share.

Edit: you posted before my reply without me knowing will look at those thanks.

May be over my head but worth a look anyway.

Topic locked