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

    Any way to define what kind of notifications to send on growl?

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 1 Posters 669 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.
    • E
      Eskir
      last edited by

      Hey guys, I'm new to this whole thing and I've been wondering.

      Right now I have PFSense running on a Zbox with 4 Interfaces, and I want to use Growl to push a notification whenever one of the interfaces goes down or becomes unavailable.

      I've tested Growl on PFsense and it works a charm but I'm kind of missing any info what so ever on how I can tell PFsense what and when to send notifications.

      I also tried writing a small PERL script, but that hasn't gone anywhere since the script cancels out at registering an action (Using Growl::GNTP) with the message

      Missing key hash at /usr/local/lib/perl5/site_perl/Growl/GNTP.pm line 114.
      

      I'm completely new to Perl as well so it's safe to say I'm lost.

      Here's the Perl thing by the way:

      use strict;
      use warnings;
      use Growl::GNTP;
      
      my $growl = Growl::GNTP->new(
                              PeerHost=>"192.168.2.30",
                              PeerPort=>23053,
                              AppName=>"PFSenseTest",
                              AppIcon=>"",
                              Password=>"",
                              PasswordHashAlgorithm=>"",
                              EnvryptAlgorithm=>""
                              );
      
      $growl->register(
                      [
                              {
                                      Name => "PFSENSE-GrowlTEST",
                                      DisplayName => "PFSENSETEST",
                                      Enabled => "True",
                                      Sticky => "False",
                                      Priority => 0,
                                      Icon => ""
                              }
                      ]
              );
      
      $growl->notify(
                      Event => "PFSENSE-GrowlTEST",
                      Title => "test",
                      Message => "This is a test"
              );
      
      
      1 Reply Last reply Reply Quote 0
      • E
        Eskir
        last edited by

        Bump?

        Sorry to be double posting but does seriously no one know anything about this?

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