Imported Upstream version 0.6.24+dfsg1
This commit is contained in:
26
share/pnp/templates.dist/check_swap.php
Normal file
26
share/pnp/templates.dist/check_swap.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
#
|
||||
# Template for check_swap
|
||||
# Copyright (c) 2006-2010 Joerg Linge (http://www.pnp4nagios.org)
|
||||
#
|
||||
# RRDtool Options
|
||||
$opt[1] = "-X 0 --vertical-label MB -l 0 -u $MAX[1] --title \"Swap usage $hostname / $servicedesc\" ";
|
||||
#
|
||||
#
|
||||
# Graphen Definitions
|
||||
$def[1] = "DEF:var1=$RRDFILE[1]:$DS[1]:AVERAGE ";
|
||||
$def[1] .= "AREA:var1#c6c6c6:\"$servicedesc\\n\" ";
|
||||
$def[1] .= "LINE1:var1#003300: ";
|
||||
if ($MAX[1] != "") {
|
||||
$def[1] .= "HRULE:$MAX[1]#003300:\"Capacity $MAX[1] MB \" ";
|
||||
}
|
||||
if ($WARN[1] != "") {
|
||||
$def[1] .= "HRULE:$WARN[1]#ffff00:\"Warning on $WARN[1] MB \" ";
|
||||
}
|
||||
if ($CRIT[1] != "") {
|
||||
$def[1] .= "HRULE:$CRIT[1]#ff0000:\"Critical on $CRIT[1] MB \\n\" ";
|
||||
}
|
||||
$def[1] .= "GPRINT:var1:LAST:\"%6.2lf MB currently free \\n\" ";
|
||||
$def[1] .= "GPRINT:var1:MAX:\"%6.2lf MB max free \\n\" ";
|
||||
$def[1] .= "GPRINT:var1:AVERAGE:\"%6.2lf MB average free\" ";
|
||||
?>
|
||||
Reference in New Issue
Block a user