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



  • 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"
            );
    
    


  • Bump?

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


Log in to reply