Nagiosbpi

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
tfc
Posts: 5
Joined: Tue Mar 08, 2011 2:02 am

Nagiosbpi

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagiosbpi

Post 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
bradyma
Posts: 6
Joined: Fri Apr 01, 2011 1:39 pm

Re: Nagiosbpi

Post by bradyma »

Is php required to be installed in apache2 when nagiosbpi is used?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagiosbpi

Post by mguthrie »

Most definitely yes : )
bradyma
Posts: 6
Joined: Fri Apr 01, 2011 1:39 pm

Re: Nagiosbpi

Post 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 .
bradyma
Posts: 6
Joined: Fri Apr 01, 2011 1:39 pm

Re: Nagiosbpi

Post 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....
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagiosbpi

Post by mguthrie »

What distro are you on, and what method are you using to install php?
bradyma
Posts: 6
Joined: Fri Apr 01, 2011 1:39 pm

Re: Nagiosbpi

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagiosbpi

Post 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.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Nagiosbpi

Post by tonyyarusso »

He's not running any Linux distribution - that's Solaris info.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked