[Nagiosplug-devel] Compiling latest snapshot on solaris 7

Ben O'Hara bohara at gmail.com
Thu Nov 23 17:01:37 CET 2006


On 11/23/06, Ton Voon <ton.voon at altinity.com> wrote:
> Ben,
>
> ar is not found on your box. You need to add /usr/ccs/bin to your PATH
> before running configure.
>
> configure should give a better error message when ar is not found. On my
> list....
>
> Ton
>

Cheers Ton, forgot to post back to say id caught that in the end and
got it compiled, but, im seeing problems with check_nagios which is
what i was building the plugins for.

Ive got it running on 2 FreeBSD machines with no problems, but on this
Solaris 7 box im getting

bash-3.1# /apps/nagios/libexec/check_nagios -F
/apps/nagios/var/status.dat -e 300 -C /apps/nagios/bin/nagios
NAGIOS CRITICAL: Could not locate a running Nagios process!

And trying with just "nagios" as the command...

bash-3.1# /apps/nagios/libexec/check_nagios -F
/apps/nagios/var/status.dat -e 300 -C nagios
NAGIOS CRITICAL: Could not locate a running Nagios process!

But its definately running, im thinking its using the wrong flags for
ps or something?

bash-3.1# ps -ef |grep nagios
  nagios  8048 23960  0 16:00:40 ?        0:00 /apps/nagios/bin/nagios
-d /apps/nagios/etc/nagios.cfg
  nagios  8052  8051  0                   0:00 <defunct>
  nagios  8051  8050  0 16:00:40 ?        0:00
/apps/nagios/libexec/send_nsca monitor.leeds.trigold.net -c
/apps/nagios/etc/se
  nagios  2617     1  0 10:56:58 ?        0:00 /apps/nagios/nrpe/nrpe
-c /apps/nagios/nrpe/nrpe.cfg -d
  nagios  8049  8048  0 16:00:40 ?        0:00 sh -c
/apps/nagios/libexec/eventhandlers/submit_check_result "db3" "DISK
Usage
  nagios  8050  8049  0 16:00:40 ?        0:00 /bin/sh
/apps/nagios/libexec/eventhandlers/submit_check_result db3 DISK Usage
/
  nagios 23960     1  1 14:14:13 ?        1:18 /apps/nagios/bin/nagios
-d /apps/nagios/etc/nagios.cfg


Cheers

Ben
>
> On 23 Nov 2006, at 11:51, Ben O'Hara wrote:
>
> Hi Guys,
>
> Im trying to compile to compile the latest snapshot of the plugins on
> Solaris 7 but im getting the following error when trying to make
>
> bash-3.1# make
> make  all-recursive
> make[1]: Entering directory
> `/apps/src/nagios-plugins-HEAD-200611161252'
> Making all in lib
> make[2]: Entering directory
> `/apps/src/nagios-plugins-HEAD-200611161252/lib'
> make  all-recursive
> make[3]: Entering directory
> `/apps/src/nagios-plugins-HEAD-200611161252/lib'
> Making all in tests
> make[4]: Entering directory
> `/apps/src/nagios-plugins-HEAD-200611161252/lib/tests'
> make[4]: Nothing to be done for `all'.
> make[4]: Leaving directory
> `/apps/src/nagios-plugins-HEAD-200611161252/lib/tests'
> make[4]: Entering directory
> `/apps/src/nagios-plugins-HEAD-200611161252/lib'
> rm -f libcoreutils.a
> false cru libcoreutils.a cloexec.o full-read.o full-write.o
> safe-read.o safe-write.o xalloc-die.o error.o basename.o c-strtod.o
> c-strtold.o exitfail.o open-safer.o creat-safer.o fsusage.o getopt.o
> getopt1.o mountlist.o regex.o dup-safer.o fd-safer.o pipe-safer.o
> xmalloc.o
> make[4]: *** [libcoreutils.a] Error 1
> make[4]: Leaving directory
> `/apps/src/nagios-plugins-HEAD-200611161252/lib'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/apps/src/nagios-plugins-HEAD-200611161252/lib'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/apps/src/nagios-plugins-HEAD-200611161252/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/apps/src/nagios-plugins-HEAD-200611161252'
> make: *** [all] Error 2
>
> Looking into it i think its trying to build lib/libcoreutils and
> lin/libnagiosplug but they dont appear in the distribution.
>
> Anyone got any ideas?
>
>
>
>
> http://www.altinity.com
> T: +44 (0)870 787 9243
> F: +44 (0)845 280 1725
> Skype: tonvoon
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________________
> Nagios Plugin Development Mailing List
> Nagiosplug-devel at lists.sourceforge.net
> Unsubscribe at
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>


-- 
"A Scientist will earn a living by taking a really difficult problem
and spends many years solving it, an engineer earns a living by
finding really difficult problems and side stepping them"




More information about the Devel mailing list