There are two ways I've used to accomplish this. The first method I used was having Cacti poll data then use a RRD check plugin to get the last data and alert if it triggered an alarm. The latest method I've used which needs some additional work is to use the Cacti plugin Thold to trigger a breach of a threshold. I think use Nagios to access the mySQL database and check the thold table if the alert is triggered or not (check_cacti_thold). Placing your database somewhere both systems can access will get you to where you want.
The main reason I do this is because Cacti provides a much more "time" reliable polling mechanism unlike Nagios's scheduling. ---- Larry Low -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Max Sent: Wednesday, March 19, 2008 2:26 PM To: Nagios Users Mailinglist Subject: Re: [Nagios-users] Can Cacti poll passively via Nagios client? On Wed, Mar 19, 2008 at 5:20 PM, Roger <[EMAIL PROTECTED]> wrote: > Is it possible to use Cacti to poll via passive checks on servers? > > Since Nagios has a problem with a high numbers of active checks, I'm hoping > to use Cacti's poller to tell servers buried behind firewalls to check > neighboring internal devices and then report back to the centralized Cacti > servers in my colo. > > Any thoughts on this? You could use Cacti to poll, as a part of each check you do, have it append to a file, a database, some type of persistent storage, and then have a another script that runs, either via cron or as a daemon, that pulls events from the persistent store and submits them to Nagios as passive checks using NSCA ... or have the checks themselves call send_nsca to submit the checks to Nagios over the wire ... I know that doesn't give you an all Cacti solution, but this is a Nagios group :). Have you thought about using distributed Nagios as another solution to this problem? Finally, if you make use of perfdata and use PNP or another graphing framework add-on to Nagios, you can pretty much replace Cacti altogether for graphing and reduce the double polling that happens when Cacti and Nagios are checking the same sets of devices ... - Max ------------------------------------------------------------------------- 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 [email protected] 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 ------------------------------------------------------------------------- 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 [email protected] 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
