NagiosQL and tbl_service

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
emi65
Posts: 119
Joined: Fri Aug 17, 2012 3:41 am

NagiosQL and tbl_service

Post by emi65 »

Hi expert

I'm using nagiosQL 3.2 and in tbl_service there is a field called
import_hash

Do you know what is ?

thanks
Emilio
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagiosQL and tbl_service

Post by abrist »

From: https://svn.nagiosql.org/nagiosql/tags/ ... 04_310.sql
-- Add new import_hash field for all tables without key
A few of the nagios objects do not have a unique key: escalations/dependencies. I think import_hash was added to give these a unique key, and I think they just extended the behavior to all objects (as they should).
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
emi65
Posts: 119
Joined: Fri Aug 17, 2012 3:41 am

Re: NagiosQL and tbl_service

Post by emi65 »

... but I create a bash/mysql script in order to add massive services in the tbl_service

I am able to add all and I don't get any error but from the nagios interface I cannot see the service
(I see just the host)

If I check the tbl_service I see the record but the import_hash field is empty.

Is there a way to set a right value for this field ?

I did also this test
from nagiosql interface , I duplicate one oh this inserted service and I save it, so
I'm able to see this service in the nagios interface and also the original .
Why ?
When I check the tbl_service of this duplicate service I can see a value in the hash field .

So the question is : what is the right way to create a valid hash value ?

thanks
Emilio
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NagiosQL and tbl_service

Post by Box293 »

This question is better suited in the NagosQL forums:

http://www.nagiosql.org/forum8/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked