Help with creating a pnp4nagios template

Jim Avery jim at jimavery.me.uk
Thu Jul 1 14:52:25 CEST 2010


On 29 June 2010 22:37, Mirza Dedic <mirde at oppy.com> wrote:

> I was hoping someone out there can help me here, below is my perfdata output
> for checking disk space on remote Win32/64 servers that have NSClient++
> installed.
>
> The perfdata received is in the format of: 'C:'=35.62G;3.99;1.99;0;39.98;
>
...
> Can someone give me an example of a rrd template I would use for this so
> that I can build off it?


I use check_nt rather than check_nrpe so this one might need some tweaking:


<?php
#
# Copyright (c) 2006-2008 Joerg Linge (http://www.pnp4nagios.org)
# Template für check_nt -v USEDDISKSPACE -l
# $Id: check_nt_disk.php 367 2008-01-23 18:10:31Z pitchfork $
#
#
#
# RRDtool Options
$opt[1] = "--vertical-label GB -u $MAX[1] -l 0 --title \"Used
Diskspace for $hostname / $servicedesc\" ";
#
#
# Graph Definitions
$def[1] =  "DEF:var1=$rrdfile:1:AVERAGE ";
$def[1] .= "AREA:var1#c6c6c6: ";
$def[1] .= "LINE1:var1#003300: ";
$def[1] .= "HRULE:$MAX[1]#003300:\"Capacity $MAX[1]GB \" ";
$def[1] .= "HRULE:$WARN[1]#ffff00:\"Warning on $WARN[1]GB  \" ";
$def[1] .= "HRULE:$CRIT[1]#ff0000:\"Critical on $CRIT[1]GB \\n\" ";
$def[1] .= "GPRINT:var1:LAST:\"%6.2lf GB Last \\n\" ";
$def[1] .= "GPRINT:var1:MIN:\"%6.2lf GB Min \\n\" ";
$def[1] .= "GPRINT:var1:MAX:\"%6.2lf GB Max \\n\" ";
$def[1] .= "GPRINT:var1:AVERAGE:\"%6.2lf GB Average \" ";
?>

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
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