mirror of
https://github.com/reactos/monitoring.git
synced 2024-11-23 03:29:44 +00:00
[NAGIOS]
Add a PNP4Nagios template for the check_syn plugin svn path=/trunk/nagios-templates/; revision=2217
This commit is contained in:
parent
8e360b48cc
commit
a4d2dd4c97
21
nagios-templates/check_conntrack_syn.php
Normal file
21
nagios-templates/check_conntrack_syn.php
Normal 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");
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user