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

SQL script to cleanup database

Scheduled Pinned Locked Moved
General
2
3
643
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
    Greg Plamondon Testers
    last edited by Jun 15, 2018, 1:51 PM

    does anyone have a cleanup query to cleanup hosts in the database that haven’t reported back in a specified amount of time?

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Jun 16, 2018, 2:05 PM

      We don’t keep track of when hosts check in. I guess the closest you could use would be the hostSecTime in the hosts table as it should be regularly cycled. So anything with a last synced time from or earlier than said date could work?

      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

      G 1 Reply Last reply Jul 6, 2018, 2:15 PM Reply Quote 0
      • G
        Greg Plamondon Testers @Tom Elliott
        last edited by Jul 6, 2018, 2:15 PM

        @tom-elliott
        Thanks Tom

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

        156

        Online

        12.1k

        Users

        17.3k

        Topics

        155.3k

        Posts
        Copyright © 2012-2024 FOG Project