<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV class=Section1><FONT size=2>Hi,</FONT></DIV>
<DIV class=Section1><FONT size=2>I also encountered this problem on an older
server at my work - RedHat 7.1 (this OS was RIP circa 2002).</FONT></DIV>
<DIV class=Section1><FONT size=2>It can be circumvented by commenting out the
"argv=np_extra_opts(...)" line. </FONT><FONT size=2>This function allows the
inclusion of additional command line options from an external config file.
But we will have to live without it.</FONT></DIV>
<DIV class=Section1><FONT size=2>I can't find the root of the problem, but
it seems to involve the included kernel headers. I have studied the
cpp pre-processor output but can't see the fault :-( I'm just not
experienced enough.</FONT></DIV>
<DIV class=Section1><FONT size=2></FONT> </DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">[nigelp@zulu-wks4 plugins]$ gcc -v</FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN><FONT
face="Courier New"><?xml:namespace prefix = st1 ns =
"urn:schemas-microsoft-com:office:smarttags" /><st1:City w:st="on"><st1:place
w:st="on"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Reading</SPAN></st1:place></st1:City><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> specs from
/usr/lib/gcc-lib/i386-redhat-linux/2.96/specs</SPAN></FONT></DIV>
<DIV class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT face="Courier New">gcc version
2.96 20000731 (Red Hat Linux 7.1 2.96-81)</FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" /><o:p><FONT face="Courier New"
size=2></FONT></o:p></SPAN> </DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">[nigelp@zulu-wks4 plugins]$ fgrep np_extra_opts
check_ide_smart.c<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New"> /*
argv=np_extra_opts(&argc, argv, progname); */</FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New"><o:p></o:p></FONT></SPAN> </DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">[nigelp@zulu-wks4 plugins]$
make<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\"
-DHAVE_CONFIG_H -I. -<st1:place w:st="on">I.</st1:place> -I.. -I.. -I../lib
-I../gl -I../intl -I/usr/include/ldap -I/usr/include
-I/usr/kerberos/include -g -O2 -MT check_ide_smart.o -MD -MP -MF
".deps/check_ide_smart.Tpo" -c -o check_ide_smart.o check_ide_smart.c;
\<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">then mv -f ".deps/check_ide_smart.Tpo"
".deps/check_ide_smart.Po"; else rm -f ".deps/check_ide_smart.Tpo"; exit 1;
fi<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">/bin/sh ../libtool --tag=CC --mode=link gcc -g
-O2 -L. -o check_ide_smart check_ide_smart.o utils.o
../lib/libnagiosplug.a ../gl/libgnu.a -ldl<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">gcc -g -O2 -o check_ide_smart check_ide_smart.o utils.o
-L/home/nigelp/nagios-plugins-1.4.13/plugins ../lib/libnagiosplug.a
../gl/libgnu.a -ldl</FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New"><o:p></o:p></FONT></SPAN> </DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">[nigelp@zulu-wks4 plugins]$ ./check_ide_smart -d
/dev/hda<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">CRITICAL - Couldn't open device /dev/hda: Permission
denied<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New"></FONT></SPAN> </DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">[nigelp@zulu-wks4 plugins]$ su<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Password:<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">[root@zulu-wks4 plugins]# ./check_ide_smart -d
/dev/hda<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id= 1, Status=15 {PreFailure , OnLine }, Value=118,
Threshold= 6, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id= 3, Status= 3 {PreFailure , OnLine }, Value= 98,
Threshold= 0, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id= 4, Status=50 {Advisory , OnLine
}, Value=100, Threshold= 20, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id= 5, Status=51 {PreFailure , OnLine }, Value=100,
Threshold= 36, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id= 7, Status=15 {PreFailure , OnLine }, Value=100,
Threshold= 30, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id= 9, Status=50 {Advisory , OnLine
}, Value=100, Threshold= 0, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id= 10, Status=19 {PreFailure , OnLine }, Value=100,
Threshold= 97, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id= 12, Status=50 {Advisory , OnLine },
Value=100, Threshold= 20, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id=187, Status=50 {Advisory , OnLine },
Value=100, Threshold= 0, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id=189, Status=58 {Advisory , OnLine },
Value=100, Threshold= 0, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id=190, Status=34 {Advisory , OnLine },
Value= 65, Threshold= 45, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id=194, Status=34 {Advisory , OnLine },
Value= 35, Threshold= 0, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id=195, Status=26 {Advisory , OnLine },
Value= 80, Threshold= 0, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id=197, Status=18 {Advisory , OnLine },
Value=100, Threshold= 0, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id=198, Status=16 {Advisory , OffLine},
Value=100, Threshold= 0, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id=199, Status=62 {Advisory , OnLine },
Value=200, Threshold= 0, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id=200, Status= 0 {Advisory , OffLine},
Value=100, Threshold= 0, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">Id=202, Status=50 {Advisory , OnLine },
Value=100, Threshold= 0, Passed<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">OffLineStatus=130 {Completed}, AutoOffLine=Yes,
OffLineTimeout=7 minutes<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">OffLineCapability=91 {Immediate Auto
SuspendOnCmd}<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">SmartRevision=10, CheckSum=171, SmartCapability=3
{SaveOnStandBy AutoSave}</FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New"></FONT></SPAN> </DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">[root@zulu-wks4 plugins]# ./check_ide_smart -d /dev/hda
-n<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">OK - Operational (18/18 tests
passed)<o:p></o:p></FONT></SPAN></DIV>
<DIV class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT
face="Courier New">[root@zulu-wks4
plugins]#<o:p></o:p></FONT></SPAN></DIV></BODY></HTML>