I'll assume it will be a script, but how would I take server information and place it into a postgres table?

What I'm trying to do (using Python, Pscyopg, and Postgresql) is have cron run a script every few hours from remote servers and throw their information into a postgres table on a host computer.