NRPE on IA64-linux

taiji at kta.att.ne.jp taiji at kta.att.ne.jp
Wed Apr 28 00:59:37 CEST 2004


Hi, all

>  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
I put #include <unistd.h> to the top of version.c, but the output
was still same.


> > $ ./check_memory 30 20
> > Status: OK - 67% memory free.
-------------------------------------
Unknown HZ value! (4091) Assume 1024
Status OK! 274% memory free!
-------------------------------------
the result 
 "Unknown HZ value! (4091) Assume 1024 "
how could I handle with? 

and for another problem "274% memory free", I found a kind of 
clue , so I will report in another mail.


> > $ 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
file check_memory was OK.


taiji


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&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