From: Ben C. <bcl...@pe...> - 2005-01-07 10:34:37
|
I have cc'd this to developers list in case any other contributer knows of or wants to add a script to PP. May I check the scripts to ensure the correct author credited? check_perfparse.sh - Tim perfparse_nagios_command.pl - Tim ? perfparse_nagios_pipe_command.pl - Tim ? perfparse_daemon.sh - Yves perfparse.sh - Ben / Yves Tim, I don't have any other scripts in the distribution currently. Is it one of these which is based on restart-httpd? Are we missing any? Regards, Ben Tim Wuyts wrote: > Ben, > > to be honest, I simply adapted this script from the Nagios > documentation to handle the perfparse daemon instead of apache. It's > not a lot more than search/replace ;) > I don't mind you adding it, but credit should not go to me alone, it > should be added that it was based on the restart-httpd script as found > in the Event Handlers section of the Nagios 1.0 doc. > > The perl script is a different matter, I don't mind if it's added there. > > Tim. > > On Fri, 07 Jan 2005 09:32:21 +0000, Ben Clewett > <Ben...@ro...> wrote: > >>Tim, >> >>By the way, >> >>May I add this to the top of your check_perfparse.sh script: >> >>######################################################################### >># Check Perfparse Nagios Plugin >># Copyright (c) 2004 Tim Wuyts <tim...@gm...> >>######################################################################### >># >># License: >># >># This program is free software; you can redistribute it and/or modify >># it under the terms of the GNU General Public License as published by >># the Free Software Foundation; either version 2 of the License, or >># (at your option) any later version. >># >># This program is distributed in the hope that it will be useful, >># but WITHOUT ANY WARRANTY; without even the implied warranty of >># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >># GNU General Public License for more details. >># >># You should have received a copy of the GNU General Public License >># along with this program; if not, write to the Free Software >># Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. >># >>######################################################################### >> >>?? >> >>Ben >> >> >>Tim Wuyts wrote: >> >> >>>Ben, Yves, >>> >>>Sorry for the late answer, I've been enjoying a few days with my wife & kids >>>and no computers ;) >>> >>>I'm not sure why you want to check: If the module fails to load because of a >>>wrong version, the check_perfparse will fail (i.e return CRITICAL) as well >>>after the set threshold, since no data will be written to the database. >>> >>>It is not a lot of work to get the current version from the DB and check it >>>against the 'expected' value, the main problem here is where to get the >>>'expected' value from. In perfparse, this is hardcoded (in >>>libpp_mysql/common.h). I could hardcode it in the script, but then >>>1. you will need to remind yourself to update the script as well as common.h >>>whenever the version changes. >>>2. we will need to make sure that the script gets updated during 'make >>>install'. >>>But IMHO, I don't think this is a good idea. >>> >>>BTW, I have no idea if anyone actually uses this :) >>> >>>Tim >>> >>>PS: please use my gmail address for future communications, Thx. >>> >>> >>> >>> >>>>-----Original Message----- >>>>From: Ben Clewett [mailto:bcl...@pe...] >>>>Sent: 30 December 2004 13:00 >>>>To: Yves Mettier; Tim Wuyts >>>>Subject: **SPAM** **SPAM BAYESIAN_PLUGIN BODY** Re: pp-0.104.5 ? >>>>Importance: Low >>>> >>>>I'll ask Tim about this, he is 'cc' on this email. >>>> >>>>A summary to Tim: >>>> >>>>A problem exists when database version changes. The parser >>>>will exit in failure. Users may loose data. We are >>>>suggesting that you may wish to check the version of the SQL >>>>in your check_perfparse plugin. >>>> >>>>Look at code libpp_mysql/db_macro_actions.c line ~140 >>>>function 'db_version_error'. >>>> >>>>Can you replicate this in your plugin and return ERROR ? >>>> >>>>Do you want to add this plugin to the standard release ? >>>> >>>> >>>>Yves, >>>> >>>>I will have a look at the code and alter >>>>$prefix/var/storage_modules.status with the line: >>>> >>>>mysql:disable >>>> >>>>If the database is wrong. Do you have any nice code for >>>>setting these values? Or a sample I can copy? >>>> >>>>Ben >>>> >>>> >>>> >>>> >>>> >>>> >>>>Yves Mettier wrote: >>>> >>>> >>>> >>>>>>Yves, >>>>>> >>>>>>What about the check_perfparse plugin used for pipe users? >>>> >>>>Can this >>>> >>>> >>>>>>execute a check against the mysql_storage module, if that >>>> >>>>is being used? >>>> >>>> >>>>>Not as is. >>>>>Ask Tim if he as something better than check_perfparse :) >>>>> >>>>>There is something that you can do with the >>>> >>>>$prefix/var/storage_modules.status file (in >>>> >>>> >>>>>0.104.5 only) : a line with >>>>>- mysql:enabled >>>>>means that mysql is working >>>>>- mysql:disable >>>>>means that mysql module has a problem >>>>>- nothing >>>>>means that mysql module was not loaded. >>>>> >>>>> >>>>> >>>>> >>>>>>Otherwise I can just post a warning to the users. >>>>> >>>>> >>>>>Do it. >>>>>Who uses check_perfparse ? :) >>>>>Same as the mail : who uses the standard error detection >>>> >>>>mechanisms ? >>>> >>>> >>>>>>As soon as they run the CGI, they will get this error and >>>> >>>>see what is >>>> >>>> >>>>>>wrong. We can hope this is not too soon... >>>>> >>>>> >>>>>The test also exists in the CGI, so they can see it soon. >>>>> >>>>>Yves >>>>> >>>> >>>> >>>>-- >>>>Ben Clewett bcl...@pe... >>>>PerfParse http://www.perfparse.org >>>>PP FAQ http://wiki.perfparse.org/tiki-list_faqs.php >>>> >>> >>> >> > -- Ben Clewett bcl...@pe... PerfParse http://www.perfparse.org PP FAQ http://wiki.perfparse.org/tiki-list_faqs.php |