On 01/17/2008 12:12 PM, Matthias Kloth wrote: > Tom Throckmorton schrieb: > | On Jan 11 08:51, [EMAIL PROTECTED] wrote: > |> Has anyone got a plugin or script they use to check the status of the > |> ndo2db daemon? I've been looking on nagiosexchange and through google > |> and am yet to find one. I'm not much of a programmer, so I really can't > |> right one up myself or I would. Any help on this issue would be > wonderful. > | > | I'm using check_mysql_query to check that db updates aren't stale: > | > | check_mysql_query -H naghost -d <nagios_db> -u <readonlyuser> -p > <somepass> \ > | -q "SELECT NOW() - status_update_time FROM nagios_programstatus" -w > 120 -c 300 > | > | If ndo2db is dead/failed to start, or there are other issues (corrupt > tables), > | I believe this will catch it. You could also do something like watch > the nagios.log > | for the dreaded "unable to connect to data sink" message, or check > that the > | ndo2db process is running, though I'm finding that checking the db for > | freshness is a good indicator. > | > | -tt > | > | > There is a plugin that checks for the ndo2db daemon called . You can > find it on > http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1[p_view]=1203.
Thanks, Matthias. I saw svalding's later post with the shell script. -tt -- Tom Throckmorton OIT - CSI Duke University ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null