Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Looking for ideas…

    Scheduled Pinned Locked Moved Operating
    1 Posts 1 Posters 1.5k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      gservat
      last edited by

      Hi,

      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!

      Thanks
      Gonzalo

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post