From: Ben C. <Be...@cl...> - 2004-08-27 07:32:51
|
Remember as well that by default PP will install the file: /usr/local/nagios/etc/perfparse.cfg.example You need to rename this: /usr/local/nagios/etc/perfparse.cfg And add your own settings. Ben. Paulo Afonso Graner Fessel wrote: > Recompile perfparse according to the instructions: >=20 > ./configure \ > --prefix=3D/usr/local/nagios \ > --with-imagedir=3D/usr/local/nagios/share/images/ \ > --with-cgidir=3D/usr/local/nagios/sbin \ > --with-http_image_path=3D/nagios/images >=20 > (Of course, I'm assuming that you've got nagios in /usr/local/nagios.) >=20 > This way, perfparse.cfg will be installed at /usr/local/nagios/etc. >=20 > []'s > Paul=E3o >=20 > Paulo Afonso Graner Fessel > Administrador de Ambiente e Sistemas UNIX > pau...@pr... > OWT > Fone: +55 (11) 3038-6464 > Fax: +55 (11) 3038-6508 > http://www.primesys.com.br > =20 > =20 > =20 > =20 >=20 >=20 >>-----Mensagem original----- >>De: per...@li...=20 >>[mailto:per...@li...] Em nome=20 >>de Wilson Pires Jr >>Enviada em: quinta-feira, 26 de agosto de 2004 16:56 >>Para: 'Cook, Garry'; per...@li... >>Assunto: RE: [Perfparse-users] nagios restarting >> >> >> >>>I didn't see this original message on the PerfParse User's=20 >> >>mailing list. >> >>>Did this thread begin somewhere else, or am I missing some messages? >> >>[Wilson Pires Jr] >>Garry, the original message was posted on PP User's mailing list. >> >> >>>per...@li... wrote: >>> >>>>>Hi all. >>>>> >>>>>I've observed my nagios restart every perfparse.sh run. I use >>>>>perfparse-0.99.07 >>> >>>You should upgrade to 0.99.09. It may or may not help with=20 >> >>this issue,=20 >> >>>but there are a couple of other bugfixes/enhancements=20 >> >>available in the=20 >> >>>latest version. And don't forget to run=20 >>>'/<path_to>/nagios/bin/perfparse-db-tool --update' after=20 >> >>each upgrade... >> >>[Wilson Pires Jr] >>I'm upgrading, but I can't run the upgrade: >>Error, can't open configuation file: "//usr/local/etc/perfparse.cfg" >>I'm logged as root. The perfparse.cfg owner is root. What=20 >>mistake am I doing? >> >> >>>>>[26-08-2004 12:35:00] Nagios 1.2 starting... (PID=3D12443) >>>>>[26-08-2004 12:35:00] Caught SIGHUP, restarting... >>>>> >>>>>Is this ok? If so, why is needed nagios restarting? >>>> >>>>If you are using --delete* option, yes, perfparse sends=20 >> >>some SIGHUP=20 >> >>>>signal to nagios to ask for restart and use a new serviceperf.log=20 >>>>file. >>>>Otherwise, nothing to see with perfparse. >>> >>>I've seen some postings (on Nagios Users or Devel lists)=20 >> >>about Nagios=20 >> >>>restarting when sent a HUP, whereas it should only re-read=20 >> >>it's config=20 >> >>>files. I don't remember exactly, but I think the original=20 >> >>posters may=20 >> >>>have been using Nagios 2.0 and/or Fedora Linux Distro. Are=20 >> >>you using=20 >> >>>either of these? What versions of Nagios/Linux are you using? >>> >> >>[Wilson Pires Jr] >>I run: >>nagios 1.2 >>redhat 9 >>plugin 1.4a >> >> >>>>>I'm trying to figure out why my nagios stops working after few=20 >>>>>hours and I'd like to know if this "nagios restarting" has some=20 >>>>>relation to "nagios stopping". >>>> >>>>perfparse does not ask nagios to stop, but only to start=20 >> >>writing to=20 >> >>>>a new serviceperf.log file, which also mean restarting, but not=20 >>>>stopping. >>>>In your log, strange that nagios starts and restarts at the same=20 >>>>time. SIGHUP caught by change at that time ? >>> >>>If Nagios fails to HUP properly, it could be leaving you with more=20 >>>than one Nagios process running. This can sometimes cause odd=20 >>>behavior, like checks not being run and/or notifications=20 >> >>not being sent. >> >>>Is Nagios actually shutting down? Or is it running but not=20 >> >>performing=20 >> >>>actions as expected? >>> >> >>[Wilson Pires Jr] >>As you said below nagios remains running, bur stops performing checks. >> >> >>>>>When nagios stops its checks, it always has a zombie process. >>>> >>>>How long do they live ? (just asking for if others can help :) >>>> >>>>Yves >>>> >>>> >>>>>Regards, >>>>> >>>>>Wilson >>> >>>It looks like you've already answered the question that I=20 >> >>asked above. >> >>>So, Nagios is running but not performing checks, correct?=20 >> >>This is most=20 >> >>>likely related to the zombie/second running Nagios process.=20 >> >>This may=20 >> >>>be due to the HUP sent by PerfParse, but not exactly caused=20 >> >>by it. A=20 >> >>>HUP sent to Nagios by PP, command line, or some other=20 >> >>process should=20 >> >>>be interpreted correctly and not cause this problem. If it's not=20 >>>working correctly, I believe that the problem is related to Nagios=20 >>>itself. If you can provide the version information that I=20 >> >>asked above=20 >> >>>(Nagios/Linux), I can look back through the archives and see what=20 >>>information I can find. Or, you could do this if you are on Nagios=20 >>>and/or Nagios Devel lists. >>> >> >>[Wilson Pires Jr] >>Ok. The versions are above (nagios 1.2, rh9). I've used=20 >>nagios-1-x-cvs trying to correct the problem, but it persists. >>If you can, I ask your tips since I don't know what HUP or=20 >>SIGHUP exactly does. >> >> >>>Garry W. Cook, CCNA >>>Network Infrastructure Manager >>>MACTEC, Inc. - http://www.mactec.com/ >>>303.308.6228 (Office) - 720.220.1862 (Mobile) >>> >>> >>>------------------------------------------------------- >>>SF.Net email is sponsored by Shop4tech.com-Lowest price on=20 >> >>Blank Media=20 >> >>>100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for=20 >> >>only $33 Save=20 >> >>>50% off Retail on Ink & Toner - Free Shipping and Free Gift. >>>http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >>>_______________________________________________ >>>Perfparse-users mailing list >>>Per...@li... >>>https://lists.sourceforge.net/lists/listinfo/perfparse-users >> >> >> >> >> >>------------------------------------------------------- >>SF.Net email is sponsored by Shop4tech.com-Lowest price on=20 >>Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic=20 >>DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free=20 >>Shipping and Free Gift. >>http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >>_______________________________________________ >>Perfparse-users mailing list >>Per...@li... >>https://lists.sourceforge.net/lists/listinfo/perfparse-users >> >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users >=20 |