NagiosQL is a professional, web based configuration tool for Nagios 2.x/3.x and other Nagios based monitoring tools. It is designed for large enterprise requirements as well as small environments. Any Nagios functionalities are supported.
Service overview
Service definition
Configuration test
Import function
Nagios.cfg editor
Domain settings
Project Members:
Upgrade to 3.4.0
hello nagiosql, thanks so much...
hi Martin & rouven ,
thank you for creating so important and usefull project.
i see that you have released new version - 3.3.0
I had NagiosQL 3.2 working well on earlier versions of Fedora, but of course it stopped working when PHP went to version 7. Now I'm trying to get NagiosQL 3.3 working on Fedora 26, following the instructions in the INSTALLATION_enGB.txt file. I'm doing an upgrade as my previous working configuration is still present. I've reached the point of running install/index.php and it fails. The error is, "PHP Fatal error: Uncaught Error: Call to undefined method stdClass::getdatabase() in /var/www/html/nagiosql33/install/index.php:125".
Note that the actual call in line 125 is to $myDBClass->getdatabase(). I don't find any references to stdClass in NagiosQL. The file which defines the getdatabase() function, functions/mysqli_class.php, is present. What is changing the reference and why is it failing?
I am having issues installing NagiosQL 3.3 on CentOS 7.1.4. After I enter the details on the installation step and click on next, there is an error: "Connection to the database server has failed by reason:
php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution"
Please help me resolve this issue.
I learned last week that NagiosQL 3.3 has an incompatibility with PHP newer than version 7.0. You can probably resolve your problem by downgrading to that version of PHP. That fixed the problem I mentioned earlier.
Thanks Dave,
It worked like a charm. Now I made some configurations/added some
hostgroups and trying to write the configuration file and I get this
error "Cannot
backup and delete the old configuration file (check the permissions)!
"
Let me know, what did I do wrong?
Regards,
Suresh
On Tue, Oct 31, 2017 at 5:24 AM, Dave Close dclose@users.sf.net wrote:
--
T. P. Suresh Kumar
I have resolved that issue and now I am facing a different issue. When I click on write command files/ write all command files, files are being written in therespective directories in NagiosQL directory. But when I click on Write Monitoring data under tools Nagios control, it is not working.
Can you help?
I saw the same behavior and reported it last week. The data base entries appear to be wrong. Look at tbl_configtarget. Before changing it, I was hoping for some response from the developers.
I'm told there are at least 1000 users of 3.3. I'm surprised if we are the only ones to see this.
It is not nessesary to change anything direct to the tables - all data is represented in the tool itself. Look at the administration, settings or domain admin section.
I will upload the NagiosQL Documentation to sourceforge because the tools website no longer exists. Rouven has leaved the project long time ago.
Install docs added:
https://sourceforge.net/projects/nagiosql/files/nagiosql/Documentation/
Thanks Martin,
I could resolve the issues now and everything is working as expected.
Regards,
Suesh
On Wed, Nov 1, 2017 at 1:43 AM, Martin wizonet@users.sf.net wrote:
--
T. P. Suresh Kumar
Hi
I am using NagiosQL for years. Thank you.
Now trying to build new one on Ubuntu server using NagiosQL version 3.30
Installation and migration of old database went all well.
However, one problem occurs. Define Host -> Modify gives SQL syntax error and Service settings Services box was empty.
Finally I found error in file nag_class.php in line 963 one missing ´ at the command end.
Fixed this and this SQL error was gone.
Maybe this information can be useful.
Toivo
Hello
I have used NAGIOSQL for years and need to install a new installation on centos7 - have nagios core Version 4.3.4 installed and working fine .. but having real issues with the latest nagiosql (3.3) - its complaining the cgi.cfg isn't readable . the file has the right permission and this worked on the previous version of nagios core ..
any assistance would be good .. after the usual checking and googling and coming up with nothing I am posting here.
Hi
I do not know about centos7. I am using Ubuntu server.
But my test system is fine with cgi.cfg file.
I suspect that you have still something wrong with paths or rights.
Recheck all this again.
And look NagiosQL Administration -> Support page. There can be some hints what is wrong.
My system have all green ok there
all good on permissions and the older nagios version worked perfectly on the same box .. I thought something may have been cached from an old install as its not looking for the cgi path in the correct place according to the error .. but there is nowhere to set that in QL and the DB looks ok ..
the nagios base path is set correctly as it can see and read the config file, owner and group are set correctly on the whole directory ..
Hi
In my installation cgi.cfg is in the same folder as nagios.cfg.
I think that nagiosql is expectig it to be located in nagios etc folder.
In my installation /usr/local/nagios/etc/
and that is exaxtly where it is .. in the same folder with the same
permissions
Last edit: Sharon James 2017-12-20
Here you go .. apache is my HTTP user and Nagios is the group .. like i say worked fine with a previous version
Last edit: Sharon James 2017-12-20
ok so my base nagios directory is now set to the nagios/etc directory and I can at least save my config .. the next issue will be trying to get the config to accept the ql config files as it won't start when I add them
Last edit: Sharon James 2017-12-20
Hi
Are you sure that you have nagios folders all right?
Your nagios command file is /usr/local/nagios/rw/nagios.cmd
but binary and config file are in strange places.
In my fresh installation most nagios files are under /usr/local/nagios
nagios binary is in /usr/local/nagios/bin and
nagios.cfg in /usr/local/nagios/etc
You may be older nagios versions installed in this machine.
This may be confusing.
Check that you are using correct one.
Toivo
2017-12-20 14:37 GMT+02:00 Sharon James socialshazza@users.sf.net:
Everything is the the right place
nagios binary is in /usr/local/nagios/bin and
nagios.cfg in /usr/local/nagios/etc
no other nagios on the machine ..
the only thing I have is the sym link from /etc/nagios --> /user/local/nagios
Inside Domain Configuration there is a value "Nagios base directory". Based on this, NagiosQL looks for cgi.cfg in "Nagios base directory"/cgi.cfg as written in the documentation.
Example:
Nagios base directory: /usr/local/nagios/
cgi.cfg has to be in /usr/local/nagios/cgi.cfg
Last edit: Martin 2018-01-02
Hello and thanks for the new version!
I installed 3.3 and it gives an error:
Fatal error: Uncaught Error: Class 'mysqldb' not found in /var/www/nagiosql/install/index.php:112 Stack trace: #0 {main} thrown in /var/www/nagiosql/install/index.php on line 112
Fix:
diff -ruN ./nagiosql33/install/index.php /var/www/nagiosql/install/index.php
--- ./nagiosql33/install/index.php 2017-06-22 09:29:35.530184000 +0200
+++ /var/www/nagiosql/install/index.php 2018-01-16 11:47:45.924639000 +0100
@@ -109,7 +109,7 @@
// Include mysql class
include("../functions/mysqli_class.php");
// Initialize mysql class
- $myDBClass = new mysqldb;
+ $myDBClass = new mysqlidb;
} else {
$intDBFallback = 1;
}
@@ -209,4 +209,4 @@
// =============
$strContent = $myInstClass->parseTemplate($arrTemplate,$preContent);
echo $strContent;
-?>
\ No newline at end of file
+?>
At this time, it appears that NagiosQL 3.30 doesn't work properly with PHP 7.1. This is becoming an increasingly difficult situation for me as my systems are running the latest Fedora (27) which does not directly offer PHP 7.0. I can get it but to do so I have to also force downgrade of several other packages. One result is that Nagios check_mysql doesn't work. Another is difficulty with Cacti.
Does anyone know what needs to be updated to make NagiosQL work with PHP 7.1? I'm not a PHP expert. I've reviewed the list of incompatible changes from 7.0 to 7.1 (https://secure.php.net/manual/en/migration71.incompatible.php) and don't see anything that seems an obvious problem. But I'm sure that many of us will start to face this compatiblity issue in the near future.
Last edit: Dave Close 2018-01-16
Hi. I tryed PHP 7.1 and it has incompatible with NagiosQL. I discovered that one reason is changed array implementation. I have never writen more than couple of PHP lines so I am not an expert. I tryed and got it installed and even someting to work but there where still lot of errors remaining and I give up and installed PHP 7.0.