diff --git a/snmpparser.sh b/snmpparser.sh index 7131f1e..3c4032e 100644 --- a/snmpparser.sh +++ b/snmpparser.sh @@ -1,3 +1,6 @@ +#All rights reserved Opensource ICT Solutions B.V. +#Free to redistribute with mention to Opensource ICT Solutions + #!/bin/sh read host @@ -18,4 +21,4 @@ done [[ ${host} =~ ((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?) ]] && NUM=${BASH_REMATCH} -printf "ZBXTRAP $NUM\r\n$host $ip $vars\r\n">> /tmp/zabbix_traps.tmp \ No newline at end of file +printf "ZBXTRAP $NUM\r\n$host $ip $vars\r\n">> /tmp/zabbix_traps.tmp diff --git a/snmptrap-parser.py b/snmptrap-parser.py index 3d1c33a..6197ad2 100644 --- a/snmptrap-parser.py +++ b/snmptrap-parser.py @@ -1,3 +1,6 @@ +#All rights reserved Opensource ICT Solutions B.V. +#Free to redistribute with mention to Opensource ICT Solutions + #### #For use with Zabbix #Place in directory @@ -42,4 +45,4 @@ ###Appending it to the log file for Zabbix to pickup### with open(destination, "a") as file: file.write (HEADER + "\n" + r) -###### \ No newline at end of file +######