<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Another potential option is setting ups a 'postgres' contact, with a
custom notification command. Pass the data you want to store, to
the notification command, and let that dump the data to the
database.<br>
<br>
This can potentially be as simple as a bash script that takes the
input, builds a sql statement and echos it to the postgresql client
binary.<br>
<br>
On 2/8/11 3:13 PM, Michael Friedrich wrote:
<blockquote cite="mid:4D51CDFD.1050301@univie.ac.at" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<tt>On 07.02.2011 22:49, larry johnson wrote:</tt>
<blockquote
cite="mid:AANLkTikvegk7_HZ7WbtvGfin6JxsYrpXVh_FcaDk052o@mail.gmail.com"
type="cite"><tt>Hello, i am newbie to linux/Nagios and need help
to
clear some doubts.<br>
I wander whether is possible to make Nagios writing
notification (host
up/host down, for example) into PostgreSQL database?<br>
</tt></blockquote>
<tt><br>
if you write your own NEB broker module, and put that onto libpq
or
similar, the core will be able to, sure. Or you'll have a look
at
Icinga IDOUtils which support Postgresql quite a while now.<br>
<br>
</tt>
<blockquote
cite="mid:AANLkTikvegk7_HZ7WbtvGfin6JxsYrpXVh_FcaDk052o@mail.gmail.com"
type="cite"><tt>I found NDOUtils, but this addon does not suit
me
because i don't use MySQL.<br>
</tt></blockquote>
<tt><br>
Well there aren't that much alternatives to that. Merlin
supports MySQL
and Oracle (in development on git). I'm not sure if the Centreon
Broker
is already released which *should* support more RDBMS. <br>
<br>
But for notifications only, why not using event handlers? then
you
could call scripts putting data into your rdbms the preferred
way.<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://nagios.sourceforge.net/docs/3_0/eventhandlers.html">http://nagios.sourceforge.net/docs/3_0/eventhandlers.html</a><br>
<br>
kind regards,<br>
Michael<br>
<br>
</tt>
<blockquote
cite="mid:AANLkTikvegk7_HZ7WbtvGfin6JxsYrpXVh_FcaDk052o@mail.gmail.com"
type="cite"><tt>Also found that this kind of storage is suported
under
Nagios 1.x, but what about 3.x?<br>
I run Nagios 3.2.3 (with 1.4.15 plugins) on openSUSE 11.3.<br>
<br>
Regards.<em></em><span style="visibility: visible;"
id="search"><span class="tl"></span></span></tt></blockquote>
</blockquote>
<pre class="moz-signature" cols="72">
Mike Lindsey</pre>
</body>
</html>