Nagios throwing DB errors on apache

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios throwing DB errors on apache

Post by tmcdonald »

Can you post screenshots of the pages you are visiting when these errors are thrown?
Former Nagios employee
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: Nagios throwing DB errors on apache

Post by johndoe »

tmcdonald wrote:Can you post screenshots of the pages you are visiting when these errors are thrown?
The pages load fine and show no errors themselves, the errors just show up on the logs and are as shown previously.

As for error #3 it now appears to be solved, browser session doesnt appear to crash anymore when the reports are opened and all of them seem to work ok...
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios throwing DB errors on apache

Post by sreinhardt »

The php errors have been resolved in our code, and will be out with the next release. I believe you should be able to modify and resolve it now by altering /usr/local/nagiosxi/html/includes/db.inc.php

Line 260 from:

Code: Select all

$DB[$db]=&NewADOConnection($dbtype);
To:

Code: Select all

$DB[$db]=NewADOConnection($dbtype);
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: Nagios throwing DB errors on apache

Post by johndoe »

Hi spencer,

as mentioned previously that did solve that problem, however two others appeared to me (See on previous messages Error 1 and Error 2), should i open new threads for them or will we discuss them here?
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios throwing DB errors on apache

Post by scottwilkerson »

For (Error 1) upload attached through Admin -> Manage Config Wizards
ssh-expect.zip
For (Error 2) unzip attached
ajaxhelpers-perfdata.inc.zip
an place file in
/usr/local/nagiosxi/html/includes/components/xicore/dashlets-perfdata.inc.php
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: Nagios throwing DB errors on apache

Post by johndoe »

Hi Scott, for error number 2, you sent me a file with one name and requested me to replace it with another file under another name?

I replaced it by the file with the same name, but problem still persists, did you send me the wrong file?
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios throwing DB errors on apache

Post by slansing »

What is the output of:

ls -la /usr/local/nagiosxi/html/includes/components/xicore/dashlets-perfdata.inc.php

Did the wizard upload correctly?
Locked