From: Ben C. <Be...@cl...> - 2004-07-22 16:22:26
|
Christohe, The --delete option does not quite restart Nagios. It sends a SIGHUP to the pid. Nagios responds by re-reading it's files, and crucially, re-opening serviceperf.log. Therefore allowing us to safely move this file to another name, which is later deleted. This should not effect Nagios. If you are finding it does effect Nagios, please let us know exactly how. You do have another option. Don't use the --delete option on a normal parse. Then once a day, or once every few days, run: perfparse -r --delete Alternatively, every day or so after running PerfParse you can enter: echo -n > serviceperf.log This truncates the log file to zero length. This will unfortunately loose a few lines of data. If you can live with this then you never have to effect Nagios. Regards, Ben. PS, Garry, this might be a good addition to the FAQ :) cgo...@tc... wrote: > > > > Hello, > > I use your plugin which is very helpfull for collating performance data. > I have just one question about it : > It seems that when I use the --delete option, it restart the nagios > process. > Does it change the avaibility stats with this nagios downtime (today it > restart 4 times per hours - every 15 minutes in my crontab) ? > So, is there a way to use it without restarting the nagios process. > > Thank you. > > Regards. > > Christophe GOGUYER DESSAGNES > IT Architect > Touring Club Suisse > Phone : +41 22 417 29 34 > Fax : +41 22 417 23 12 > Web : http://www.tcs.ch > > > > _____________________________________________________________________________ > > Ce message et les documents qui y sont attaches sont confidentiels et couverts par le secret professionnel. Ils sont destines uniquement aux personnes designees ci-dessus. Ils ne doivent pas etre diffuses et leur contenu ne doit pas etre utilise ou divulgue. Dans le cas ou ce message et les documents attaches vous seraient parvenus par erreur, nous vous remercions de nous informer de l'erreur commise et de les detruire aussitot. > > Diese Mitteilung sowie die angehaengten Dokumente sind vertraulich und dem Berufsgeheimnis unterstellt. Sie sind nur fuer die obgenannten > Personen bestimmt und duerfen nicht verteilt werden, auch darf deren > Inhalt weder verwendet oder verbreitet werden. Falls Sie diese Mitteilung und die angehaengten Dokumente irrtuemlich erhalten haben sollten, bitten wir Sie, uns ueber diesen Irrtum zu informieren und die Mitteilung samt Anhang sofort zu vernichten. > > This message and the attached documents are confidential and covered by professional secrecy. They are intended to their adresses only. They should not be used for any purpose and their content should not be disclosed to anyone. In case you have received this message and the attached documents by mistake, please advise us and delete them immediately. > |