Compiling nagios-plugins-master on Solaris 9
-
barry_mclellan
- Posts: 12
- Joined: Wed Jan 22, 2014 3:15 pm
Compiling nagios-plugins-master on Solaris 9
Hello,
I am trying to compile the nagios-plugins-master under Solaris 9 but running into errors. I have downloaded m4, autoconf, gettext and automake and compiled them without errors. When I attempt to compile
I receive this:
./tools/setup
Found GNU Make at /home1/cho6955/bin/make ... good.
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
lib/Makefile.am:16: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
lib/tests/Makefile.am:10: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
plugins/Makefile.am:16: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
Then I run:
./configure --with-nagios-user=nagios
Which has no error.
Then I run 'make' and see the error below:
make: Fatal error in reader: Makefile, line 2507: Unexpected end of line seen
Current working directory /home1/cho6955/nagios/nagios-plugins-master/plugins
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /home1/cho6955/nagios/nagios-plugins-master
*** Error code 1
make: Fatal error: Command failed for target `all'
Has anyone tried to compile under Solaris 9?
Thanks!
Barry
I am trying to compile the nagios-plugins-master under Solaris 9 but running into errors. I have downloaded m4, autoconf, gettext and automake and compiled them without errors. When I attempt to compile
I receive this:
./tools/setup
Found GNU Make at /home1/cho6955/bin/make ... good.
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
lib/Makefile.am:16: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
lib/tests/Makefile.am:10: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
plugins/Makefile.am:16: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
Then I run:
./configure --with-nagios-user=nagios
Which has no error.
Then I run 'make' and see the error below:
make: Fatal error in reader: Makefile, line 2507: Unexpected end of line seen
Current working directory /home1/cho6955/nagios/nagios-plugins-master/plugins
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /home1/cho6955/nagios/nagios-plugins-master
*** Error code 1
make: Fatal error: Command failed for target `all'
Has anyone tried to compile under Solaris 9?
Thanks!
Barry
Re: Compiling nagios-plugins-master on Solaris 9
Are you following any sort of guide? If so can you post a link to it?
Former Nagios employee
-
barry_mclellan
- Posts: 12
- Joined: Wed Jan 22, 2014 3:15 pm
Re: Compiling nagios-plugins-master on Solaris 9
Hello,
I'm just following the README that comes with the nagios plugins file.
Did you want a link to that download?
Thanks!
Barry
I'm just following the README that comes with the nagios plugins file.
Did you want a link to that download?
Thanks!
Barry
Re: Compiling nagios-plugins-master on Solaris 9
1. Could you pm me the generated Makefile? I have never seen any of my generated makefiles get past ~2000 or so lines.
2. Are you using the current master branch?
2. Are you using the current master branch?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Compiling nagios-plugins-master on Solaris 9
I generally see that message when I'm using Sun's make. The way I get around it is to run 'MAKE=gmake ./configure' and then use gmake everywhere I would use make (i.e 'gmake all'). In your case you may need to substitute '/home1/cho6955/bin/make' for 'gmake' .
-
barry_mclellan
- Posts: 12
- Joined: Wed Jan 22, 2014 3:15 pm
Re: Compiling nagios-plugins-master on Solaris 9
Thanks abrist, I will pm you the make file now.
Andy Brist gave me the link to the source: https://github.com/nagios-plugins/nagio ... master.zip
Hopefully that is ok.
estandley, I will try that as well, thanks!!
Andy Brist gave me the link to the source: https://github.com/nagios-plugins/nagio ... master.zip
Hopefully that is ok.
estandley, I will try that as well, thanks!!
Re: Compiling nagios-plugins-master on Solaris 9
We'll keep this thread open until you get back to us.
Former Nagios employee
Re: Compiling nagios-plugins-master on Solaris 9
Well, there is nothing special about line 2507. This looks like a general compiler error - did Eric's suggestion work for you?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
barry_mclellan
- Posts: 12
- Joined: Wed Jan 22, 2014 3:15 pm
Re: Compiling nagios-plugins-master on Solaris 9
Sorry for the delay, I tried Eric's post and no luck.
I have a solaris guy working on it, but he's getting frustrated and says it won't compile. Any other idea's I can try?
I'm realling liking this product, unfortunately will all the legacy I have surrounding me, it may just not be a good fit. Too bad there isn't a section that has older compiled agents hanging around.
Thanks everyone!
Barry
I have a solaris guy working on it, but he's getting frustrated and says it won't compile. Any other idea's I can try?
I'm realling liking this product, unfortunately will all the legacy I have surrounding me, it may just not be a good fit. Too bad there isn't a section that has older compiled agents hanging around.
Thanks everyone!
Barry
Re: Compiling nagios-plugins-master on Solaris 9
In all honesty, you may want to try older versions of the plugins/nrpe. They may compile a bit easier on legacy platforms.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.