I'm writing a plugin that monitors storage array cache utilization by processing the output of navicli (cli for EMC Clariion arrays).  The problem is that the value for cache utilization is not displaying in the status information field on the nagios web interface.  It seems like a whitespace or hidden character issue, but perls chomp doesn't solve it.<br>
<br>Here's what the output looks like when the plugin is executed at the command line...<br><br># ./check_cache 90 95<br>Percent Dirty Pages 73<br><br>Here's what nagios is displaying in the status information field...<br>
Percent Dirty Pages <br><br>So it's the variable ($dirtypages) derived from the output of navicli that doesn't display.  Here's the plugin (I'm aware this script does nothing, I'm just trying to solve this particular issue)...<br>
<br>#!/usr/bin/perl<br><br>$warn = $ARGV[0];<br>$crit = $ARGV[1];<br>$clariion="garfunkel";<br><br>open (NAVIOUT, "/opt/Navisphere/bin/naviseccli -h $clariion getcache |");<br>while (<NAVIOUT>) {<br>
  chomp $_;<br>  if (/^Prct Dirty Cache Pages =/) {<br>    $dirtypages = (split / +/, $_)[5];<br>  }<br>}<br>chomp $dirtypages;<br>print "Percent Dirty Pages $dirtypages";<br><br>Any help would be greatly appreciated.  <br>
<br>jd<br><br><br>