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

Send message to Slack

Scheduled Pinned Locked Moved Solved
Feature Request
4
14
5.0k
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.
  • J
    jmeyer
    last edited by jmeyer Feb 8, 2016, 3:45 AM Feb 8, 2016, 9:06 AM

    Hello,
    could it be possible to send, as the Pushbullet plugin, messages to Slack account ?
    Here is the site of Slack if someone want details : https://slack.com/

    https://api.slack.com/methods/chat.postMessage

    Thank you.

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Feb 8, 2016, 5:59 PM

      Thanks for suggesting. I made a wrapper that gives us ultimate access to ALL the api the slack provides.

      You call it (within the plugin or wherever else you may want it), with:

      SlackHandler->call(‘apiToCall’,argumentsassassociativearray);

      Right now it’s only functionality includes the same things that the pushbullet does.

      Add your token, and the username you want it to post to, and it will send the message as slackbot.

      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

      J 1 Reply Last reply Feb 9, 2016, 6:01 AM Reply Quote 0
      • J
        jmeyer @Tom Elliott
        last edited by Feb 9, 2016, 6:01 AM

        @Tom-Elliott you are wonderful. lol

        1 Reply Last reply Reply Quote 0
        • S
          sourceminer
          last edited by Jan 24, 2017, 5:14 AM

          I love this, is there any plugin documentation yet? I’m trying to find where I get the slack API key

          W 1 Reply Last reply Jan 24, 2017, 2:09 PM Reply Quote 0
          • W
            Wayne Workman @sourceminer
            last edited by Wayne Workman Jan 24, 2017, 8:10 AM Jan 24, 2017, 2:09 PM

            @sourceminer See below for test tokens. You’ll probably want a permanent one eventually though.
            0_1485266992091_Slack Access Token.png

            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/

            S 2 Replies Last reply Jan 24, 2017, 4:31 PM Reply Quote 0
            • S
              sourceminer @Wayne Workman
              last edited by Jan 24, 2017, 4:31 PM

              @Wayne-Workman Sweet thanks for the response… I must have missed this, Was looking all over.

              1 Reply Last reply Reply Quote 0
              • S
                sourceminer @Wayne Workman
                last edited by Jan 24, 2017, 4:52 PM

                @Wayne-Workman So I have added the API Key, added the channel (with the Hash symbol right?) Im not seeing any updates.

                W T 2 Replies Last reply Jan 25, 2017, 12:53 AM Reply Quote 0
                • W
                  Wayne Workman @sourceminer
                  last edited by Jan 25, 2017, 12:53 AM

                  @sourceminer Ask @Tom-Elliott about it, I think he’s the one that made the plugin.

                  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 @sourceminer
                    last edited by Jan 25, 2017, 1:32 AM

                    @sourceminer I’m not seeing an issue with the slack plugin. The channel/user only get’s updated at specific points.

                    There’s not a lot of “events” that slack (and pushbullet for that matter) use to present the user with a message. Right now there’s only:

                    1. Login failures
                    2. Image completetion (up or down).
                    3. Snapin Completions (One for each snapin installed and completed, and a final one stating the tasking as a whole is complete.

                    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

                    W S 2 Replies Last reply Jan 25, 2017, 1:35 AM Reply Quote 1
                    • W
                      Wayne Workman @Tom Elliott
                      last edited by Jan 25, 2017, 1:35 AM

                      @Tom-Elliott said in Send message to Slack:

                      @sourceminer I’m not seeing an issue with the slack plugin. The channel/user only get’s updated at specific points.

                      There’s not a lot of “events” that slack (and pushbullet for that matter) use to present the user with a message. Right now there’s only:

                      1. Login failures
                      2. Image completetion (up or down).
                      3. Snapin Completions (One for each snapin installed and completed, and a final one stating the tasking as a whole is complete.

                      #wiki worthy

                      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
                      • S
                        sourceminer @Tom Elliott
                        last edited by Jan 25, 2017, 1:40 AM

                        @Tom-Elliott Thanks, so yes I have the API Key, and the channel I created in my Slack called #deployment. I have deployed and installed snap-ins but have not seen any updates to the channel.

                        T 1 Reply Last reply Jan 25, 2017, 1:42 AM Reply Quote 0
                        • T
                          Tom Elliott @sourceminer
                          last edited by Jan 25, 2017, 1:42 AM

                          @sourceminer If you look at the channel I’ll bet the messages are there.

                          The reason you don’t see it “updating” is because from slack’s perspective, the message is coming from you.

                          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

                          S 1 Reply Last reply Jan 25, 2017, 1:45 AM Reply Quote 0
                          • S
                            sourceminer @Tom Elliott
                            last edited by Jan 25, 2017, 1:45 AM

                            @Tom-Elliott Sorry but no messages in that channel. I just see this message: sourceminer [8:34 AM]
                            deployments Account linked to FOG GUI at: fog.domain.net

                            J 1 Reply Last reply Jan 30, 2017, 3:37 PM Reply Quote 0
                            • J
                              jmeyer @sourceminer
                              last edited by jmeyer Jan 30, 2017, 9:48 AM Jan 30, 2017, 3:37 PM

                              @sourceminer Hello, I never tested using a channel but using a private message works fine with test token.
                              You can also create your bot : https://my.slack.com/services/new/bot

                              0_1485790486968_Sans titre.jpg

                              Here is my conf :
                              0_1485790863612_Sans titre3.jpg
                              0_1485790596846_Sans titre2.jpg

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

                              158

                              Online

                              12.0k

                              Users

                              17.3k

                              Topics

                              155.2k

                              Posts
                              Copyright © 2012-2024 FOG Project