Skip to content

Commit

Permalink
Merge pull request #1 from OpensourceICTSolutions/add_copyright
Browse files Browse the repository at this point in the history
Add copyright notice
  • Loading branch information
larcorba authored Aug 3, 2020
2 parents 890af93 + d57c308 commit 73c2051
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion snmpparser.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
printf "ZBXTRAP $NUM\r\n$host $ip $vars\r\n">> /tmp/zabbix_traps.tmp
5 changes: 4 additions & 1 deletion snmptrap-parser.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
######
######

0 comments on commit 73c2051

Please sign in to comment.