[599 total ]
Subject: Unable to write to nagios Configuration - by: popsicles

hello all,

I just installed Nagiosql and i was able to log in. But when I try to configure the domain, I get errors.
Cant write to file
/usr/local agios/etc agiosql/
/usr/local agios/etc agiosql/backups/
/usr/local agios/etc ... [More] agiosql/backups/hosts
/usr/local agios/etc agiosql/backups/services
/usr/local agios/etc agios.cfg
/usr/local agios/etc/cgi.cfg

I followed the installation manual but I still have this problem, somebody help.

Popsicles. [Less]

Subject: Duplicate definition in Nagios with domains - by: martin

Thank you - we are still testing 3.0.3 and I have now applied the patch.

I moved the config_id from Line 979 to 983 - so there it should be more applicable:

[code]
case "tbl_service":
$strConfigName = ... [More] $this->myDBClass->getFieldData("SELECT `config_name` FROM `".$strTableName."` WHERE `id`=".$arrData[$i]['id']);
$setTemplate = "services.tpl.dat";
$this->getConfigData("serviceconfig",$strBaseDir);
$this->getConfigData("servicebackup",$strBackupDir);
$strSQLData = "SELECT * FROM `".$strTableName."` WHERE `config_name`='$strConfigName' AND `config_id`=".$this->intDomainId." ORDER BY `service_description`";
break;
[/code] [Less]

Subject: Duplicate definition in Nagios with domains - by: martin

I will attach the actual class file to this thread this evening - so you can check if this is solvend in 3.0.3 or not :)

Subject: Duplicate definition in Nagios with domains - by: jhoude

Hi,

My question is related to bug 231. I'm having the same problem as described but using the latest 3.0.2 version of NagiosQL.

http://www.nagiosql.org/_mantis/view.php?id=231

Basically, when you have more then one domain ... [More] , services are exported cross-domain. Example:

I have Domain1 with Service1 and Service2
I have Domain2 with Service1 and Service2

When I export Domain1 configuration I get the following services in the files: Service1, Service1, Service2 and Service2. Shouldn't I only have one Service1 and one Service2?

Same thing for Domain2, I get all 4 services...

This cause the following error in Nagios, as you can see with the "CPU usage" service.

[1240882148] Warning: Duplicate definition found for service 'CPU usage' on host 'nagios' (config file '/opt agios/etc/services/NRPE.cfg', starting on line 30)
[1240882148] Warning: Duplicate definition found for service 'CPU usage' on host 'nagios' (config file '/opt agios/etc/services/NRPE.cfg', starting on line 14)

Can someone let me know if it is normal behavior? If not, is there plan to fix this in 3.0.3 or can you provide a patch?

I am using:

NagiosQL 3.0.2
Nagios 3.0.6 (compiled for i386)
CentOS 5.3 x86_64
PHP 5.1.6 (standard RPM from CentOS)
Apache 2.2.3 (standard RPM from CentOS)
MySQL 5.0.45 (standard RPM from CentOS)

Thank you very much,

Jean-Philippe [Less]

Subject: Improvments for 3.1 - by: jhoude

Web authentication as discuss above would be really interesting. The way to add services hosts (also discuss) would be a great improuvment too!

Adding some options like activate/deactivate in the dropdown box under Functions (this box is used when you select more then one item).

Thanks for the great tool you provide.

Subject: Adding Services for a New Host - by: johan

For us, this would be a great improvement too. Can you say anything about a releasedate for 3.1?

Subject: Database setup fails - by: rouven

Hi,
we are just waiting for a few translations. Besides that we are currently testing the base features again and 3.0.3 will be ready by the end of the week (if nobody of the translation team is at vacation)...

Subject: Table 'db_nagiosql_v3.tbl_settings' doesn't exist - by: ds_bsz

ok, thank you! i'll try it again with the next bugfix release.

Subject: Having some issues - by: martin

Your error messages comes from nagios itselves. While checking the configuration we start only a:

nagios -v /path/to agios.cfg

So, the only possibility for this issue is a wring nagios.cfg or incomplete cfg files.

As next step, i suppose to check your cfg files by hand and find out which objects are missing.

Subject: Table 'db_nagiosql_v3.tbl_settings' doesn't exist - by: ds_bsz

sorry, image was to large... http://www.nagiosql.org/images/fbfiles/images agiosql_error_step3.JPG