NRPE on IA64-linux
Taiji Otsuki
otsuki at x-trans.jp
Tue Apr 13 21:53:14 CEST 2004
Thanks Ryan
> > I re-compiled the check_memory plugin,
> >
> > --------------------------------------------------------------------
> > gcc -Wall -m486 -O2 -DVERSION=\"1\" -DSUBVERSION=\"0\" -c
> > -ocheck_memory.o check_memory.c
> > cc1: invalid option `486'
> > make: *** [check_memory.o] error code 1
> > ---------------------------------------------------------------------
> > I changed the -m option "486" to "ia64" in Makefile, but it didn't
> > work and resulted in error(I didn't put down the error massages,,,,..)
>
> Hmm, If you could get the actual error from the compile on your system
> that would be helpful. I just removed the -m486 altogether (that's an
> optimization flag, that's irrelevant for ia64) tried it below and while
> there were some warnings the the plugin still seems to work (you can get
> rid of the exit warning by adding #include <unistd.h> to the top of
> version.c, but it doesn't change the functionality any [in this case]).
I didn't report, but I've tried this "removing the -m486 altogether"
before and got the same result and message like below (in Japanese).
However, at that time I wasn't sure this was correct to use check_memory
plugin.
Anyway, thanks for telling me the way "by adding #include <unistd.h> to
the top of version.c" As you said, if it dosen't change functionally in
this case, this might be good.
> $ make all
> gcc -Wall -O2 -DVERSION=\"1\" -DSUBVERSION=\"0\" -c -o check_memory.o
> check_memory.c
> check_memory.c: In function `main':
> check_memory.c:41: warning: `statmsg' might be used uninitialized in
> this function
> check_memory.c:42: warning: `errlvl' might be used uninitialized in this
> function
> gcc -Wall -O2 -DVERSION=\"1\" -DSUBVERSION=\"0\" -c -o sysinfo.o
> sysinfo.c
> gcc -Wall -O2 -DVERSION=\"1\" -DSUBVERSION=\"0\" -c -o version.o
> version.c
> version.c: In function `init_Linux_version':
> version.c:35: warning: implicit declaration of function `exit'
> gcc -s -O2 -o check_memory check_memory.o sysinfo.o version.o
>
> $ ./check_memory 30 20
> Status: OK - 67% memory free.
>
> $ file check_memory
> check_memory: ELF 64-bit LSB executable, IA-64, version 1 (SYSV), for
> GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list