[Nagiosplug-help] check_disk en hp_ux 11i

C. Bensend benny at bennyvision.com
Wed Aug 22 14:00:51 CEST 2007


> <html><div style='background-color:'><DIV class=RTE>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
> face="Times New Roman">hi,</FONT></FONT></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New
> Roman" size=3>    i want check all disks in my server Hp ux
> 11i, it look like ok for all, but there are some case, i have these error
> :</FONT></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New
> Roman" size=3>Can you tell me why, please</FONT></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New
> Roman" size=3>thanks</FONT></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
> face="Times New Roman"></FONT></FONT> </P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
> face="Times New Roman">cpage:/opt/nrpe/libexec: # ./check_disk -w 20 -c 10
> /dev/vgcora2/lvcoradata1<?xml:namespace prefix = o ns =
> "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt"><FONT
> size=3><FONT face="Times New Roman">Unable to read
> output:<o:p></o:p></FONT></FONT></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt"><FONT
> size=3><FONT face="Times New Roman">/usr/bin/df -Pk
> /dev/vgcora2/lvcoradata1<o:p></o:p></FONT></FONT></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt"><FONT
> size=3><FONT face="Times New
> Roman">/dev/vgcora2/lvcoradata1<o:p></o:p></FONT></FONT></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT face="Times New
> Roman" size=3> </FONT></o:p></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT face="Times New
> Roman" size=3> </FONT></o:p></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
> face="Times New Roman">cpage:/opt/nrpe/libexec: # /usr/bin/df -Pk
> /dev/vgcora2/lvcoradata1<o:p></o:p></FONT></FONT></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt"><FONT
> size=3><FONT face="Times New Roman">Filesystem<SPAN style="mso-spacerun:
> yes">         
> </SPAN>1024-blocks<SPAN style="mso-spacerun: yes">  </SPAN>Used<SPAN
> style="mso-spacerun: yes">  </SPAN>Available Capacity Mounted
> on<o:p></o:p></FONT></FONT></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt"><FONT
> size=3><FONT face="Times New
> Roman">/dev/vgcora2/lvcoradata1<o:p></o:p></FONT></FONT></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
> face="Times New Roman"><SPAN style="mso-spacerun:
> yes">                     
> </SPAN>20224792 12313202<SPAN style="mso-spacerun: yes"> 
> </SPAN>7911590<SPAN style="mso-spacerun: yes">   
> </SPAN>61%<SPAN style="mso-spacerun: yes">  
> </SPAN>/cora_data1<o:p></o:p></FONT></FONT></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p><FONT face="Times New
> Roman" size=3> </FONT></o:p></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
> face="Times New Roman">cpage:/opt/nrpe/libexec: # ./check_disk -w 20 -c 10
> /dev/vg08/lvappcs<o:p></o:p></FONT></FONT></P>
> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt"><FONT
> face="Times New Roman" size=3>DISK OK - [787785 kB (19%) free on
> /dev/vg08/lvappcs]</FONT></P>
> <P><BR><BR></P>
> <DIV></DIV><FONT color=#000000></DIV>
> <DIV></DIV></FONT></div><br clear=all><hr>Live.com : <a
> href="http://g.msn.com/8HMBFRFR/2752??PS=47575" target="_top">Fêtez la
> nouvelle année quand vous le voulez avec MSN Hotmail sur votre mobile!</a>
> </html>

Ugh, plain text please.  And no need to email me, and then the
nagiosplug-help list three times in under an hour.  ;)

It's happening because the output of df on that particular volume
spans two seperate lines.  The version of check_disk you're using
can't handle that.  If it's the version you got from bennyvision,
yeah, that's a very old version.

Back when I had to monitor HP-UX machines, I got around this by
using SNMP.  To the best of my knowledge, the plugin has been fixed
since, so you might try building an updated version of the plugins.
No, I do not have an updated build, I don't have a build environment
on HP-UX any longer.

Benny


-- 
"This officer's men seem to follow him merely out of idle curiosity."
                               -- Sandhurst officer cadet evaluation





More information about the Help mailing list