Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
nickletellier
bynickletellier, September 19, 2014
Graphing/performance data was missing from the script, I've added it.
Add
my $metric = "|cpu_use=".$cpu_usage."%;$o_warning;$o_critical;";
after the following line (line 99 I think):
$return_str= "CPU Usage $cpu_usage % :";
And then change:
print $return_str,$state,"\n";
to
print $return_str,$state,$metric,"\n";
And Nagios will get performance data which can then be graphed.
Add
my $metric = "|cpu_use=".$cpu_usage."%;$o_warning;$o_critical;";
after the following line (line 99 I think):
$return_str= "CPU Usage $cpu_usage % :";
And then change:
print $return_str,$state,"\n";
to
print $return_str,$state,$metric,"\n";
And Nagios will get performance data which can then be graphed.