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

Ping monitoring

Scheduled Pinned Locked Moved pfSense Packages
17 Posts 5 Posters 972 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.
  • B
    bigjohns97
    last edited by bigjohns97 Jun 19, 2024, 1:17 AM Jun 19, 2024, 1:15 AM

    I am trying to setup something on pfsense that will ping a local client and then send an email alert whenever it is down.

    Currently running telegraf and ntopng and sending to influx databases for some grafana dashboards but can't seem to find something you would think is so simple.

    I did notice the following option in the telegraf plugin,
    c573b298-27c9-4c99-8d52-de8924909226-image.png

    But I can't seem to find where it puts it in the database and would really just like for pfsense to email me whenever this ip doesn't respond to ping.

    Also thought this would be somewhere in ntopng but can't seem to find it there either.

    B 1 Reply Last reply Jun 20, 2024, 3:19 PM Reply Quote 0
    • B
      bigjohns97 @bigjohns97
      last edited by bigjohns97 Jun 20, 2024, 3:19 PM Jun 20, 2024, 3:19 PM

      I was able to find this solution on my own using ntopng.

      Enabling alerts and then using the active monitoring section to setup a continuous ping measurement to my local host worked flawlessly.

      One thing to note is you do have to make sure and enter your smtp host with smtps:// or else it won't be able to send the emails.

      G D 2 Replies Last reply Jun 20, 2024, 3:46 PM Reply Quote 0
      • G
        Gertjan @bigjohns97
        last edited by Jun 20, 2024, 3:46 PM

        @bigjohns97 said in Ping monitoring:

        One thing to note is you do have to make sure and enter your smtp host with smtps:// or else it won't be able to send the emails.

        Aka port 465. If your mail host (mail server) needs you to do so. Like, for example, gmail.
        Other, using submission, using port 587, don't need that.

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

        B 1 Reply Last reply Jun 20, 2024, 3:59 PM Reply Quote 0
        • B
          bigjohns97 @Gertjan
          last edited by Jun 20, 2024, 3:59 PM

          @Gertjan While gmail is supposed to support both ports I tried both and neither would work until I used the smtps prefix.

          Was able to find this in a github support thread it wasn't in any documentation.

          G 1 Reply Last reply Jun 21, 2024, 5:51 AM Reply Quote 0
          • G
            Gertjan @bigjohns97
            last edited by Jun 21, 2024, 5:51 AM

            @bigjohns97

            You make me doubt now.
            Are you talking about the pfSense Nortifications ( System > Advanced > Notifications )

            239d8228-9750-4d1a-9afc-9e88939a283e-image.png

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

            B 1 Reply Last reply Jun 21, 2024, 1:21 PM Reply Quote 0
            • B
              bigjohns97 @Gertjan
              last edited by Jun 21, 2024, 1:21 PM

              @Gertjan No I meant you had to do this in ntopng, in pfsense the above config you have would work.

              For example here is the config in ntopng.

              955b499e-861a-48a6-8b38-c67599e592f6-image.png

              I spent a lot of time troubleshooting why just putting smtp.gmail.com wouldn't work, you had to put the prefix of smtps:// in front or it would error out. I guess I figured it would see the port 465 and know it needed to be secure.

              I was posting in case anyone else tried this because I couldn't find the prefix requirement anywhere on the ntopng docs.

              K 1 Reply Last reply Jun 21, 2024, 1:44 PM Reply Quote 0
              • K
                keyser Rebel Alliance @bigjohns97
                last edited by Jun 21, 2024, 1:44 PM

                @bigjohns97 Be aware that NtopNG does use a fair bit of ressources and does a substantial amount of diskwrites/sec in the default setup because it will start monitoring all traffic on a interface. If you only use it for ping monitoring you should probably disable the monitoring of interface traffic - to prevent it wearing your SSD/eMMC out and to conserve CPU ressources.

                Love the no fuss of using the official appliances :-)

                B 1 Reply Last reply Jun 21, 2024, 1:48 PM Reply Quote 2
                • B
                  bigjohns97 @keyser
                  last edited by Jun 21, 2024, 1:48 PM

                  @keyser I appreciate the heads up but I was already running ntopng for traffic DPI grafana dashboard shown below

                  https://github.com/lephisto/pfsense-analytics

                  e6eeac51-f782-482b-8ad5-177e85e083d3-image.png

                  I have also turned off all of the local stuff possible while just leaving the timeseries required for the DPI stuff above that is hosted on another system on the LAN.

                  M 1 Reply Last reply Jun 21, 2024, 1:54 PM Reply Quote 0
                  • M
                    michmoor LAYER 8 Rebel Alliance @bigjohns97
                    last edited by Jun 21, 2024, 1:54 PM

                    @bigjohns97 what version of pfsense do you have this running on. The comments on the GIT page have some not able to get it working on 2.6.
                    There are other issues with the docker stack as well. Just worried you may be running out of date and insecure software to get this data.

                    Firewall: NetGate,Palo Alto-VM,Juniper SRX
                    Routing: Juniper, Arista, Cisco
                    Switching: Juniper, Arista, Cisco
                    Wireless: Unifi, Aruba IAP
                    JNCIP,CCNP Enterprise

                    B 1 Reply Last reply Jun 21, 2024, 1:58 PM Reply Quote 0
                    • B
                      bigjohns97 @michmoor
                      last edited by Jun 21, 2024, 1:58 PM

                      @michmoor 24.03 the latest release

                      M 1 Reply Last reply Jun 21, 2024, 2:20 PM Reply Quote 0
                      • M
                        michmoor LAYER 8 Rebel Alliance @bigjohns97
                        last edited by Jun 21, 2024, 2:20 PM

                        @bigjohns97 if you got it working it would help others if you posted how on git. There seems to be a fair amount of people struggling—just a suggestion.

                        Firewall: NetGate,Palo Alto-VM,Juniper SRX
                        Routing: Juniper, Arista, Cisco
                        Switching: Juniper, Arista, Cisco
                        Wireless: Unifi, Aruba IAP
                        JNCIP,CCNP Enterprise

                        B 1 Reply Last reply Jun 21, 2024, 2:24 PM Reply Quote 0
                        • B
                          bigjohns97 @michmoor
                          last edited by Jun 21, 2024, 2:24 PM

                          @michmoor I would be happy to, share what you found and I will help best I can.

                          I found this solution on git under the ntopng project

                          https://github.com/ntop/ntopng/issues/8174

                          1 Reply Last reply Reply Quote 0
                          • D
                            dennypage @bigjohns97
                            last edited by dennypage Jun 23, 2024, 2:52 PM Jun 22, 2024, 4:02 AM

                            @bigjohns97 said in Ping monitoring:

                            I was able to find this solution on my own using ntopng.

                            Enabling alerts and then using the active monitoring section to setup a continuous ping measurement to my local host worked flawlessly.

                            FWIW, I strongly recommend reading through the code before considering use of ntopng active monitoring, most especially on a firewall. It does things you might not expect or want, such as ssh probes.

                            B 1 Reply Last reply Jun 22, 2024, 3:07 PM Reply Quote 0
                            • B
                              bigjohns97 @dennypage
                              last edited by Jun 22, 2024, 3:07 PM

                              @dennypage Are you talking about the built in behavioral checks, because I disable all of those.

                              a82a0f34-10eb-41fb-8cc3-458a6744327f-image.png

                              D 1 Reply Last reply Jun 22, 2024, 6:27 PM Reply Quote 0
                              • D
                                dennypage @bigjohns97
                                last edited by Jun 22, 2024, 6:27 PM

                                @bigjohns97 said in Ping monitoring:

                                @dennypage Are you talking about the built in behavioral checks, because I disable all of those.

                                The ssh probes are from the os fingerprinting system and cannot be separately disabled.

                                Enabling active mode gives ntopng license to do things that have no business being on a firewall. I actually would have disabled it in the package if there were a command line option to do so.

                                B 1 Reply Last reply Jun 22, 2024, 8:57 PM Reply Quote 0
                                • B
                                  bigjohns97 @dennypage
                                  last edited by Jun 22, 2024, 8:57 PM

                                  @dennypage Help me understand what the risks are here, to me this is nothing more than what an nmap scan would do.

                                  D 1 Reply Last reply Jun 23, 2024, 5:33 AM Reply Quote 0
                                  • D
                                    dennypage @bigjohns97
                                    last edited by Jun 23, 2024, 5:33 AM

                                    @bigjohns97 said in Ping monitoring:

                                    Help me understand what the risks are here, to me this is nothing more than what an nmap scan would do.

                                    Ntopng is an autonomous agent, whereas nmap is not. Consider that. You should look at the ntopng code and decide for your self. The best I can tell you is that I have, and I recommend against enabling it.

                                    FWIW, you may have different views on network security that I do.

                                    1 Reply Last reply Reply Quote 1
                                    9 out of 17
                                    • First post
                                      9/17
                                      Last post
                                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                      This community forum collects and processes your personal information.
                                      consent.not_received