Knowledge Base

Sending notifications via SNMP traps from IPCheck Server Monitor

For notifications you can send SNMP traps from IPCheck Server Monitor by using a freeware command line tool.

IPCheck Server Monitor does not support sending SNMP Traps itself, but by using a external command line tool (EXE) you can send SNMP traps easily:

In this sample we are using the small freeware command line tool "trapgen.exe" from Network Computing Technologies.

  • Download TRAPGEN.EXE from http://www.ncomtech.com/trapgen.html (listed on the download page as "Trap Generator").
  • Unpack the ZIP file and copy trapgen.exe to a folder on the machine running IPCheck (e.g. the folder "c:\trapgen")
  • Create a new notification (or edit an existing one)
  • Scroll down to the Execute Program section
  • For Program File enter the full path to the trapgen.exe file (e.g. c:\trapgen\trapgen.exe)
  • For Parameters enter

    -d xx.xx.xx.xx -v 1.3.6.1.4.1.1824.1.0.0.1 STRING "%server %name %status %down (%msg)"
  • Replace the xx.xx.xx.xx with the IP address where you want the trap to be sent to. If your server port is not 162, then add the -p parameter to set your port.

See the section below for more options of trapgen.exe.

Applies to: V4.x or later

Trapgen uses the following defaults:
		community: public
		sender ip: current host ip
		Trap Type: 6 (enterprise specific)
		Specific Type: 1
		Timestamp: current time value from system (from time(0))
		Use the following command line options to override these
		defaults or use "trapgen -h" for help:
		Other command line parameters:
		-d destinationIpAddress:port e.g., -d 123.45.67.89:1025
		-c communityName e.g., -c private
		-o senderOID e.g., -o 1.3.6.1.4.1.2854
		-i senderIP e.g., -i 199.8.7.6
		-g trapType e.g., -g 5
		-s specificType e.g., -s 23
		-t timestamp e.g., -t 234445
		-r requestId e.g., -r 42
		-m timeout e.g., -m 10