Looking for ideas…
I've been working on this all day and I thought maybe someone here has a better way of doing the following:
I'm currently parsing Puppet YAML files which contain all the useful info about a server that I need such as CPU, memory, RAM, OS, serial number, IP address etc. and creating a XML file to import into I-DOIT. The idea is to run this script regularly to keep I-DOIT updated with any changes.
The script works fine when all the "connected" objects exist in the exported XML, but when they don't exist, it is currently a manual procedure to create the OS (or whatever) in I-DOIT, exporting to XML again and running the script. Ideally when I hit a missing OS (or whatever object), I'd like to be able to instantiate an I-DOIT class to create a new object, but a) I'm writing the script in Python and b) if I decided to use PHP, is there an example somewhere of how a PHP script can include I-DOIT classes to query/add/delete objects?
I hope the above made sense. Any ideas/feedback are welcome!