Solaris 7/8/9 plugin and nrpe


#1

Hello,
I have a farm of solaris machines that I need to monitor. I ran into trouble on solaris 7.

I have tried all kinds of plugin tars and the latest is : nagios-plugins-1.4.13.tar.gz
This is matching my host

Error:
gcc -DLOCALEDIR="/usr/local/nagios/share/locale" -DHAVE_CONFIG_H -I. -I. -I… -I… -I…/lib -I…/gl -I…/intl -I…/plugins -m64 -g -O2 -c -o pst3-pst3.o test -f 'pst3.c' || echo './'pst3.c
cc1: -m64 is not supported by this configuration
pst3.c: In function main': pst3.c:82: warning: assignment makes pointer from integer without a cast pst3.c:129: parse error before*‘
pst3.c:165: warning: assignment makes pointer from integer without a cast
pst3.c:166: warning: assignment makes pointer from integer without a cast
pst3.c:168: warning: assignment makes pointer from integer without a cast
pst3.c:193: args_count' undeclared (first use this function) pst3.c:193: (Each undeclared identifier is reported only once pst3.c:193: for each function it appears in.) pst3.c:194:args_vecs’ undeclared (first use this function)
make[2]: *** [pst3-pst3.o] Error 1
make[2]: Leaving directory /home/autex/nagios/nagios-plugins-1.4.13-src/plugins-root' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/autex/nagios/nagios-plugins-1.4.13-src’
make: *** [all] Error 2

If I could get a location where plugin and nrpe is working on solaris would be great…

Thanks, Eva


#2

This error was due to a older verions of GCC… my gcc was 2.8 …after I upgraded to gcc 3.4.6 it worked much better. sunfreeware.com