Imported Upstream version 0.6.24+dfsg1
This commit is contained in:
24
share/pnp/templates.dist/check_users.php
Normal file
24
share/pnp/templates.dist/check_users.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
#
|
||||
# Copyright (c) 2006-2010 Joerg Linge (http://www.pnp4nagios.org)
|
||||
# Template for check_users
|
||||
#
|
||||
|
||||
$opt[1] = "--lower=$MIN[1] --vertical-label \"Users\" --title \"Users\" ";
|
||||
|
||||
|
||||
$def[1] = "DEF:var1=$RRDFILE[1]:$DS[1]:MAX " ;
|
||||
$def[1] .= "AREA:var1#00FF00:\"Users logged in \" " ;
|
||||
$def[1] .= "LINE1:var1#000000:\"\" " ;
|
||||
|
||||
if ($WARN[1] != "") {
|
||||
$def[1] .= "HRULE:$WARN[1]#FFFF00 ";
|
||||
}
|
||||
if ($CRIT[1] != "") {
|
||||
$def[1] .= "HRULE:$CRIT[1]#FF0000 ";
|
||||
}
|
||||
|
||||
$def[1] .= "GPRINT:var1:LAST:\"%.0lf $UNIT[1] LAST \" ";
|
||||
$def[1] .= "GPRINT:var1:MAX:\"%.0lf $UNIT[1] MAX \" ";
|
||||
$def[1] .= "GPRINT:var1:AVERAGE:\"%.0lf $UNIT[1] AVERAGE \" ";
|
||||
?>
|
||||
Reference in New Issue
Block a user