• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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 Apr 6, 2018, 2:37 AM

    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?

    W 1 Reply Last reply Apr 6, 2018, 2:40 AM Reply Quote 0
    • W
      Wayne Workman @Xenorites
      last edited by Wayne Workman Apr 5, 2018, 8:40 PM Apr 6, 2018, 2:40 AM

      @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
      • T
        Tom Elliott
        last edited by Apr 6, 2018, 3:16 AM

        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 Apr 7, 2018, 11:21 PM

          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?

          T 1 Reply Last reply Apr 7, 2018, 11:42 PM Reply Quote 0
          • T
            Tom Elliott @Xenorites
            last edited by Apr 7, 2018, 11:42 PM

            @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
            1 / 1
            • First post
              1/5
              Last post

            153

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project