General
Showing results for 
Search instead for 
Do you mean 

Nagios Installation to HP-UX 11.11

Occasional Advisor

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 #

-------------------------------
9 REPLIES
Honored Contributor [Founder]

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

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 [Founder]

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 [Founder]

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 [Founder]

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

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 [Founder]

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

Re: Nagios Installation to HP-UX 11.11

Does this bundle have a prerequisite like patches?
Highlighted
Acclaimed Contributor [Founder]

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.