Nrpe + Nagiosgraph
David Price
david_price at byu.edu
Tue Oct 10 21:31:29 CEST 2006
Jeronimo Zucco wrote:
> Hi,
>
> Anyone use Nagiosgraph and nrpe/nrpe_nt and have map file of
> nagiosgraph to share with us ?
>
> Thank you for advance.
>
>
Here is what I use:
# Service type: ntload
# check command: check_nt -H Address -v CPULOAD -l5,70,90,30,70,90
# output: CPU Load 9% (5 min average) 11% (30 min average)
# perfdata: '5 min avg Load'=9%;70;80;0;100 '30 min avg
Load'=11%;70;90;0;100
#/perfdata:.*5 min avg Load'=(\d+)%;(\d+);(\d+);\d+;\d+ '30 min avg
Load'=(\d+)%;\d+;\d+;\d+;\d+ /
/output:.*?(\d+)% .*?(\d+)% /
and push @s, [ ntload,
[ avg05min, GAUGE, $1 ],
[ avg30min, GAUGE, $2 ] ];
# Service type: ntmem
# check command: check_nt -H Address -v MEMUSE -w 50 -c 90
# output: Memory usage: total:2467.75 Mb - used: 510.38 Mb (21%) -
free: 1957.37 Mb (79%)
# perfdata: Memory usage=510.38Mb;1233.88;2220.98;0.00;2467.75
/output:.*total:([.0-9]+) Mb - used: ([.0-9]+) Mb/
and push @s, [ ntmem,
[ memused, GAUGE, $2*1024**2 ],
[ memmmax, GAUGE, $1*1024**2 ] ];
# Service type: ntdisk
# check command: check_nt -H Address -v USEDDISKSPACE -lc -w 75 -c 90
# output: c:\ - total: 25.87 Gb - used: 4.10 Gb (16%) - free 21.77 Gb
(84%)
# perfdata: c:\ Used Space=4.10Gb;19.40;23.28;0.00;25.87
/output:.*total: ([.0-9]+) Gb - used: ([.0-9]+) Gb \(([.0-9]+)%\) - free
([.0-9]+) Gb \(([.0-9]+%)\)/
and push @s, [ ntdisk,
[ diskused, GAUGE, $2*1024**3 ],
[ diskmaxi, GAUGE, $1*1024**3 ] ];
Hope that helps,
David Price
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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