mirror of
https://github.com/ranl/monitor-utils.git
synced 2026-02-05 22:55:17 +01:00
splitting IT project
This commit is contained in:
19
nagios/pnp/check-cisco-ps.php
Executable file
19
nagios/pnp/check-cisco-ps.php
Executable file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
$opt[1] = '--title ' . $NAGIOS_SERVICEDESC;
|
||||
|
||||
$def[1] = "DEF:var1=$rrdfile:$DS[1]:AVERAGE " ;
|
||||
$def[1] .= "DEF:var2=$rrdfile:$DS[2]:AVERAGE " ;
|
||||
|
||||
$def[1] .= "AREA:var1#FFCC99:\"Total Sum PS \" ";
|
||||
$def[1] .= "GPRINT:var1:LAST:\"%6.2lf last\" " ;
|
||||
$def[1] .= "GPRINT:var1:AVERAGE:\"%6.2lf avg\" " ;
|
||||
$def[1] .= "GPRINT:var1:MAX:\"%6.2lf max\\n\" " ;
|
||||
$def[1] .= 'COMMENT:"Check Command ' . $TEMPLATE[1] . '\r" ';
|
||||
|
||||
$def[1] .= "AREA:var2#00FF00:\"PS Errors\" " ;
|
||||
$def[1] .= "LINE:var2#000000 " ;
|
||||
$def[1] .= "GPRINT:var2:LAST:\"%6.2lf last\" " ;
|
||||
$def[1] .= "GPRINT:var2:AVERAGE:\"%6.2lf avg\" " ;
|
||||
$def[1] .= "GPRINT:var2:MAX:\"%6.2lf max\\n\" ";
|
||||
?>
|
||||
Reference in New Issue
Block a user