yes I realised afterwards that using the nagios_object table I could retrieve this binding.<br>I've also been missing the contact_name in the nagios_contacts table which would be handy (also available through the nagios_object table) ...
<br>Small question on the table contents : what is the use of the config_type field in contacts/hosts/services tables?<br><br>Having the sql sample will be of help I think, thanks for this.<br><br>Seb.<br><br><br><div><span class="gmail_quote">
On 1/19/07, <b class="gmail_sendername">Ethan Galstad</b> <<a href="mailto:nagios@nagios.org">nagios@nagios.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sébastien Barbereau wrote:<br>> Hello,<br>> I've been looking through the db structure and can't find how to link a<br>> service object to a host object.<br>> Does some one know how to do this from DB?
<br>><br>> Thanks,<br>> Seb<br><br>Hmm, this seems to be a huge oversight on my part.  I'm releasing 1.4b2<br>with a few patches.  One of them fixes this problem by adding a<br>'host_object_id' field to the services table.  Technically, a join could
<br>be done previously, but the join would have had to be done on varchar<br>fields.<br><br>Also, I've included a bunch of sample SQL queries in the db/sql<br>subdirectory to show how to grab info.<br><br>Thanks for the report!
<br><br><br>Ethan Galstad,<br>Nagios Developer<br>---<br>Email: <a href="mailto:nagios@nagios.org">nagios@nagios.org</a><br>Website: <a href="http://www.nagios.org">http://www.nagios.org</a><br><br>-------------------------------------------------------------------------
<br>Take Surveys. Earn Cash. Influence the Future of IT<br>Join SourceForge.net's Techsay panel and you'll get the chance to share your<br>opinions on IT & business topics through brief surveys - and earn cash
<br><a href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a><br>_______________________________________________
<br>Nagios-devel mailing list<br><a href="mailto:Nagios-devel@lists.sourceforge.net">Nagios-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-devel">https://lists.sourceforge.net/lists/listinfo/nagios-devel
</a><br></blockquote></div><br>