Login

Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

Services import problem
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Services import problem
#645
Services import problem 1 Year, 6 Months ago Karma: 0
I'm trying to setup NagiosQL 3.0.1 to manage my rather large Nagios setup.

In nagios, I have a services.cfg file with 1495 entries, all along the same lines as:
Code:

define service {
service_description SSB-switch-ping
use Network-service
host_name swssbkcg
max_check_attempts 5
normal_check_interval 5
check_command check_ping!3000,20%!5000.0,60%
}



When I do the import, I get 1495 lines saying:
Entry config_name::services inside tbl_service successfully inserted

However, only 111 services appear under Supervision. Not surprisingly when I try to run the config file check, this fails as most the services are missing.

The log suggests everything went ok:
File imported - File [overwrite flag]: /usr/local/nagios/etc/services.cfg [1]

I did try splitting my services.cfg file in to 15 seperate files with 100 entries in. This allowed my to import 566 entries, though on writing the files out again it stuck on 111 entries.

Any idea what is going on, or is there an option to import in a verbose mode?

Also, is there a general user guide for NagiosQL?
daveukc
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#646
Re:Services import problem 1 Year, 6 Months ago Karma: 2
Hi,
please upgrade to 3.0.2 which fixes some problems with the importer as well. Look at the mainsite for the list of changes and download links.

Cheers,
Rouven
rouven
NagiosQL Developer
Posts: 255
graphgraph
User Offline Click here to see the profile of this user
47315142 Gender: Male NagiosQL Location: Hamburg, Germany Birthday: 03/19
The administrator has disabled public write access.
 
#649
Re:Services import problem 1 Year, 5 Months ago Karma: 0
That has improved matters.

I decided to completely clean out the old install and go for it again from scratch with 3.0.2.

This time I have 857 out of 1495 services imported.

For some reason, rather than say it has imported services, all I got was blank page from Administration -> Tools -> Data import down.

Any other suggestions?
daveukc
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/03/11 14:36 By daveukc.
The administrator has disabled public write access.
 
#652
Re:Services import problem 1 Year, 5 Months ago Karma: 5
There are some browser and php timeouts - do not import more than 100-200 services each time.
martin
NagiosQL Founder
Posts: 307
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#662
Re:Services import problem 1 Year, 5 Months ago Karma: 0
Thanks, that seems to have resolved that problem.

I'm nearly there, though it looks like I have one final issue.

Checks are failing on extended services. Although I have imported the extended templates and the log confirms, I can not find these via the web interface, a table for these or a config file written out.

As a consequence, in the extended service file, the 'use' line defining the template is missing from what I originally imported.

Can NagiosQL support extended service templates?
daveukc
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#663
Re:Services import problem 1 Year, 5 Months ago Karma: 5
I don't exactly understand what you mean.

There are some extended service configurations, but no templates?

In nagiosQL3.x for Nagios 2.x this is located in
specials -> ext. service

Inside NagiosQL 3.x for Nagios 3.x there are two possible ways:
specials -> ext. service (as backward compatibility)
directly inside the service and service template definitions (new supported in Nagios 3.x)
martin
NagiosQL Founder
Posts: 307
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12