<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3354" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Verdana size=2><SPAN 
class=530333608-23062008>Hi</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN 
class=530333608-23062008></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=530333608-23062008>I'm using the 
sun_hardware plugin and it works fine on V240 / Solaris 9, </SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=530333608-23062008>but i found a 
couple of problems i want to report, </SPAN></FONT><FONT face=Verdana 
size=2><SPAN class=530333608-23062008>and hopefully gets corrected 
:)</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN 
class=530333608-23062008></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=530333608-23062008>I'ts concerning 
the cpu check, where i found 2 errors</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN 
class=530333608-23062008></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=530333608-23062008>- On solaris 10 
CPU state is returnes as "on-line" instead of online (see my correction 
below) </SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=530333608-23062008>- On V245 servers 
with solaris 10 the subroutine check_cpu is called 5 times, i dont know 
why</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=530333608-23062008>   and i 
havent been able to correct it. Please mail me if you want printouts from 
the server. </SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN 
class=530333608-23062008></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN 
class=530333608-23062008></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=530333608-23062008>sub check_cpu 
{<BR>  my (%cpu) = %{(shift)};<BR>  my $res = 
$ERRORS{'OK'};<BR></SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=530333608-23062008>  if 
(!(($cpu{'State'} eq 'online') || ($cpu{'State'} eq 'on-line'))) 
{<BR>    $res_str .= "CPU $cpu{'cpuid'}: $cpu{'State'}; 
";^M<BR>    $res = $ERRORS{'CRITICAL'};^M<BR>  }<BR>  
$res_str .= "CPU $cpu{'cpuid'}: OK; " if(($res == $ERRORS{'OK'}) && 
!defined($opt_errors_only));<BR>  return $res;<BR>}<BR></SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=530333608-23062008>V245 test (solaris 
10)</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN 
class=530333608-23062008>  </SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2># ./check_sun_hardware -c cpu -d</FONT></DIV>
<DIV><FONT face=Verdana size=2><BR>  SUNW,UltraSPARC-IIIi (cpu, 
9700000108)<BR>  :_fru_parent   (9700000890H) <BR>  
:StateBegin    Tue Feb 26 14:43:50 2008 <BR>  
:FPUType       sparcv9 <BR>  
:ProcessorType         sparcv9 
<BR>  :State         on-line 
<BR>  :ID    0 <BR>  :UnitAddress   0,0 
<BR>  :ecache-size   0x100000 <BR>  :reg   
00  00  04  00  00  00  00  00  00  
00  00  00  00  01  00  00 <BR>  
:portid        0 <BR>  
:cpuid         0 <BR>  
:device_type   cpu <BR>  :icache-size   0x8000 
<BR>  :icache-line-size      0x20 <BR>  
:icache-associativity  0x4 <BR>  
:#itlb-entries         0x10 <BR>  
:dcache-size   0x10000 <BR>  
:dcache-line-size      0x20 <BR>  
:dcache-associativity  0x4 <BR>  
:#dtlb-entries         0x10 <BR>  
:sparc-version         0x9 <BR>  
:ecache-line-size      0x40 <BR>  
:ecache-associativity  0x4 <BR>  
:mask#         0x34 <BR>  
:implementation#       0x16 <BR>  
:manufacturer#         0x3e <BR>  
:clock-frequency       0x59a53800 <BR>  
:clock-divisors        00  00  
00  01  00  00  00  02  00  00  00  
20 <BR>  :pm-components        
(9700000111TBL) <BR>   | NAME=CPU Speed |<BR>   | 1=1/32 of 
Normal |<BR>   | 2=1/2 of Normal |<BR>   | 3=Normal 
|<BR>  :devfs-path    /SUNW,UltraSPARC-IIIi@0,0 <BR>  
:driver-name   us <BR>  :binding-name  SUNW,UltraSPARC-IIIi 
<BR>  :bus-addr      0,0 <BR>  
:instance      0 <BR>  
:_class        cpu <BR>  :name  
SUNW,UltraSPARC-IIIi <BR>Use of uninitialized value in string eq at 
./check_sun_hardware line 156, <F> line 41.<BR>Use of uninitialized value 
in string eq at ./check_sun_hardware line 156, <F> line 41.<BR>Use of 
uninitialized value in concatenation (.) or string at ./check_sun_hardware line 
157, <F> line 41.<BR>Use of uninitialized value in concatenation (.) or 
string at ./check_sun_hardware line 157, <F> line 41.<BR>Use of 
uninitialized value in string eq at ./check_sun_hardware line 156, <F> 
line 41.<BR>Use of uninitialized value in string eq at ./check_sun_hardware line 
156, <F> line 41.<BR>Use of uninitialized value in concatenation (.) or 
string at ./check_sun_hardware line 157, <F> line 41.<BR>Use of 
uninitialized value in concatenation (.) or string at ./check_sun_hardware line 
157, <F> line 41.<BR>Use of uninitialized value in string eq at 
./check_sun_hardware line 156, <F> line 41.<BR>Use of uninitialized value 
in string eq at ./check_sun_hardware line 156, <F> line 41.<BR>Use of 
uninitialized value in concatenation (.) or string at ./check_sun_hardware line 
157, <F> line 41.<BR>Use of uninitialized value in concatenation (.) or 
string at ./check_sun_hardware line 157, <F> line 41.<BR>Use of 
uninitialized value in string eq at ./check_sun_hardware line 156, <F> 
line 41.<BR>Use of uninitialized value in string eq at ./check_sun_hardware line 
156, <F> line 41.<BR>Use of uninitialized value in concatenation (.) or 
string at ./check_sun_hardware line 157, <F> line 41.<BR>Use of 
uninitialized value in concatenation (.) or string at ./check_sun_hardware line 
157, <F> line 41.<BR>Result string:<BR>CPU 0: OK; CPU : ; CPU : ; CPU : ; 
CPU : ; </FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Performance data:</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2><BR>CRITICAL: CPU 0: OK; CPU : ; CPU : ; CPU : ; 
CPU : ; <BR># </FONT></DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=da><FONT face=Verdana size=2><SPAN 
class=530333608-23062008>Thanks,</SPAN></FONT></SPAN></P>
<P><SPAN lang=da><FONT face=Verdana size=2>Kind regards</FONT><FONT 
face="Times New Roman"><BR><B></B></FONT><B><FONT face=Verdana size=2>Peter 
Calum</FONT></B><BR><BR></SPAN></P></BODY></HTML>