Monitor Solaris 9 servers in Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Monitor Solaris 9 servers in Nagios XI

Post by bosecorp »

I have a sparc SunOS 5.9 server and I don't know what is the standard effective way to monitor this server and I would like the steps in how to implement that.
Thanks

Abdellah
bwallace
Posts: 1146
Joined: Tue Nov 17, 2015 1:57 pm

Re: Monitor Solaris 9 servers in Nagios XI

Post by bwallace »

I'm assuming you already have Nagios XI running on another server?
On the Sparc server, you'll need to install the Nagios plugins and Solaris Agent (NRPE). I'm unable to find instructions for your 5.9 version and I'm sure you will run into problems during the install where required components are not present and you'll have to install those as well, but it's impossible for me to say what those are before hand. Here is a step by step guide of sorts, but it's for Solaris 10. Doing a quick search, I cannot locate anything for OS version 5.9, at least where the links are still active. Maybe someone else here knows and can chime in, but this should work for version 5.9

http://bigunix.blogspot.com/2009/06/ins ... ugins.html
Be sure to check out the Knowledgebase for helpful articles and solutions!
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Monitor Solaris 9 servers in Nagios XI

Post by bosecorp »

for the first step in the document it says home directory “/usr/local/nagios" my server does "home/nagios". do I have to change it?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Monitor Solaris 9 servers in Nagios XI

Post by dwhitfield »

Looks like https://support.nagios.com/forum/viewto ... =6&t=32187 was able to get it working using /home/nagios

They had to add a make solaris-package that was not included in the link provided earlier this morning.

If you run into any errors during the build process, just post them in this thread and we'll work through them.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Monitor Solaris 9 servers in Nagios XI

Post by bosecorp »

this is where I am stuck
---|./configure –without-mysql
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: –without-mysql
checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... yes
checking build system type... Invalid configuration `–without-mysql': machine `–without' not recognized
configure: error: /bin/bash build-aux/config.sub –without-mysql failed

I did this too:
---|./configure
checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... yes
checking build system type... sparc-sun-solaris2.9
checking host system type... sparc-sun-solaris2.9
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/tmp/nagios-plugins-2.1.4':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Monitor Solaris 9 servers in Nagios XI

Post by dwhitfield »

Setting up your C compiler on Solaris is a bit out of scope.

That said, it seems as though there is a thing called a Solaris 9 Companion CD, which has a C compiler on it.

It's also possible you have a C compiler and it's just not in your $PATH. What's the output of echo $0 and echo $PATH?
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Monitor Solaris 9 servers in Nagios XI

Post by bosecorp »

---|echo $0
-sh

---|echo $PATH
/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/ucb:/etc:/usr/etc:/usr/etc/install:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/dt/bin:/usr/sbin:/sbin:/home/root:/home/Spherion/admin_scripts:/usr/local/users/Spherion/user_defined_commands:/usr/local/users/Spherion/autosys_source_files:/usr/local/users/Spherion
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Monitor Solaris 9 servers in Nagios XI

Post by dwhitfield »

pkginfo | grep -i compile should tell you if you have c compiler installed. If not, you may need to locate the Solaris 9 Companion CD.

If you do find a C compiler, then you need to add the location of it to your path. Make sure you are adding the location to the path of the user that is compiling NRPE.

If the C compiler is in your path, does the compiler have the appropriate permissions?
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Monitor Solaris 9 servers in Nagios XI

Post by bosecorp »

This is what I got

---|pkginfo | grep -i compile
system SUNWlibC Sun Workshop Compilers Bundled libC
system SUNWmfdev Motif UIL Compiler
system SUNWscbcp SPARCompilers Binary Compatibility Libraries
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Monitor Solaris 9 servers in Nagios XI

Post by dwhitfield »

It appears the default location for Oracle's compiler is /usr/ucb, which you have in your path.

You're either going to need to install gcc, cc (Oracle's compiler), or cl.exe. I could not find clear instructions for any of those for Solaris 9. There was a time when cc had a 60-day trial, but the page I found was a Sun page that is not being redirected to a relevant Oracle page.

Please let us know if you run into any trouble once you have a C compiler.
Locked