• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. FlareImp
    3. Posts
    F
    • Profile
    • Following 0
    • Followers 0
    • Topics 30
    • Posts 150
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Fog 1.6.0.14 Master Storage Node not handing off to Slave Storage Nodes

      @Tom-Elliott Okay, thank you for the information.

      posted in FOG Problems
      F
      FlareImp
    • Fog 1.6.0.14 Master Storage Node not handing off to Slave Storage Nodes

      At one of my slave locations I just imaged a 32 PC lab and they all pulled from the Master Storage Node. I have two other Storage Nodes in the group but neither of them got any tasks. Everything stayed with the Master Storage Node. Once the Que was full they just waited in line rather than get the image from one of the other two nodes that had no clients. I even tried coping the Plugin folder to the nodes but that didn’t change anything.

      Fog 1.6.0.14
      Ubuntu 26.04.1

      posted in FOG Problems
      F
      FlareImp
    • RE: Fog 1.6 Multiple Sites, Location not working as intended

      @Tom-Elliott All good! Thank you and keep up the awesome work!

      posted in FOG Problems
      F
      FlareImp
    • RE: Fog 1.6 Multiple Sites, Location not working as intended

      @Tom-Elliott That took care of the replication issue. The folder itself doesn’t vanish. here is the log from my attempt yesterday. “Win11_25H2_Smart26” is the image and TVNE-Fog-Test is the site B fog node.

      [11-02-26 4:59:14 pm] | Deleting remote file: win11/7450 AIO-WIN10-A10-YHP57.CAB
      chmod: Access failed: 550 SITE CHMOD command failed. (./d1p3.img)
      [11-02-26 4:59:16 pm] | Drivers_OptiPlex7450AIO: No need to sync win11/Video.zip file to TVNE-Fog-Test
      [11-02-26 4:59:17 pm] | Drivers_OptiPlex7450AIO: No need to sync WLAN-Tri-Valley.xml file to TVNE-Fog-Test
      [11-02-26 4:59:17 pm] | CMD: lftp -e 'set xfer:log 1; set xfer:log-file “/opt/fog/log/fogreplicator.Drivers_OptiPlex7450AIO.transfer.TVNE-Fog-Test.log”;set ftp:list-options -a;set net:max-retries 10;set net:timeout 30;set net:limit-tot>
      [11-02-26 4:59:17 pm] * Started sync for Image Drivers_OptiPlex7450AIO - Resource id #1100
      [11-02-26 4:59:17 pm] * Not syncing Image between groups
      [11-02-26 4:59:17 pm] | Image Name: Win10Lgcy22H2
      [11-02-26 4:59:17 pm] | There are no members to sync to
      [11-02-26 4:59:17 pm] * Found Image to transfer to 2 groups
      [11-02-26 4:59:17 pm] | Image Name: Win11_25H2_Base
      [11-02-26 4:59:19 pm] | Win11_25H2_Base: No need to sync d1.fixed_size_partitions file to TVNE-Fog-Test
      [11-02-26 4:59:19 pm] | Win11_25H2_Base: No need to sync d1.mbr file to TVNE-Fog-Test
      [11-02-26 4:59:20 pm] | Win11_25H2_Base: No need to sync d1.minimum.partitions file to TVNE-Fog-Test
      [11-02-26 4:59:21 pm] | Win11_25H2_Base: No need to sync d1.original.fstypes file to TVNE-Fog-Test
      [11-02-26 4:59:22 pm] | Win11_25H2_Base: No need to sync d1.original.swapuuids file to TVNE-Fog-Test
      [11-02-26 4:59:23 pm] | Win11_25H2_Base: No need to sync d1.partitions file to TVNE-Fog-Test
      [11-02-26 4:59:24 pm] | Win11_25H2_Base: No need to sync d1.shrunken.partitions file to TVNE-Fog-Test
      [11-02-26 4:59:25 pm] | Win11_25H2_Base: No need to sync d1p1.img file to TVNE-Fog-Test
      [11-02-26 4:59:26 pm] | Win11_25H2_Base: No need to sync d1p2.img file to TVNE-Fog-Test
      [11-02-26 4:59:27 pm] | Win11_25H2_Base: No need to sync d1p3.img file to TVNE-Fog-Test
      [11-02-26 4:59:28 pm] | Win11_25H2_Base: No need to sync d1p4.img file to TVNE-Fog-Test
      [11-02-26 4:59:28 pm] * All files synced for this item
      [11-02-26 4:59:28 pm] * Found Image to transfer to 2 groups
      [11-02-26 4:59:28 pm] | Image Name: Win11_25H2_Smart26
      [11-02-26 4:59:29 pm] | Win11_25H2_Smart26: No need to sync d1.fixed_size_partitions file to TVNE-Fog-Test
      [11-02-26 4:59:30 pm] | Win11_25H2_Smart26: No need to sync d1.mbr file to TVNE-Fog-Test
      [11-02-26 4:59:31 pm] | Win11_25H2_Smart26: No need to sync d1.minimum.partitions file to TVNE-Fog-Test
      [11-02-26 4:59:32 pm] | Win11_25H2_Smart26: No need to sync d1.original.fstypes file to TVNE-Fog-Test
      [11-02-26 4:59:33 pm] | Win11_25H2_Smart26: No need to sync d1.original.swapuuids file to TVNE-Fog-Test
      [11-02-26 4:59:34 pm] | Win11_25H2_Smart26: No need to sync d1.partitions file to TVNE-Fog-Test
      [11-02-26 4:59:35 pm] | Win11_25H2_Smart26: No need to sync d1.shrunken.partitions file to TVNE-Fog-Test
      [11-02-26 4:59:36 pm] | Win11_25H2_Smart26: No need to sync d1p1.img file to TVNE-Fog-Test
      [11-02-26 4:59:37 pm] | Win11_25H2_Smart26: No need to sync d1p2.img file to TVNE-Fog-Test
      [11-02-26 4:59:37 pm] # Win11_25H2_Smart26: File does not exist d1p3.img(TVNE-Fog-Test)
      [11-02-26 4:59:38 pm] | Win11_25H2_Smart26: No need to sync d1p4.img file to TVNE-Fog-Test
      [11-02-26 4:59:38 pm] | CMD: lftp -e 'set xfer:log 1; set xfer:log-file “/opt/fog/log/fogreplicator.Win11_25H2_Smart26.transfer.TVNE-Fog-Test.log”;set ftp:list-options -a;set net:max-retries 10;set net:timeout 30;set net:limit-total-ra>
      [11-02-26 4:59:38 pm] * Started sync for Image Win11_25H2_Smart26 - Resource id #1365
      [11-02-26 4:59:38 pm] * Attempting to perform Group -> Nodes image replication.
      [11-02-26 4:59:38 pm] * Not syncing Image between nodes
      [11-02-26 4:59:38 pm] | Image Name: Apps
      [11-02-26 4:59:38 pm] | There are no members to sync to
      [11-02-26 4:59:38 pm] * Not syncing Image between nodes
      [11-02-26 4:59:38 pm] | Image Name: Drivers
      [11-02-26 4:59:38 pm] | There are no members to sync to
      [11-02-26 4:59:38 pm] * Not syncing Image between nodes
      [11-02-26 4:59:38 pm] | Image Name: Drivers_OptiPlex7450AIO
      [11-02-26 4:59:38 pm] | There are no members to sync to
      [11-02-26 4:59:38 pm] * Not syncing Image between nodes
      [11-02-26 4:59:38 pm] | Image Name: Win10Lgcy22H2
      [11-02-26 4:59:38 pm] | There are no members to sync to
      [11-02-26 4:59:38 pm] * Not syncing Image between nodes
      [11-02-26 4:59:38 pm] | Image Name: Win11_25H2_Base
      [11-02-26 4:59:38 pm] | There are no members to sync to
      [11-02-26 4:59:38 pm] * Not syncing Image between nodes
      [11-02-26 4:59:38 pm] | Image Name: Win11_25H2_Smart26
      [11-02-26 4:59:38 pm] | There are no members to sync to
      [11-02-26 4:59:38 pm] | Sync finished - Resource id #1035

      posted in FOG Problems
      F
      FlareImp
    • RE: Fog 1.6 Multiple Sites, Location not working as intended

      @Tom-Elliott I assigned an image to site B and it starts to replicate but then after a time it will stop coping and the folder will disappear from the /images directory on the storage node. Then once the replication service kicks off again it starts all over again. I didn’t notice this before because I manually ran rsync to mirror what was in the images directory on the main fog server. I have to remote site B set to throttle at 200mb since I don’t want to saturate the pipe.

      posted in FOG Problems
      F
      FlareImp
    • RE: Fog 1.6 Multiple Sites, Location not working as intended

      @Tom-Elliott Option 1 and doing a reboot of the site B node has taken care of the issue. Thanks for your awesomness!

      I have come across another problem though. Would you like a new thread started or just add it here?

      posted in FOG Problems
      F
      FlareImp
    • RE: Fog 1.6 Multiple Sites, Location not working as intended

      When I deploy the image it will show the correct storage node under tasks up until the point of actual deployment, then it switches back to the default location of the Main Fog Server.

      posted in FOG Problems
      F
      FlareImp
    • RE: Fog 1.6 Multiple Sites, Location not working as intended

      @Tom-Elliott My Apologies, when I say site, I’m referring to the location where my fog VMs are at, not what is within the Fog WebGUI.

      Open the host, go to its Location tab. Is it set to the Site B location?
      All 31 Computers are set to “Site B”

      Open that location. Which storage group and which storage node does it show?
      The Storage Group is “SiteB” and the Storage Node is “SiteB-Test”

      Is the image listed in the Site B storage group (Image > Storage Groups tab)?
      The Image is associated with “Site A” and “Site B”

      posted in FOG Problems
      F
      FlareImp
    • Fog 1.6 Multiple Sites, Location not working as intended

      Fog 1.6.0.14
      OS: Ubuntu 24.04
      Hardware: VMs

      I have several locations that I am currently testing the latest release of Fog 1.6.0.14. I have the location plugin on, and by sites setup with corresponding Storage Groups and Storage Nodes. The Main Fog Server with DB is at Site A, A storage node is set to master at Site B. Everything is replicated but when deploying an Image at site B, it will always pull from Site A, unless the Image has its “Image Primary Storage Group” changed to Site B from Site A. After making this change if I deploy at site A then the Image will pull from site B instead of Site A. The images needed to be accessible from all sites at all times but pull from the specific location rather than across our uplink.

      posted in FOG Problems
      F
      FlareImp
    • RE: Issue with creating hooks

      @Tom-Elliott That did not have an impact. still seeing ${serial} on the host list. If it helps I am also seeing at the bottom of my host management page

      ${pingstatus} ${host_name} ${deployed} ${image_name} ${serial}

      posted in FOG Problems
      F
      FlareImp
    • RE: Issue with creating hooks

      This is what is shown when I enable the hook.
      Sys#.png

      posted in FOG Problems
      F
      FlareImp
    • RE: Issue with creating hooks

      The BIOS Hook is one I was working on but I first need to figure out why the ones that were already made aren’t working before I can try testing my own.

      posted in FOG Problems
      F
      FlareImp
    • RE: Issue with creating hooks

      @Tom-Elliott I am not asking for anyone to make anything for me. The hooks I am referring to are already listed in the hooks directory. no of them work except for the VNC one which we don’t use. Below is the serial hook code.

      <?php
      /**
       * The host serial hook.
       *
       * PHP version 5
       *
       * @category AddHostSerial
       * @package  FOGProject
       * @author   Tom Elliott <tommygunsster@gmail.com>
       * @author   Greg Grammon <nah@nah.com>
       * @license  http://opensource.org/licenses/gpl-3.0 GPLv3
       * @link     https://fogproject.org
       */
      /**
       * The host serial hook.
       *
       * @category AddHostSerial
       * @package  FOGProject
       * @author   Tom Elliott <tommygunsster@gmail.com>
       * @author   Greg Grammon <nah@nah.com>
       * @license  http://opensource.org/licenses/gpl-3.0 GPLv3
       * @link     https://fogproject.org
       */
      class AddHostSerial extends Hook
      {
          /**
           * The name of the hook.
           *
           * @var string
           */
          public $name = 'AddHostSerial';
          /**
           * The description of the hook.
           *
           * @var string
           */
          public $description = 'Adds host serial to the host lists';
          /**
           * Is the hook active of not.
           *
           * @var bool
           */
          public $active = false;
          /**
           * Initializes object.
           *
           * @return void
           */
          public function __construct()
          {
              parent::__construct();
              self::$HookManager
                  ->register(
                      'HOST_DATA',
                      array(
                          $this,
                          'hostData'
                      )
                  )
                  ->register(
                      'HOST_HEADER_DATA',
                      array(
                          $this,
                          'hostTableHeader'
                      )
                  );
          }
          /**
           * The data to alter.
           *
           * @param mixed $arguments The items to alter.
           *
           * @return void
           */
          public function hostData($arguments)
          {
              global $node;
              if ($node != 'host') {
                  return;
              }
              $arguments['templates'][] = '${sysserial}';
              $arguments['attributes'][] = array(
                  'class' => 'c',
                  'width' => '20',
              );
              $items = $arguments['data'];
              $hostnames = array();
              foreach ((array)$items as &$data) {
                  $hostnames[] = $data['host_name'];
                  unset($data);
              }
              Route::listem(
                  'host',
                  'name',
                  false,
                  array('name' => $hostnames)
              );
              $Hosts = json_decode(
                  Route::getData()
              );
              $Hosts = $Hosts->hosts;
              foreach ((array)$Hosts as &$Host) {
                  $arguments['data'][$i]['serial'] = $Host
                      ->inventory
                      ->sysserial;
                  unset($Host);
              }
              unset($Hosts);
          }
          /**
           * Alter the table header data.
           *
           * @param mixed $arguments The arguments to alter.
           *
           * @return void
           */
          public function hostTableHeader($arguments)
          {
              global $node;
              if ($node != 'host') {
                  return;
              }
              $arguments['headerData'][] = _('Serial');
          }
      }
      
      
      posted in FOG Problems
      F
      FlareImp
    • RE: Issue with creating hooks

      Any ideas on this? I have still been unable to locate the issue.

      posted in FOG Problems
      F
      FlareImp
    • RE: Clear Additional MAC Addresses

      @FlareImp Issue fixed with

      DELETE * FROM hostMAC where hmPrimary = '0';
      
      posted in General
      F
      FlareImp
    • Issue with creating hooks

      Fog 1.5.9
      Ubuntu 22.04

      I’m trying to make a custom hook to add Bios Version to the Host Management Page but am running into some issues. If i set any of the existing hooks from ‘public $active = false’ to ‘public $active = true’ all I get is a column that shows a $. So if I was to enable ‘addhostserial.hook.php’ I would get a column that says ‘$serial’ rather than the actual serial number of the computer.

      posted in FOG Problems
      F
      FlareImp
    • RE: Showing Last Check-in Time

      @Tom-Elliott dumb question but where would I find the log file for hooks?

      posted in General Problems
      F
      FlareImp
    • RE: Showing Last Check-in Time

      I gave your script a try and it crashes with web UI when set from active=false to active=true.

      posted in General Problems
      F
      FlareImp
    • RE: Showing Last Check-in Time

      @Tom-Elliott Awesome, thank you very much! I’ll start playing around with this.

      posted in General Problems
      F
      FlareImp
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 1 / 8