Apan
Tom
nagios at comcast.net
Wed Oct 29 22:18:33 CET 2003
Using the below example can you use snmpgetnext instead of snmpget? (in the service definition) Seems that snmpget won't work with w2k boxes but snmpgetnext will?
This is the net-usage example?
Measure bandwith-usage
1. Create a service-definition in Nagios:
define service {
host_name server
service_description Net-usage
check_command apan!snmpget!10!20
use generic-service
normal_check_interval 1
}Note that the last two arguments in the check_command not are used by this plugin.
2. Create a RRD:
rrdtool create /usr/local/nagios/rrd/server_Net-usage.rrd -s 60 DS:IN:COUNTER:300:0:U DS:OUT:COUNTER:300:0:U RRA:AVERAGE:0.5:1:50400 RRA:AVERAGE:0.5:60:43800
3. Add a line in apan.cfg:
server;Net-usage;/usr/local/nagios/rrd/server_Net-usage.rrd;public:.1.3.6.1.2.1.2.2.1.10.2|public:.1.3.6.1.2.1.2.2.1.16.2;IN:LINE2 OUT:LINE2;Network throughput;Bytes/sek;
4. Add an icon and a link as extended service-info:
define serviceextinfo{
host_name server
service_description Net-usage
notes_url /nagios/cgi-bin/apan.cgi?host=server&service=Net-usage
icon_image graph.png
icon_image_alt View graphs
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031029/931600df/attachment.html>
More information about the Users
mailing list