request for APAN config examples

Steve Dussaux stevox2000 at yahoo.com
Fri Mar 21 14:40:21 CET 2003


I think I can help you :

Here is the apan cfg file :

#####for NRPE disk usage######
host1;Disk-usage;/usr/local/nagios/rrd/host1_disk-usage.rrd;c|d;c-used:AREA c-free:STACK
d-used:AREA d-free:STACK;Disk usage;Bytes;-l 1 -b 1024;
#####for NRPE load usage######
host1;Load;/usr/local/nagios/rrd/host1_load-usage.rrd;CPULOAD|MEMUSE;cpuload:AREA
memuse:AREA;NT_Load;%;-l 1 -b 1024;
#############################################

check_nt and NPRE are the same plugin for apan...
The fact that you have 2 AREA type tell Apan to draw 2 graphs.

And here is the services.cfg

#####Service for NRPE disk usage#####
define service {
...
service_description	Disk-usage ;very important this MUST be the same as defined in apan.cfg
check_command		apan!nt-disk!150!100 ;WARNING thresolds= 150 MB  CRITICAL thresold= 100 MB
...
}
#####Service for NRPE load usage#####
define service {
...
service_description	Load
check_command		apan!nt-load ; the WARNING and the CRITICAL thresolds are predefined in
apan/plugs/load.sh
}
#############################################

and finally the command to create the rrd files :

#####RRD file for disk-usage######
rrdtool create /usr/local/nagios/rrd/host1_disk-usage.rrd --step 300 DS:c-used:GAUGE:600:0:U
DS:c-free:GAUGE:600:0:U DS:d-free:GAUGE:600:0:U DS:d-used:GAUGE:600:0:U RRA:AVERAGE:0.5:1:600
RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600
RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
#####RRD file for load-usage######
rrdtool create /usr/local/nagios/rrd/host1_load-usage.rrd --step 300 DS:cpuload:GAUGE:600:0:U
DS:memuse:GAUGE:600:0:U RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775
RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
#############################################

I hope these lines are what you were searching for.
If you have problems don't hesitate...

Steve

 --- "Carroll, Jim P [Contractor]" <jcarro10 at sprintspectrum.com> a écrit : > I'm trying (once
again) to take a crack at setting up APAN.  However, the
> examples seem a little ambiguous.
> 
> Could anyone send me snippets of, say, the following:
> 
> - disk check using check_nt
> - disk check using NRPE
> - load check using NRPE
> 
> I should be able to figure out the rest from that, with any luck.
> 
> The snippets I'm looking for would relate to both services.cfg and apan.cfg.
> If you can remember (or reconstruct) the command to create the rrd files,
> those would be helpful, too.
> 
> TIA,
> 
> jc
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Tablet PC.  
> Does your code think in ink? You could win a Tablet PC. 
> Get a free Tablet PC hat just for playing. What are you waiting for? 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> _______________________________________________
> 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 

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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