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

[solved]Set Multicast group task with a given name or even the group name

Scheduled Pinned Locked Moved
Feature Request
3
9
827
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.
  • P
    processor
    last edited by processor Apr 15, 2019, 1:18 AM Apr 12, 2019, 2:26 PM

    Hi,

    I’m working for an educational center. I recently discovered FOG which is a great alternative to Ghost.
    I would like to know if there is a way to put a name (or to know it if it exists) for the multicast session created from the group section.

    In our center we have several classrooms, all in their own vlan. Each class is affected to a group. When we install the classroom we use the group multicast, but if a mistake is done it’s really to cancel the good task and re-schedule it because this is what we see :
    a1cc4677-eb6b-4a86-b313-7d6cf6e64884-image.png

    So except with the number of host it’s barely impossible to know which task we have to cancel.

    So would it be possible to add default name with group name for instance for group multicast session?

    Proc.

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Apr 12, 2019, 5:58 PM

      @processor It’s a very simple code change that you might just want to manually add:

      diff --git a/packages/web/lib/fog/group.class.php b/packages/web/lib/fog/group.class.php
      index fa1d763..24b844f 100644
      --- a/packages/web/lib/fog/group.class.php
      +++ b/packages/web/lib/fog/group.class.php
      @@ -525,7 +525,7 @@ class Group extends FOGController
                           $port = $defaultPort;
                       }
                       $MulticastSession = self::getClass('MulticastSession')
      -                    ->set('name', $taskName)
      +                    ->set('name', $taskName . ' - ' . $this->get('name'))
                           ->set('port', $port)
                           ->set('logpath', $Image->get('path'))
                           ->set('image', $Image->get('id'))
      

      @Tom-Elliott Do you see any reason for not adding this? I am not exactly sure if the task name is being used anywhere else and changing it might cause an issue?!?

      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
      • T
        Tom Elliott
        last edited by Apr 12, 2019, 6:14 PM

        I think this is perfectly sufficient and much more descriptive, however, I might suggest adding the date/time as well?

        Something like:

        ->set('name', $taskName . ' - ' . $this->get('name') . ' ' . self::niceDate()->format('Y-m-d H:i:s'))
        

        This way you have more direct knowledge of the tasks and timing of said tasks.

        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 1
        • T
          Tom Elliott
          last edited by Apr 12, 2019, 6:22 PM

          I’ve added something similar to 1.6 now too.

          Thanks for the suggestion.

          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
          • S
            Sebastian Roth Moderator
            last edited by Apr 12, 2019, 7:15 PM

            Added in dev-branch as well.

            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
            • P
              processor
              last edited by Apr 14, 2019, 6:38 PM

              Wow many thanks. for all these answers. I’ll give a try To Sebastian suggest.
              Is there somewhere to see the changelog between 1.5.5 and 1.6?

              T 1 Reply Last reply Apr 14, 2019, 8:45 PM Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Apr 14, 2019, 8:35 PM

                @processor Not sure if that is of much help to you but on github you can compare 1.5.5 (master branch) and the current stage of 1.6 (working-1.6 branch): https://github.com/FOGProject/fogproject/compare/working-1.6

                The changeset is huge and you probably can’t see that as a changelog. @Tom-Elliott is probably the best to ask what changes are in 1.6…

                But the next release 1.5.6 will be coming out before 1.6 is ready anyway.

                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
                • T
                  Tom Elliott @processor
                  last edited by Apr 14, 2019, 8:45 PM

                  @processor And for what 1.5.X (Dev-branch) has vs 1.6:

                  https://github.com/FOGProject/fogproject/compare/dev-branch...working-1.6

                  Eitherway, @Sebastian-Roth is correct.

                  While I hope 1.6 is nearly ready for “prime time” there’s a few things I need to work out before it will be ready. That and some time. I’ve been taking it relatively easy as to what I do these days for coding.

                  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
                  • P
                    processor
                    last edited by Apr 15, 2019, 7:18 AM

                    @Sebastian-Roth, @Tom-Elliott
                    Many thanks!

                    Works exactly like I needed !

                    @Tom-Elliott
                    I’ll take a look at the 1.6 asap

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

                    212

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project