Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

cd /usr/local/omk/conf/parser_plugins/

vim snmpTrap.pm

snmpTrap.pm file Download here: snmpTrap.pm

*****************************************************************************************************************************************************************************

package snmpTrap;
our $VERSION="0.0.1";

...

    # return 1; # happy, go on, use my changes
    # return 0;    # ignore this event
    # return "i have a problem"; # error, do not use my changes
    if ( $ditch == '1' ) {
        return 0;
    }
    else {
        return 1;
    }
}

1; 

*****************************************************************************************************************************************************************************