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

    Fog running great, minor pet peeve, OS icon display

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    5
    152
    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.
    • A
      aurfalien
      last edited by

      Hello,

      I’ve been running the latest Fog 1.5.10.1629 w/o issue. Mainly capturing and deploying Linux with plans to do the same for Windows and maybe even Macs.

      And it is working wonderfully. A slight mod was to use a NAS as my FTP and NFS storage locations which is working out fantastically well.

      My only issue which is cosmetic, is that my host icons in the admin panel are showing as Windows rather than Linux.

      Is this metadata of sorts in the database and can I use phpMyadmin to change it?

      Or, better to phrase my question as, is there a way that I can manually change it?

      Things like this really bother me.

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

        @aurfalien I suspect that you have the hoststatus plugin enabled then? This isn’t a default feature of fog nor is it well flushed out.

        The plugin is handling this and effectively always sets to windows when the ping status code is 0. If the ping status code was 111, it’s linux, but These aren’t arbitrary values. If you know it’s all Linux, then you could adjust the hook:

        /var/www/fog/lib/plugins/hoststatus/hooks/addhoststatushost.hook.php at around line 96, change the values of “windows” to linux so it would read:
        printf($strtoupdate, 'linux', 'linux', 'green', 'Linux');

        That said, it’s only good for you as the next update would reset this to what we evaluate it to. There isn’t really a method of knowing for 100% certain its a windows or linux machine, so not really sure how best to approach this.

        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

        A 1 Reply Last reply Reply Quote 0
        • A
          aurfalien
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • A
            aurfalien @Tom Elliott
            last edited by

            Hey there Tom and many thanks for the reply.

            I’m curios about something as I didn’t really customize anything other then adding network storage.

            In terms of plugins, I do see a section under Fog System Settings > Plugin System but it’s not enabled. So is that what you mean by the hoststatus plugin as being part of that suite?

            However I’ll go ahead and edit referenced PHP file.

            Does this setting mean that it’s default and if by chance I do include Windows into my Fog imaging, then it could be seen as Windows which i would like?

            I did a little cursory reading on my issue and it seems that Fog mistook my Linux boxes to be Windows, although one system that I registered was seen properly as Linux.

            I’ve more systems to register and will update this thread.

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

              @aurfalien I’m sorry, I am generally working in working-1.6 and even there I was mistaken.

              The file you’re looking for is likely /var/www/fog/lib/fog/host.class.php.

              It follows similar rules though the line you’d want changed would be at 2199 I think.

              Hopefully this helps?

              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
              • [[undefined-on, A aurfalien, ]]
              • 1 / 1
              • First post
                Last post

              197

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project