Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
flingo
byflingo, September 23, 2015
This is the best plugin I've tested so far. Very flexible. Includes PerfData. Results are consistent w/ F5's Admin GUI!
byflingo, September 23, 2015
To add performance data, change line 83-end:
if($tmm_cpu > $cpu_crit) {
print "CRITICAL: TMM CPU utilization on $host is higher than threashold ($cpu_crit) - $tmm_cpu%";
$RC=$ERRORS{"CRITICAL"};
}
if($mem_prct > $mem_crit){
print "CRITICAL: TMM Memory utilization on $host is higher than threashold ($mem_crit) - $mem_prct%";
$RC=$ERRORS{"CRITICAL"};
}
if($tmm_cpu > $cpu_warn) {
print "WARNING: TMM CPU utilization on $host is higher than threashold ($cpu_warn) - $tmm_cpu%";
$RC=$ERRORS{"WARNING"};
}
if($mem_prct > $mem_warn){
print "WARNING: TMM Memory utilization on $host is higher than threashold ($mem_warn) - $mem_prct%";
$RC=$ERRORS{"WARNING"};
}
if (!defined $RC){
print "OK: TMM CPU is $tmm_cpu%, TMM Memory utilization is $mem_prct%";
$RC=$ERRORS{"OK"};
}
print "| cpu_percent=$tmm_cpu;$cpu_warn;$cpu_crit memory_percent=$mem_prct;$mem_warn;$mem_crit
";
exit($RC);
if($tmm_cpu > $cpu_crit) {
print "CRITICAL: TMM CPU utilization on $host is higher than threashold ($cpu_crit) - $tmm_cpu%";
$RC=$ERRORS{"CRITICAL"};
}
if($mem_prct > $mem_crit){
print "CRITICAL: TMM Memory utilization on $host is higher than threashold ($mem_crit) - $mem_prct%";
$RC=$ERRORS{"CRITICAL"};
}
if($tmm_cpu > $cpu_warn) {
print "WARNING: TMM CPU utilization on $host is higher than threashold ($cpu_warn) - $tmm_cpu%";
$RC=$ERRORS{"WARNING"};
}
if($mem_prct > $mem_warn){
print "WARNING: TMM Memory utilization on $host is higher than threashold ($mem_warn) - $mem_prct%";
$RC=$ERRORS{"WARNING"};
}
if (!defined $RC){
print "OK: TMM CPU is $tmm_cpu%, TMM Memory utilization is $mem_prct%";
$RC=$ERRORS{"OK"};
}
print "| cpu_percent=$tmm_cpu;$cpu_warn;$cpu_crit memory_percent=$mem_prct;$mem_warn;$mem_crit
";
exit($RC);
byflingo, September 23, 2015
the poolname option is -P not -p.
Performance data would be nice.
Performance data would be nice.