Web Config Interface/mysql
Andreas Ericsson
ae at op5.se
Sun May 15 21:29:31 CEST 2005
EXT-Fuentes, James P wrote:
> Fedora Core 2.6.9-1.667 i386 GNU/Linux, Nagios 2.0b2, Nagios 2.x Web
> Config
>
There is no Nagios 2.x Web Config. There's Fruity, Nawui, nagmin and
some other tools, but none that's official.
> 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"
>
I bet there's a "Notice: " before that as well. You can turn it off by
putting 'error_reporting = E_ALL & ~E_NOTICE' in your php.ini-file.
(Notice-messages are considered to be debug information, so you won't
need it on a production system).
> 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_ids93&alloc_id281&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
>
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
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_id=7393&alloc_id=16281&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