• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Automatically export host information?

    Scheduled Pinned Locked Moved
    General
    3
    5
    1.1k
    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.
    • X
      Xenorites
      last edited by

      I’m wondering if there is a way for me to have FOG automatically add assets to my asset manager when I add them to FOG? I use Snipe-IT, which is pretty nice as an asset manager, but I have spent enough time copy-pasting info from FOG into Snipe-IT that I want to not be spending time on it any more. Can anybody think of a way to do this?

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @Xenorites
        last edited by Wayne Workman

        @xenorites Research if Snpie-IT has an API of some kind. If it does, then it should be pretty easy to do. Provide documentation if you find it.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott
          last edited by

          https://snipe-it.readme.io/v4.2.0/docs
          https://snipe-it.readme.io/v4.2.0/docs/internally-parsing-the-api

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • X
            Xenorites
            last edited by

            Here is the relevant documentation I have found for Snipe-IT’s API. I have literally no idea what I am doing with this, so I figure no time like the present to learn!

            What would be the recommended method of doing this? I figure I’ll just write a Python script and run it as a cron job. Is this currently my best reference for the FOG API?

            Alternatively, is there a smarter way to do this?

            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @Xenorites
              last edited by

              @xenorites That is indeed the best reference for the fog api. I would recommend, however, use the api sparingly as 1.6 will need new documentation. (This is because we’re moving to datatables, so most of the api is switched around to allow easier integration with datatables.)

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              189

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project