Nagios Core 3 with PHP 5.1

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
heinrichxx
Posts: 4
Joined: Fri Feb 15, 2013 4:23 am

Nagios Core 3 with PHP 5.1

Post by heinrichxx »

Hello
I need some help. Is it possible to install nagios core 3 with php 5.1.
If yes, how do I configure nagios or php?
Thank you for your help
heinrichxx
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Core 3 with PHP 5.1

Post by slansing »

Is Nagios Core 3 your only option? Assuming this is on Ubuntu, we now have a guide on installing from source. Do you have to have 5.1 or can you use a newer version of php?

The document is here: http://assets.nagios.com/downloads/nagi ... Source.pdf
heinrichxx
Posts: 4
Joined: Fri Feb 15, 2013 4:23 am

Re: Nagios Core 3 with PHP 5.1

Post by heinrichxx »

Hello Slansing
Nagios will be installed on rhel. Yes I need to install it with php 5.1.
Question is also the depency with gd 1.6.3 Is this all configurable.
Regards
Juan
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Core 3 with PHP 5.1

Post by slansing »

You can install Nagios XI to a RHEL 5 based system with no problems. By default they will not come with 5.3.x installed. Almost 100% of our code is written to the lowest package supported so you should be fine running under 5.1. The same goes with GD, which I assume is Gnome Desktop?
heinrichxx
Posts: 4
Joined: Fri Feb 15, 2013 4:23 am

Re: Nagios Core 3 with PHP 5.1

Post by heinrichxx »

Hi Slansing

I want to install nagios core 3.x on rhel and not nagios XI. Does it still work with php 5.1.
According to Nagios requirements http://nagios.sourceforge.net/docs/3_0/about.htm
Thomas Boutell's gd library version 1.6.3 or higher (required by the statusmap and trends CGIs)
is needed.

Does it work with php 5.1.

Thank you and have a nice weekend.

Regards

Juan
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Core 3 with PHP 5.1

Post by slansing »

Sorry, Friday got to me.. Yes you should be fine using PHP 5.1 within core as well. I am not sure about the "gd lib." You could try it, and then upgrade it if necessary, you should not hurt anything in the process.
heinrichxx
Posts: 4
Joined: Fri Feb 15, 2013 4:23 am

Re: Nagios Core 3 with PHP 5.1

Post by heinrichxx »

Hi Slansing
Thank you very much. Great. Have a nice day
Heinrichxx
Locked