Page 1 of 1

Nagiosbpi

Posted: Tue Mar 08, 2011 2:21 am
by tfc
Hi,
I installed nagiosbpi in order to INSTALL documentation. But the webpage of http://<my nagios address>/nagiosbpi is empty. I got 404 error.
Have you any idea about problem.
My Nagios version is NAgios Core 3.2.1
And here is the my constant.conf :
#Nagios BPI Configuration for PHP constants. Use this file to define your server and directory locations
#
#
####For XI Installations#######
#this setting is ignored if this component is installed through the Admin menu in XI
XI=0
###Nagios File Locations ->USE ABSOLUTE DIRECTORIES FOR ALL FILE LOCATIONS
STATUSFILE=/usr/local/nagios/var/status.dat
OBJECTSFILE=/usr/local/nagios/var/objects.cache

#####requires write permissions for directory and files. USE ABSOLUTE DIRECTORIES FOR ALL FILE LOCATIONS
## if writing to files failes, run the set_bpi_perms.sh script
CONFIGFILE=/usr/local/nagios/nagiosbpi/bpi.conf
CONFIGBACKUP=/usr/local/nagios/nagiosbpi/tmp/bpi.conf.backup

##optional xml output of BPI group data. USE ABSOLUTE DIRECTORIES FOR ALL FILE LOCATIONS
#Uncomment this to write xml output each time group status is calculated
XMLOUTPUT=/usr/local/nagios/nagiosbpi/tmp/bpi.xml
And here is the permission of nagiosbpi folder:
root@yonyim1:/usr/local/nagios/nagiosbpi# ls -la
total 208
drwxr-xr-x 7 root root 4096 2011-03-08 09:04 .
drwxr-xr-x 10 root root 4096 2011-03-08 09:04 ..
-rw-r--r-- 1 root root 3703 2011-03-08 09:04 api_tool.php
-rw-r--r-- 1 root root 24596 2011-03-08 09:04 BpGroup_class.php
-rwxrwxrwx 1 root root 2113 2011-03-08 09:04 bpi.conf
-rw-r--r-- 1 root root 6038 2011-03-08 09:04 bpi.js
-rw-r--r-- 1 root root 4118 2011-03-08 09:04 bpi_style.css
-rwxr-xr-x 1 root root 2265 2011-03-08 09:04 check_bpi.php
drwxr-xr-x 3 root root 4096 2011-03-08 09:04 config_functions
-rw-r--r-- 1 root root 1141 2011-03-08 09:06 constants.conf
-rw-r--r-- 1 root root 1974 2011-03-08 09:04 constants.inc.php
-rw-r--r-- 1 root root 2239 2011-03-08 09:04 footer.php
drwxr-xr-x 3 root root 4096 2011-03-08 09:04 functions
-rw-r--r-- 1 root root 3025 2011-03-08 09:04 header.php
drwxr-xr-x 3 root root 4096 2011-03-08 09:04 images
-rw-r--r-- 1 root root 2941 2011-03-08 09:04 inc.inc.php
-rw-r--r-- 1 root root 3070 2011-03-08 09:04 index.php
-rw-r--r-- 1 root root 5321 2011-03-08 09:04 INSTALL
-rw-r--r-- 1 root root 78601 2011-03-08 09:04 jquery-1.4.4.min.js
-rw-r--r-- 1 root root 2549 2011-03-08 09:04 nagiosbpi.inc.php
-rwxr-xr-x 1 root root 75 2011-03-08 09:04 set_bpi_perms.sh
drwxr-xr-x 6 root root 4096 2011-03-08 09:04 .svn
drwxrwxrwx 3 root root 4096 2011-03-08 09:04 tmp
-rw-r--r-- 1 root root 883 2011-03-08 09:04 TODO

Re: Nagiosbpi

Posted: Tue Mar 08, 2011 10:14 am
by mguthrie
If you have it located in that directory, you'll either have to add an apache configuration file to allow it to be seen, or move it to the /usr/local/nagios/share (which is the nagios webroot). Moving it to the share directory will be easiest, and allows you to use your existing Nagios authentication to access. It will be accessible from http://<serveraddress>/nagios/nagiosbpi

Re: Nagiosbpi

Posted: Mon Jun 13, 2011 7:54 pm
by bradyma
Is php required to be installed in apache2 when nagiosbpi is used?

Re: Nagiosbpi

Posted: Tue Jun 14, 2011 10:20 am
by mguthrie
Most definitely yes : )

Re: Nagiosbpi

Posted: Tue Jun 14, 2011 4:19 pm
by bradyma
And I mean not just the binary out there in /usr/local/bin..but the LoadModule in the httpd.conf and the AddType in the httpd.conf .

Re: Nagiosbpi

Posted: Tue Jun 14, 2011 4:36 pm
by bradyma
I just seem to have problems as soon as I pout these parameters in my httpd.conf. I am guessing bottom line is that I need to work them through....
Thanks....

Re: Nagiosbpi

Posted: Tue Jun 14, 2011 5:00 pm
by mguthrie
What distro are you on, and what method are you using to install php?

Re: Nagiosbpi

Posted: Wed Jun 15, 2011 6:35 am
by bradyma
Apache 2.0.63

php 5.2.1 (downloaded from Sun and install via packgage add)

httpd.conf updates
LoadModule php5_modules mdules/libphp5.so


AddType application/x-httpd-php .php .phtml

DirectoryIndex index.html index.html.var index.php

Re: Nagiosbpi

Posted: Wed Jun 15, 2011 4:39 pm
by mguthrie
Sorry, I meant what linux distribution are you running? You may need to look up php/apache installation instructions specific to your Linux distribution. I'm only familiar with RHEL or Debian based distros.

Re: Nagiosbpi

Posted: Wed Jun 15, 2011 5:53 pm
by tonyyarusso
He's not running any Linux distribution - that's Solaris info.