This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// constants | |
// holidays or vacations, date format must be the same | |
Set HOLIDAYS = new HashSet(['02.02.2019', '03.02.2019']); | |
// date format need by date check | |
def SIMPLE_DATE_FORMAT = new SimpleDateFormat('dd.MM.YYYY'); | |
// time/date constants | |
long DAY = 24 * 60 * 60 * 1000, HOUR = 60 * 60 * 1000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/alouca/gosnmp" | |
) | |
const ( | |
cmdCommunity string = "public" | |
cmdTarget string = "192.168.0.50" |