From: Michael G. <mic...@pa...> - 2005-03-17 16:51:15
|
Hello, I believe I have my nagios working correctly with perfparse now ... no thanks to the documentation. I followed all the steps in the how to for using the PIPE method. Now the data would just fill up in the serviceperf.log and never get into the database. It turns out that you have to run the perfparsed binary to start / open the PIPE. Now this does not simple work by executing the binary .. you will need to pass it parameters for how the data should be stored. The log files should show "No module was loaded. Check the Storage_Module_Load config option" .. so I run the binary with: ./bin/perfparsed --storage_modules_load mysql & This started the perfparsed app and created the PIPE. Now data is being sent into the database ... so it seems to be working. Michael. On Wed, 2005-03-16 at 22:40 +0000, Ben O'Hara wrote: > On Wed, 16 Mar 2005 15:30:58 -0700, Michael Gale <mic...@pa...> wrote: > > Hello, > > > > I have complied nagios 1.2 with --with-default-perfdata --enable- > > embedded-perl --with-perlcache > > > > I then complied perfparse 0.105.6 > > > > I want nagios to feed perfparse via a PIPE since that seemed like the > > best option. > > > > Same here Micheal, following the docs for using a PIPE seems to > suggest you dont need to use cron, however, I found I had to call > ./bin/perparse.sh to call ./bin/perfparse-log2mysql.pl every 5 minutes > to update the DB. > > This didnt seem right to me, and caused Nagios to reschedule its > checks so services never got checked. > > Seems you need to run perfparsed to create a pipe and then start > nagios. Although Im not 100% sure as the documentation seems a bit > lacking :-( > > Anyone got full setup they could share with us? > > Cheers > > Ben |