<?php

#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

#   PNP Template for check_cyrus_imapd
#   Author: Bjoern Bongermino (http://www.bongermino.de/)

$opt[1] = "--vertical-label \"Users \" -l 0 -r --title \"Cyrus IMAPd Load for $hostname\" ";

$def[1]  = "DEF:connections=$rrdfile:$DS[1]:AVERAGE " ;
$def[1] .= "DEF:authenticated_users=$rrdfile:$DS[2]:AVERAGE " ;
$def[1] .= "DEF:unique_users=$rrdfile:$DS[3]:AVERAGE " ;

$def[1] .= "COMMENT:\"\\t\\t\\t\\t\\tLAST\\t\\tAVERAGE\\t\\tMAX\\n\" " ;

$def[1] .= "LINE2:connections#E80C3E:\"connections\\t\\t\\t \" " ;
$def[1] .= "GPRINT:connections:LAST:\"%6.0lf\\t\" " ;
$def[1] .= "GPRINT:connections:AVERAGE:\" %6.0lf\\t\\t\" " ;
$def[1] .= "GPRINT:connections:MAX:\" %6.0lf\\n\" " ;

$def[1] .= "AREA:authenticated_users#0C64E8:\"authenticated_users\\t \" " ;
$def[1] .= "GPRINT:authenticated_users:LAST:\"%6.0lf\\t\" " ;
$def[1] .= "GPRINT:authenticated_users:AVERAGE:\" %6.0lf\\t\\t\" " ;
$def[1] .= "GPRINT:authenticated_users:MAX:\" %6.0lf\\n\" " ;

$def[1] .= "AREA:unique_users#FFFF00:\"unique_users\\t\\t \" " ;
$def[1] .= "GPRINT:unique_users:LAST:\"%6.0lf\\t\" " ;
$def[1] .= "GPRINT:unique_users:AVERAGE:\" %6.0lf\\t\\t\" " ;
$def[1] .= "GPRINT:unique_users:MAX:\" %6.0lf\\n\" " ;
?>
