Re: Nagios Installation to HP-UX 11.11 (1168 Views)
Reply
Occasional Advisor
Posts: 13
Registered: ‎04-06-2009
Message 1 of 10 (1,168 Views)

Nagios Installation to HP-UX 11.11

I am trying to instala software NAgios, a system monitoring tool to HP server. I couldn't find an instalation guide for HP-specific. I tried the way of Fedora installation.

File: nagios-3.0.6.tar.gz
nagios-plugins-1.4.11.tar.gz

I've unzipped nagios .tar and gave the command:

./configure --with-command-group=nagcmd

COmmand is OK.

Then I've compiled source code with:

make all

The following error occurs after this command:

egtpres,sys,root # make all
cd ./base && make
cc -g -DHAVE_CONFIG_H -DNSCORE -c broker.c
(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C product; ignored.
(Bundled) cc: "../include/objects.h", line 634: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "../include/objects.h", line 638: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "../include/objects.h", line 639: error 1000: Unexpected symbol: "*".
(Bundled) cc: "../include/objects.h", line 639: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "../include/objects.h", line 639: error 1573: Type of "<<>>" is undefined due to an illegal declaration.
(Bundled) cc: "../include/objects.h", line 640: error 1000: Unexpected symbol: "*".
(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

--------------------------------------


objects.h file errored-lines are as follows:

/********************* FUNCTIONS **********************/

/**** Top-level input functions ****/
int read_object_config_data(char *,int,int,int); /* reads all external configuration data of specific types */


/**** Object Creation Functions ****/
contact *add_contact(char *,char *,char *,char *,char **,char *,char *,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int); /* adds a contact definition */
commandsmember *add_service_notification_command_to_contact(contact *,char *); /* adds a service notification command to a contact definition */
commandsmember *add_host_notification_command_to_contact(contact *,char *); /* adds a host notification command to a contact definition */
egtpres,sys,root #

-------------------------------
Honored Contributor
Posts: 9,173
Registered: ‎02-23-2005
Message 2 of 10 (1,168 Views)

Re: Nagios Installation to HP-UX 11.11

> (Bundled) cc: [...]

You're using the bundled C compiler, which is
generally not useful for much.

You could buy a real C compiler from HP.
GCC is available at no cost.
Occasional Advisor
Posts: 13
Registered: ‎04-06-2009
Message 3 of 10 (1,168 Views)

Re: Nagios Installation to HP-UX 11.11

I've installed GCC for HP-UX 64-bits:

egtpres,sys,root # swlist | grep -i c++
GNU_C_C+_64 4.3.1

But when i execute 'make all', it'is being compiled by bundled C again.

how can I compile source code with the new one?
Trusted Contributor
Posts: 228
Registered: ‎08-16-2004
Message 4 of 10 (1,168 Views)

Re: Nagios Installation to HP-UX 11.11

Hi,

Try the following url, apart from gcc you would need some more packages.

http://mayoxide.com/naghpux/build_notes.txt

Thanks
" Let Villagers Be Happy!! "
Honored Contributor
Posts: 9,173
Registered: ‎02-23-2005
Message 5 of 10 (1,168 Views)

Re: Nagios Installation to HP-UX 11.11

> I've installed GCC for HP-UX 64-bits:

Great. Can you run it? Is gcc on your PATH?

> But when i execute 'make all', it'is being
> compiled by bundled C again.

Did you re-run "./configure"?

What, exactly, did you do? (Or should my
psychic powers be great enough to tell me?)
Honored Contributor
Posts: 1,891
Registered: ‎05-23-2006
Message 6 of 10 (1,168 Views)

Re: Nagios Installation to HP-UX 11.11

Hi,

Nagios is part of HPUX Internet express bundle now. You can download it from here.

11.23:
------
http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1123

11.31:
------
http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1131
Best wishes,

Ganesh.
Occasional Advisor
Posts: 8
Registered: ‎04-08-2005
Message 7 of 10 (1,168 Views)

Re: Nagios Installation to HP-UX 11.11

Is there a InternetExpress version for HP-UX 11.11 (I saw links for 11.23 and 11.33 only)

ray.zubler@avnet.com
Acclaimed Contributor
Posts: 26,113
Registered: ‎03-06-2006
Message 8 of 10 (1,168 Views)

Re: Nagios Installation to HP-UX 11.11

>Ray: Is there a InternetExpress version for HP-UX 11.11

Yes but not on the web. It came with your 11.11 media.
Occasional Advisor
Posts: 13
Registered: ‎04-06-2009
Message 9 of 10 (1,168 Views)

Re: Nagios Installation to HP-UX 11.11

Does this bundle have a prerequisite like patches?
Highlighted
Acclaimed Contributor
Posts: 26,113
Registered: ‎03-06-2006
Message 10 of 10 (1,168 Views)

Re: Nagios Installation to HP-UX 11.11

>Does this bundle have a prerequisite like patches?

I tried a preview swinstall for the 11.23 version and I didn't get any warnings about it.
I would hope that HP when it packaged it, included any dependencies.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.