[Nagios-db-devel] mysql module added
Status: Beta
Brought to you by:
bench23
From: Matthew K. <mk...@ma...> - 2005-01-06 04:01:55
|
I've sent up my initial attempt at a mysql version of the postgres module. It's reasonably complete, meaning it does all the things the postgres module does (although in a far less pretty way) with an identical table structure. Also regarding the issue with retention data, it turns out I was wrong, NEBCALLBACK_PROCESS_DATA is called before the data is loaded from the rentention file into memory resulting in that 'loading the data twice problem' I mentioned. The solution I found was to register NEBCALLBACK_TIMED_EVENT_DATA for a one off call to 'loadconfig' (formerly processStart). Timed events aren't scheduled until after the retention file is loaded. It's kinda hackish but works. Once loadconfig is hit I loop through the host and service lists sending the data to processStatus. Excuse me if I didn't explain this well, hopefully my code will. -- Matthew Kent <mk...@ma...> http://magoazul.com |