SNMP Traps under Nagios:
The SNMP-compatible Didactum monitoring hardware can be integrated into the Nagios management software (NMS). Using specific examples, we will show you how to query the SNMP-capable sensors under Nagios (remotely). You can request the Nagios plugins for the monitoring hardware free of charge from support.
Usage:
./check_element.pl [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd) -i <ID> [-P <port>] [-t <timeout>] [-V]
Command line options:
-v, --verbose
Print additional debugging information
-h, --help
Print this help message
-H, --hostname=HOST
Name or IP address of the host to be checked
-C, --community=Community Name
Community name for the SNMP agent of the host (when using SNMP v1 protocol)
-P, --port=PORT
SNMPD port (default: 161)
-2, --v2c
Use SNMP v2 / v2c (instead of SNMP v1)
-t, --timeout=INTEGER
SNMP timeout in seconds (default: 5)
-V, --version
Version number
-i, --id=INTEGER
Element’s ID
Example configuration of Nagios commands:
Example of a Nagios command:
Nagios plugin for checking the element table (sensors)
This Nagios plugin generates performance data for the analog / discrete sensors from Didactum. An alarm is generated when at least one sensor (element) is in an alarm state. In addition, a warning is issued when at least one sensor reports a warning state.
Usage:
check_element_table.pl [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd) [-P <port>] [-t <timeout>] [-V]
-v, --verbose
Print additional debugging information
-h, --help
Print this help message
-H, --hostname=HOST
Name or IP address of the host to be checked
-C, --community=Community Name
Community name for the SNMP agent of the host (SNMP v1 protocol)
-P, --port=PORT
SNMP port (default: 161)
-2, --v2c
Use SNMP v2 / v2c (instead of SNMP v1)
-t, --timeout=INTEGER
Timeout for SNMP in seconds (default: 5 sec.)
-V, --version
Display the version number
Nagios script for passive querying
This script takes the SNMPTTT parameters (SNMP Trap Translator) and appends them to passive Nagios checks. To install, please save this script in the Nagios plugins/eventhandlers folder. You must add a template for passive tests to the Nagios configuration file and assign this template to, for example, a group of hosts.
Nagios GSM modem script for SMS notification
[Translated to English:] can be sent. The Nagios network management software can thus send important notifications via SMS using the built-in modem.
Usage:
./sendsms -H <host> -p <password> -P <phone number> -m <message>
-H=Hostname
Name or IP address of the host to be checked
-u=user name
Username of the Didactum monitoring system
-p=password
User password of the Didactum monitoring system
-P=phone
Recipient's phone number
-m=message
Content of the SMS message
Save this GSM modem script in the Nagios plugins folder.
Add the commands for SMS notifications to the commands.cfg: