Network Traffic
Jeremy Russell
Jeremy.Russell at chickasaw.net
Tue May 27 15:31:25 CEST 2003
Thanks, but will this work with any snmp enabled host, such as Cisco
gear.
-----Original Message-----
From: Francesc Guasch [mailto:frankie at etsetb.upc.es]
Sent: Monday, May 26, 2003 4:08 AM
To: Jeremy Russell
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Network Traffic
Jeremy Russell wrote:
> I've used APAN for a few things, but I would like to know how you set
up
> APAN for network traffic/utilization. What plugins, config, etc, If
you
> would share. Thanks.
You can find how to do it in the apan howto.
http://apan.sourceforge.net/doc/howto.html#net
In addition, this is how I do to check host load
using snmp:
1.- CONFIG NAGIOS services.conf
define service{
use generic-service
host_name HOST_NAME
service_description load
is_volatile 0
contact_groups net-admins
check_command apan!snmpget!5!20
normal_check_interval 3
}
2.- CREATE THE RRD FILE
# rrdtool create /PATH/TO/nagios/rrd/HOSTNAME_load.rrd -s 60 \
DS:1min:GAUGE:300:0:U: DS:5min:GAUGE:300:0:U: \
DS:15min:GAUGE:300:0:U: RRA:AVERAGE:0.5:1:50400 \
RRA:AVERAGE:0.5:60:43800
chown nagios:nagios /PATH/TO/nagios/rrd/HOSTNAME_load.rrd
3.- ADD THIS LINE IN APAN.CFG
HOSTNAME;load;/PATH/TO/NAGIOS/rrd/HOSTNAME_load.rrd;public:.1.3.6.1.4.1.
2021.10.1.3.1|public:.1.3.6.1.4.1.2021.10.1.3.2|public:.1.3.6.1.4.1.2021
.10.1.3.3;1min:LINE2
5min:LINE2 15min:LINE2;Load;%;
4.- Add an icon and a link as extended service-info:
define serviceextinfo{
host_name HOSTNAME
service_description load
notes_url /nagios/cgi-bin/apan.cgi?host=HOSTNAME&service=load
icon_image graph.png
icon_image_alt Load-Stats
}
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list