Web Config Interface/mysql
EXT-Fuentes, James P
James.P.Fuentes at boeing.com
Mon May 16 21:09:23 CEST 2005
OK, It turns out that the "register globals" directive in the php.ini was set to no.
-Jim
________________________________
From: EXT-Fuentes, James P
Sent: Fri 5/13/2005 12:44 PM
To: nagios-users at lists.sourceforge.net
Subject: Web Config Interface/mysql
Fedora Core 2.6.9-1.667 i386 GNU/Linux, Nagios 2.0b2, Nagios 2.x Web Config
Trying to integrate web config interface w/ mysql. Every link I click on results in the following in Apache error_log:
"Undefined variable: contactgroup_name in /var/www/html/nagiosweb/contactgrouplist.php"
That goes for every link which calls a php, ie. "Hosts", "Hostgroups"... etc. The "View Config" link which calls a cgi does work.
I've been messing with this for a while and just can't seem to get it to work. I cannot populate any of the tables. Here is what I have configuration-wise:
PHP works with Apache installed on the box - CHECK
Apache is installed under /usr/local/apache - CHECK
create a directory under your htdocs folder named nagiosweb and put all files from the nagiosweb folder into /usr/local/apache/html/nagiosweb - CHECK
wwwrun user has read access to /usr/local/apache/html/nagiosweb - CHECK
wwwrun user has write access to your $nagios/etc directory - CHECK
add links to the side panel of nagios CHECK
Verify nagios.cfg is using the correct files:
cfg_file=/usr/local/nagios/etc/checkcommands.cfg - CHECK
cfg_file=/usr/local/nagios/etc/contactgroups.cfg - CHECK
cfg_file=/usr/local/nagios/etc/contacts.cfg - CHECK
cfg_file=/usr/local/nagios/etc/dependencies.cfg - CHECK
cfg_file=/usr/local/nagios/etc/hostgroups.cfg - CHECK
cfg_file=/usr/local/nagios/etc/hosts.cfg - CHECK
cfg_file=/usr/local/nagios/etc/services.cfg - CHECK
cfg_file=/usr/local/nagios/etc/timeperiods.cfg - CHECK
Add the following Line to your cgi.cfg file:
xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg - CHECK
Copy prop.gif to /usr/local/nagios/share/images/logos - CHECK
Setup the mysql database - CHECK
The database name is nagiosweb - CHECK
setup dbconfig.php:
$db = mysql_connect("localhost", "apache", "xxxxxx");
mysql_select_db("nagiosweb");
blah blah blah... I can provide the rest of it if necessary.
Any help appreciated,
-Jim
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list