Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    What notification can be sent thru telegram?

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 4 Posters 1.4k Views
    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.
    • S
      Samlink
      last edited by

      Hi everyone, I've just configured telegram notifications, but I don't receive every alert that instead are being sent via smtp.

      For example I correctly receive dns updates and WANs (dis)connections on both mail and telegram, but ups notifications are not being sent via telegram.

      Am I missing something?

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @Samlink
        last edited by

        @samlink said in What notification can be sent thru telegram?:

        but ups notifications are not being sent via telegram.
        Am I missing something?

        Yes.
        This :

        ca862449-763e-4f2c-a518-18f40f91437e-image.png

        The (NUT) UPS package only knows how to send 'mail' aka smtp_send.
        It hasn't been made aware of the fact that other notifications methods exist these days.

        A support request is already in place : [see here](Add support for Telegram/Pushover notifications).

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        S 1 Reply Last reply Reply Quote 1
        • S
          Samlink @Gertjan
          last edited by

          @gertjan thanks, I wrongly thought that every notification was "duplicated" by pfsense, so it could be sent with every settings I set

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @Samlink
            last edited by

            @samlink

            If you are willing to edit a file :

            Add these at the bottom of /usr/local/pkg/nut/nut_email.php :

            notify_via_telegram($message);
            notify_via_pushover($message);
            

            It should now look like :

            41f1ff0e-3683-483d-8ada-cca1c35dadf0-image.png

            if telegram and/or pushover are set up, notices will get send to them.

            Test : cut the power of the UPS.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            S 1 Reply Last reply Reply Quote 0
            • S
              Samlink @Gertjan
              last edited by

              @gertjan >It works flawlessly. Thanks!
              Do I have to update nut_email.php if I install a nut update?

              fireodoF GertjanG 2 Replies Last reply Reply Quote 0
              • fireodoF
                fireodo @Samlink
                last edited by fireodo

                @samlink said in What notification can be sent thru telegram?:

                Do I have to update nut_email.php if I install a nut update?

                Yes. This is valid for any files changed in any other package. Each time the package gets updated/reinstalled you have to remake your individual file modifications.

                Regards,
                fireodo

                Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                pfsense 2.8.0 CE
                Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                1 Reply Last reply Reply Quote 1
                • GertjanG
                  Gertjan @Samlink
                  last edited by Gertjan

                  @samlink said in What notification can be sent thru telegram?:

                  Do I have to update nut_email.php if I install a nut update?

                  Yep, although ask yourself - or me, this question : how often did this happens in the past ?
                  Ones last year ?

                  Install the pfSense "Notes" package, and keep Notes about your setup changes - the URL (to this forum thread) - and whatever you do.
                  This way, you can forget about it.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Or use the patches package and create a patch to do it. That can even be auto applied at a firmware update.

                    GertjanG 1 Reply Last reply Reply Quote 0
                    • GertjanG
                      Gertjan @stephenw10
                      last edited by

                      @stephenw10

                      👍
                      And gets auto discarded when the cited redmine feature request got implemented.

                      On the down side : this needs some discussions with diff and 'patch'.

                      No "help me" PM's please. Use the forum, the community will thank you.
                      Edit : and where are the logs ??

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.