|
 |
Monitoring
|
Introduction
NeDi is capable of monitoring your devices and generate simple availability reports. The active part is a simple monitoring script, which polls the uptime. This way it'll detect reboots easily. If you have snmptrapd installed you can also have traps sent to NeDi. Alternatively you can use syslog.pl for passive monitoring.
Monitoring Health
Monitoring Messages
Monitoring Setup
Setup Active Part
moni.pl
There are some settings in nedi.conf you should have a look at first (SMS notification is not implemented yet). Then you can select devices (and dependencies, if desired) to be polled in Monitoring-Setup. Start moni.pl -v to check, whether the uptime is read from devices. You can daemonize it with the -D option, if it looks good.
Setup Passive Part
syslog.pl
Since syslog is listening on port 514, you'll need to be root to run this script. Try it with -v first to see, whether messages are received. Daemonize it with -D for permanent use. Severities are mapped to NeDi's internal message levels:
- 6 & 7 to Info
- 4 & 5 to Notice
- 3 & 2 to Warning
- 1 & 0 to Critical (generates notifications)
This applies only for sources found in the device database. Any other messages will be given Info level.
SNMP Traps
Traps are handeled, but the processing is kept simple in favour of syslog development. Add the following line to your /etc/snmp/snmptrapd.conf (or so):
traphandle default /usr/bin/perl /opt/nedi/trap.pl
|
A few traps are identified, but I haven't really worked out a concept to classify all of them yet.
| © 2oo5 r2 |
|