Add a PNP4Nagios template for the check_syn plugin

svn path=/trunk/nagios-templates/; revision=2217
This commit is contained in:
Pierre Schweitzer 2015-06-27 11:51:11 +00:00
parent 8e360b48cc
commit a4d2dd4c97

View File

@ -0,0 +1,21 @@
<?php
#
# File: check_conntrack_syn.php
# Author: Pierre Schweitzer <pierre@reactos.org>
# Created: 27 Jun 2015
# Licence: GNU GPL v2 or any later version
# Purpose: Template for pnp4nagios & check_syn
#
$opt[0] = '--title "SYN_SENT connections ratio"';
$ds_name[0] = "SYN_SENT connections ratio";
$def[0] = rrd::def("var1", $RRDFILE[1], $DS[2], "AVERAGE");
$def[0] .= rrd::def("var2", $RRDFILE[2], $DS[1], "AVERAGE");
$def[0] .= rrd::area("var1", "#EA8F00", "Total");
$def[0] .= rrd::gprint("var1", "AVERAGE", "%3.3lf");
$def[0] .= rrd::area("var2", "#EACC00", "SYN_SENT") ;
$def[0] .= rrd::gprint("var2", "AVERAGE", "%3.3lf");
?>