You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(12) |
Jun
(56) |
Jul
(68) |
Aug
(141) |
Sep
(82) |
Oct
(76) |
Nov
(115) |
Dec
(74) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(65) |
Feb
(113) |
Mar
(82) |
Apr
(37) |
May
(44) |
Jun
(22) |
Jul
(12) |
Aug
(3) |
Sep
(17) |
Oct
(11) |
Nov
(23) |
Dec
(1) |
2006 |
Jan
(1) |
Feb
(9) |
Mar
(6) |
Apr
(12) |
May
(10) |
Jun
(23) |
Jul
(1) |
Aug
(4) |
Sep
(3) |
Oct
(4) |
Nov
(6) |
Dec
(15) |
2007 |
Jan
(17) |
Feb
(14) |
Mar
(20) |
Apr
(7) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(5) |
Oct
(1) |
Nov
|
Dec
(2) |
2008 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
(6) |
Jun
(5) |
Jul
(13) |
Aug
(2) |
Sep
(16) |
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Ben C. <Be...@cl...> - 2004-09-02 07:43:47
|
Dear Arnar, You should be getting data. Can you do two things for me? Can you wait until you have a good sized log file. Then run 'perfparse -r' and return me the output from the run. Can you also check your drop file, which I see is /tmp/perfparse.drop. This might give you some reason why you have no data. Regards, Ben Arnar Thorarinsson wrote: > Just installed PerfParse ( version 0.100.1 ) and no data is put into the > mysql database. > > Running Nagios 1.2 on a redhat 9 system. > when running /usr/local/nagios/bin/perfparse I get no output > > > /usr/local/nagios/bin/perfparse --show_config > DB_User = "perfmon" > DB_Name = "perfmon" > DB_Pass = "perfmon123" > DB_Host = "localhost" > Drop_File = "/tmp/perfparse.drop" > Service_Log = "/usr/local/nagios/var/serviceperf.log" > Host_Log = "/usr/local/nagios/var/hostperf.log" > Dummy_Hostname = "dummy" > Delete_Service_Log = "No" > Delete_Host_Log = "No" > Nagios_Lock = "/usr/local/nagios/var/nagios.lock" > Lock_File = "/var/lock/perfparse.lock" > Be_Silent = "no" > Do_Report = "no" > Accept_Odd_Chars_in_Label = "no" > Default_user_permissions_Policy = "rw" > Default_user_permissions_Host_groups = "rw" > > > I am using the check_http plugin ( which to my understanding is fully > compatable with PerfParse ) > > in /usr/local/nagios/var/serviceperf.log getting : > 1094062001 rex HTTP HTTP OK HTTP/1.1 200 OK - 4746 bytes in > 0.531 seconds OK time=0.531222s;;;0.000000 size=4746B;;;0 > > but nothing is entered into the database for PerfParse, is the output in > the serviceperf.log not correct ? > > After initial installation of PerfParse are all the tables in the > database suppost to be empty ? > what am I missing here ??? > > > |
From: Arnar T. <ar...@ca...> - 2004-09-01 18:09:33
|
Just installed PerfParse ( version 0.100.1 ) and no data is put into the mysql database. Running Nagios 1.2 on a redhat 9 system. when running /usr/local/nagios/bin/perfparse I get no output /usr/local/nagios/bin/perfparse --show_config DB_User =3D "perfmon" DB_Name =3D "perfmon" DB_Pass =3D "perfmon123" DB_Host =3D "localhost" Drop_File =3D "/tmp/perfparse.drop" Service_Log =3D "/usr/local/nagios/var/serviceperf.log" Host_Log =3D "/usr/local/nagios/var/hostperf.log" Dummy_Hostname =3D "dummy" Delete_Service_Log =3D "No" Delete_Host_Log =3D "No" Nagios_Lock =3D "/usr/local/nagios/var/nagios.lock" Lock_File =3D "/var/lock/perfparse.lock" Be_Silent =3D "no" Do_Report =3D "no" Accept_Odd_Chars_in_Label =3D "no" Default_user_permissions_Policy =3D "rw" Default_user_permissions_Host_groups =3D "rw" I am using the check_http plugin ( which to my understanding is fully compatable with PerfParse ) in /usr/local/nagios/var/serviceperf.log getting : 1094062001 rex HTTP HTTP OK HTTP/1.1 200 OK - 4746 bytes in 0.531 seconds OK time=3D0.531222s;;;0.000000 size=3D4746B;;;0 but nothing is entered into the database for PerfParse, is the output in the serviceperf.log not correct ? After initial installation of PerfParse are all the tables in the database suppost to be empty ? what am I missing here ??? --=20 Kve=C3=B0ja Arnar =C3=9E=C3=B3rarinsson T=C3=B6lvunarfr=C3=A6=C3=B0ingur Kerfisdeild S=C3=ADmi : 569 4289 GSM : 861 2871 ---------------------- Flugm=C3=A1lastj=C3=B3rn =C3=8Dslands Reykjav=C3=ADkurflugv=C3=B6llur 121 Reykjav=C3=ADk http://www.caa.is ---------------------- |
From: James O. <jo...@re...> - 2004-09-01 16:45:16
|
Hi all, Ok, I got the deletion policy issue resolved. For whatever reason the perfdata_delete_policy table was not populated, and once the two defaults were in there it started working... However it was a bit too late ;) I discovered that my innodb file had grown to 13G, and one of the tables is now totally unresponsive (perfdata_service_bin). So the question that I have is if I want to have graphical data for these metrics over at least the last year, if not longer, what data would I have to keep? What tables are used for generating the graphs? Secondly, I have a relatively small environment that I am monitoring with nagios right now (in the neighborhood of 200 machines) and I have only set up about 10% of them so far. I have only had perfparse running for about a month and a half and already generated a 13G database file... if I specify the no-raw option will that drastically cut down on the amount of data being stored? Of course, if I can set short times on the delete policies and still get graphs over the time period that I need then this becomes a non-issue. The third question is if anyone has had success using the file_per_table option with innodb and mysql and perfparse? It seems like it would be easier to manage the file sizes with separate files for each table. Thanks, James |
From: Yves M. <yme...@li...> - 2004-09-01 14:59:04
|
There should be problems only if you set LANG=3Dfr If you want to try again with no error messages, try this: edit fr.po and find, at the very beginning, some line aboug CHARSET. Repl= ace the string "CHARSET" with something like "iso-8859-1" or "ISO-8859-1" or "ascii" or = even "utf-8". I hope that one works. Also remove the fr.gmo file. Then compile again. Yves > Now, the configure have run ok, but the make brought: > > Making all in po > make[2]: Entering directory > `/usr/src/nagios/nagios-plugins-HEAD-200409010447/po' > rm -f fr.gmo && /usr/bin/msgfmt -c --statistics -o fr.gmo fr.po > /usr/bin/msgfmt: fr.po: warning: Charset "CHARSET" is not a portable > encoding name. > Message conversion to user's charset m= ight > not work. > /usr/bin/msgfmt: fr.po: some header fields still have the initial defau= lt > value > /usr/bin/msgfmt: fr.po: warning: PO file header fuzzy > warning: older versions of msgfmt will give an = error > on this > /usr/bin/msgfmt: found 1 fatal error > make[2]: *** [fr.gmo] Error 1 > make[2]: Leaving directory > `/usr/src/nagios/nagios-plugins-HEAD-200409010447/po' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/usr/src/nagios/nagios-plugins-HEAD-200409010447' > make: *** [all] Error 2 > > > Anyway, I didn't mind with the errors messages and installed the plugin= s, > and they seems to be ok. > > Do you think I'm gonna get any future problems? > >> -----Original Message----- >> From: Yves Mettier [mailto:yme...@li...] >> Sent: quarta-feira, 1 de setembro de 2004 10:24 >> To: Cook, Garry >> Cc: Wilson Pires Jr; Paulo Afonso Graner Fessel; Ben Clewett; perfpars= e- >> us...@li... >> Subject: RE: [Perfparse-users] Odd and lack graphs [Was: Cannot run db= - >> tool update [was: nagios restarting]] >> >> This is a problem with locales. Compilation should never be done with = root >> permissions. >> I suggest that you copy nagios-plugins.pot as fr.po and try again >> >> cp nagios-plugins.pot fr.po >> >> Yves >> >> > per...@li... wrote: >> >> Paulo, >> >> >> >> I'm using 1.4.0.a1. Now I'm trying to compile the new >> >> nagios-plugins-HEAD-200409010447, but I'm not getting success: >> >> >> >> make[3]: Leaving directory >> >> `/usr/src/nagios/nagios-plugins-HEAD-200409010447/po' >> >> /usr/bin/msgmerge --update fr.po nagios-plugins.pot >> >> /usr/bin/msgmerge: error while opening "fr.po" for reading: No such >> >> file or directory >> >> make[2]: *** [fr.po] Error 1 >> >> make[2]: Leaving directory >> >> `/usr/src/nagios/nagios-plugins-HEAD-200409010447/po' >> >> make[1]: *** [all-recursive] Error 1 >> >> make[1]: Leaving directory >> >> `/usr/src/nagios/nagios-plugins-HEAD-200409010447' >> >> make: *** [all] Error 2 >> >> >> >> I use rh 9. Could you help me with this? >> >> >> >> Regards, >> >> >> >> Wilson >> > >> > Are you running 'make' as the root user? If not, try that. >> > >> > Garry W. Cook, CCNA >> > Network Infrastructure Manager >> > MACTEC, Inc. - http://www.mactec.com/ >> > 303.308.6228 (Office) - 720.220.1862 (Mobile) >> > >> > >> > ------------------------------------------------------- >> > This SF.Net email is sponsored by BEA Weblogic Workshop >> > FREE Java Enterprise J2EE developer tools! >> > Get your free copy of BEA WebLogic Workshop 8.1 today. >> > http://ads.osdn.com/?ad_idP47&alloc_id=10808&op=3Dclick >> > _______________________________________________ >> > Perfparse-users mailing list >> > Per...@li... >> > https://lists.sourceforge.net/lists/listinfo/perfparse-users >> > >> > >> >> >> -- >> - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - >> - GPG key - http://ymettier.free.fr/gpg.txt - >> - Maitretarot - http://www.nongnu.org/maitretarot/ - >> - GTKtalog - http://www.nongnu.org/gtktalog/ - >> >> > > > > --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - GTKtalog - http://www.nongnu.org/gtktalog/ - |
From: Wilson P. J. <wp....@te...> - 2004-09-01 14:36:55
|
Now, the configure have run ok, but the make brought: Making all in po make[2]: Entering directory `/usr/src/nagios/nagios-plugins-HEAD-200409010447/po' rm -f fr.gmo && /usr/bin/msgfmt -c --statistics -o fr.gmo fr.po /usr/bin/msgfmt: fr.po: warning: Charset "CHARSET" is not a portable encoding name. Message conversion to user's charset = might not work. /usr/bin/msgfmt: fr.po: some header fields still have the initial = default value /usr/bin/msgfmt: fr.po: warning: PO file header fuzzy warning: older versions of msgfmt will give an = error on this /usr/bin/msgfmt: found 1 fatal error make[2]: *** [fr.gmo] Error 1 make[2]: Leaving directory `/usr/src/nagios/nagios-plugins-HEAD-200409010447/po' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/nagios/nagios-plugins-HEAD-200409010447' make: *** [all] Error 2 Anyway, I didn't mind with the errors messages and installed the = plugins, and they seems to be ok. Do you think I'm gonna get any future problems? > -----Original Message----- > From: Yves Mettier [mailto:yme...@li...] > Sent: quarta-feira, 1 de setembro de 2004 10:24 > To: Cook, Garry > Cc: Wilson Pires Jr; Paulo Afonso Graner Fessel; Ben Clewett; = perfparse- > us...@li... > Subject: RE: [Perfparse-users] Odd and lack graphs [Was: Cannot run = db- > tool update [was: nagios restarting]] >=20 > This is a problem with locales. Compilation should never be done with = root > permissions. > I suggest that you copy nagios-plugins.pot as fr.po and try again >=20 > cp nagios-plugins.pot fr.po >=20 > Yves >=20 > > per...@li... wrote: > >> Paulo, > >> > >> I'm using 1.4.0.a1. Now I'm trying to compile the new > >> nagios-plugins-HEAD-200409010447, but I'm not getting success: > >> > >> make[3]: Leaving directory > >> `/usr/src/nagios/nagios-plugins-HEAD-200409010447/po' > >> /usr/bin/msgmerge --update fr.po nagios-plugins.pot > >> /usr/bin/msgmerge: error while opening "fr.po" for reading: No such > >> file or directory > >> make[2]: *** [fr.po] Error 1 > >> make[2]: Leaving directory > >> `/usr/src/nagios/nagios-plugins-HEAD-200409010447/po' > >> make[1]: *** [all-recursive] Error 1 > >> make[1]: Leaving directory > >> `/usr/src/nagios/nagios-plugins-HEAD-200409010447' > >> make: *** [all] Error 2 > >> > >> I use rh 9. Could you help me with this? > >> > >> Regards, > >> > >> Wilson > > > > Are you running 'make' as the root user? If not, try that. > > > > Garry W. Cook, CCNA > > Network Infrastructure Manager > > MACTEC, Inc. - http://www.mactec.com/ > > 303.308.6228 (Office) - 720.220.1862 (Mobile) > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_idP47&alloc_id=10808&op=3Dclick > > _______________________________________________ > > Perfparse-users mailing list > > Per...@li... > > https://lists.sourceforge.net/lists/listinfo/perfparse-users > > > > >=20 >=20 > -- > - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - > - GPG key - http://ymettier.free.fr/gpg.txt - > - Maitretarot - http://www.nongnu.org/maitretarot/ - > - GTKtalog - http://www.nongnu.org/gtktalog/ - >=20 >=20 |
From: Yves M. <yme...@li...> - 2004-09-01 13:24:34
|
This is a problem with locales. Compilation should never be done with roo= t permissions. I suggest that you copy nagios-plugins.pot as fr.po and try again cp nagios-plugins.pot fr.po Yves > per...@li... wrote: >> Paulo, >> >> I'm using 1.4.0.a1. Now I'm trying to compile the new >> nagios-plugins-HEAD-200409010447, but I'm not getting success: >> >> make[3]: Leaving directory >> `/usr/src/nagios/nagios-plugins-HEAD-200409010447/po' >> /usr/bin/msgmerge --update fr.po nagios-plugins.pot >> /usr/bin/msgmerge: error while opening "fr.po" for reading: No such >> file or directory >> make[2]: *** [fr.po] Error 1 >> make[2]: Leaving directory >> `/usr/src/nagios/nagios-plugins-HEAD-200409010447/po' >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory >> `/usr/src/nagios/nagios-plugins-HEAD-200409010447' >> make: *** [all] Error 2 >> >> I use rh 9. Could you help me with this? >> >> Regards, >> >> Wilson > > Are you running 'make' as the root user? If not, try that. > > Garry W. Cook, CCNA > Network Infrastructure Manager > MACTEC, Inc. - http://www.mactec.com/ > 303.308.6228 (Office) - 720.220.1862 (Mobile) > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_idP47&alloc_id=10808&op=3Dclick > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > > --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - GTKtalog - http://www.nongnu.org/gtktalog/ - |
From: Cook, G. <GW...@ma...> - 2004-09-01 13:01:10
|
per...@li... wrote: > Paulo, >=20 > I'm using 1.4.0.a1. Now I'm trying to compile the new > nagios-plugins-HEAD-200409010447, but I'm not getting success: >=20 > make[3]: Leaving directory > `/usr/src/nagios/nagios-plugins-HEAD-200409010447/po' > /usr/bin/msgmerge --update fr.po nagios-plugins.pot > /usr/bin/msgmerge: error while opening "fr.po" for reading: No such > file or directory > make[2]: *** [fr.po] Error 1 > make[2]: Leaving directory > `/usr/src/nagios/nagios-plugins-HEAD-200409010447/po' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/usr/src/nagios/nagios-plugins-HEAD-200409010447' > make: *** [all] Error 2 >=20 > I use rh 9. Could you help me with this? >=20 > Regards, >=20 > Wilson Are you running 'make' as the root user? If not, try that. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile)=20 |
From: Wilson P. J. <wp....@te...> - 2004-09-01 12:55:34
|
Paulo, I'm using 1.4.0.a1. Now I'm trying to compile the new nagios-plugins-HEAD-200409010447, but I'm not getting success: make[3]: Leaving directory `/usr/src/nagios/nagios-plugins-HEAD-200409010447/po' /usr/bin/msgmerge --update fr.po nagios-plugins.pot /usr/bin/msgmerge: error while opening "fr.po" for reading: No such file = or directory make[2]: *** [fr.po] Error 1 make[2]: Leaving directory `/usr/src/nagios/nagios-plugins-HEAD-200409010447/po' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/nagios/nagios-plugins-HEAD-200409010447' make: *** [all] Error 2 I use rh 9. Could you help me with this? Regards, Wilson > -----Original Message----- > From: Paulo Afonso Graner Fessel [mailto:pau...@pr...] > Sent: ter=E7a-feira, 31 de agosto de 2004 09:48 > To: Wilson Pires Jr; Ben Clewett > Cc: per...@li... > Subject: RES: [Perfparse-users] Odd and lack graphs [Was: Cannot run = db- > tool update [was: nagios restarting]] >=20 > Wilson, >=20 > What version of the plugins are you using? >=20 > I'm using CVS-20040819 with my patches to check_nt and check_tcp shows = the > results like this: >=20 > [root@nagioslab libexec]# ./check_tcp -H 10.10.20.25 -p 23 > TCP OK - 0.038 second response time on port 23 > |time=3D0.037783s;0.000000;0.000000;0.000000;10.000000 >=20 > Perhaps if you get the latest and greatest CVS your problems will go = away. > Personally, 1.4.0a9 didn't even finish compile in my Mandrake 10 box. >=20 > []'s > Paulo >=20 > Paulo Afonso Graner Fessel > Administrador de Ambiente e Sistemas UNIX > pau...@pr... > OWT > Fone: +55 (11) 3038-6554 > Fax: +55 (11) 3038-6508 > http://www.primesys.com.br >=20 >=20 >=20 >=20 >=20 > > -----Mensagem original----- > > De: per...@li... > > [mailto:per...@li...] Em nome > > de Wilson Pires Jr > > Enviada em: segunda-feira, 30 de agosto de 2004 18:29 > > Para: 'Ben Clewett' > > Cc: per...@li... > > Assunto: RE: [Perfparse-users] Odd and lack graphs [Was: > > Cannot run db-tool update [was: nagios restarting]] > > > > > > > > Apologies if this email has already been answered. > > > > > > Looking at the graph image, looks like the sample times are not in > > > time order. So the plot of plotting backwards and forwards > > in time. > > > Hence the interesting mess. > > > > [Wilson Pires Jr] > > Now I've perceived the lifetime of the plot correspond to > > that I run perfparse.sh without --delete*. The perfparse log > > shows hash error and the file was opened always at line 0 to > > parse. The time to perform the parse, also, was growing and > > targeted 21 minutes in 24 hours. > > > > > > > > Interesting, I looked at my code, and I do not order the points by > > > anything. They are ordered as default, which is the order > > they points > > > were entered into the database. Not the time order :) > > > > > > This can I change for next versions. > > > > > > However, you still have a problem with your database. Has > > the time, > > > or time zone, been changed on your Nagios several several > > times during > > > the lifetime of the plot? > > > > > > Please let us know, > > > > > > Ben. > > > > > > > > > > > > Wilson Pires Jr wrote: > > > > > > > Ben, > > > > > > > > running the command from shell the result is the same. I'm gonna > > > > check > > > with > > > > nagios-plugins developers. > > > > > > > > I'm having problems with the graphs: > > > > > > > > All the graphs I'm obtaining are similar to this one attached. = It > > > > looks > > > so > > > > odd. What could be wrong? > > > > > > > > Another question is regarding check_tcp, that besides the odd > > > > characters brings perfdata but the graphs are empty > > (Sample Points: 0). > > > > > > > > Regards, > > > > > > > > Wilson > > > > > > > > > > > >>-----Original Message----- > > > >>From: Ben Clewett [mailto:be...@cl...] > > > >>Sent: segunda-feira, 30 de agosto de 2004 05:38 > > > >>To: Wilson Pires Jr; per...@li... > > > >>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: > > > >>nagios restarting] > > > >> > > > >>Wilson, > > > >> > > > >>The odd characters in the log file must come from a > > Nagios plugin. > > > >>Try running the command from the UNIX shell, does this > > give the same > > > >>odd characters? > > > >> > > > >>It looks like you have a plugin which reports the binary data it > > > >>finds on a TCP port, or something similar. This is > > dangerous data > > > >>to return from a plugin. If this is the case, you may consider > > > >>writing an email to the author asking them to escape the > > binary data... > > > >> > > > >>You can disable performance data for a plugin > > (somewhere?) which you > > > >>may consider for this one. > > > >> > > > >>Ben > > > >> > > > >> > > > >> > > > >> > > > >>Wilson Pires Jr wrote: > > > >> > > > >> > > > >>>Ben, > > > >>> > > > >>>I'm glad too! > > > >>> > > > >>>The server is the same. With -c option I can run the db > > update, but > > > >> > > > >>don't perfparse.sh, besides I have into perfparse.sh: > > > >> > > > >>>BASE_DIR=3D"/usr/local/nagios" > > > >>> > > > >>>But, actually, I have it working by copying perfparse.cfg to > > > >> > > > >>/usr/local/etc. > > > >> > > > >>>OTOH, I have a new problem. I have graphs from some > > plugins, but I > > > >>>use > > > >> > > > >>check_tcp on port 23 to monitor Telnet. The output format is ok = (I > > > think): > > > >> > > > >>>[root@genesis bin]# cat /usr/local/nagios/var/serviceperf.log | > > > >>>grep > > > >> > > > >>TELNET > > > >> > > > >>>1093635155 itb1601a TELNET TCP OK - 0.153 > > second response > > > >> > > > >>time on port 23 [ B=C7j?@=A6+] OK t > > > >> > > > >>>ime=3D152656us;250000;400000;0;10000 > > > >>>1093635164 sbc1601a TELNET TCP OK - 0.051 > > second response > > > >> > > > >>time on port 23 [ B=C7j?@=A6+] OK t > > > >> > > > >>>ime=3D50577us;250000;400000;0;10000 > > > >>>1093635174 bsa1721a TELNET TCP OK - 0.088 > > second response > > > >> > > > >>time on port 23 [ B=C7j?@=A6+] OK t > > > >> > > > >>>ime=3D87626us;250000;400000;0;10000 > > > >>> > > > >>>Question > > > >>>What means the odd characters into brackets? > > > >>> > > > >>>Problem > > > >>>The graphs aren't generated to these services. I have graphs = for > > > >> > > > >>check_ftp, http, users, cpu ... normally, but don't for tcp. > > > >> > > > >>>Regards > > > >>> > > > >>> > > > >>> > > > >>>>-----Original Message----- > > > >>>>From: Ben Clewett [mailto:Be...@cl...] > > > >>>>Sent: sexta-feira, 27 de agosto de 2004 13:15 > > > >>>>To: Wilson Pires Jr > > > >>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: > > > >>>>nagios restarting] > > > >>>> > > > >>>>Wilson, > > > >>>> > > > >>>>Glad you have it working. Is this the same server as > > you run the > > > >>>>CGI application from PP? If so this uses the same > > definition of > > > >>>>there to find the config file. Unlike the tools, there > > is no '-c' > > > >>>>option. Can you please check these are working as well? > > > >>>> > > > >>>>Regards, Ben > > > >>>> > > > >>>>Wilson Pires Jr wrote: > > > >>>> > > > >>>> > > > >>>> > > > >>>>>Ben, > > > >>>>> > > > >>>>>I've used the correct prefix. Now, I've deleted the > > program and > > > >>>>>done > > > >> > > > >>the > > > >> > > > >>>>>complete recompile. The program was regenerated: > > > >>>>> > > > >>>>>[root@genesis bin]# ./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 > > > >>>>> > > > >>>>>-rwxr-xr-x 1 root root 253547 Aug 27 > > 11:25 perfparse-db- > > > >>>> > > > >>>>tool > > > >>>> > > > >>>> > > > >>>>>but the problem persisted, it looks for the cfg file > > the wrong place: > > > >>>>> > > > >>>>>[root@genesis bin]# ./perfparse-db-tool --update Error, can't > > > >>>>>open configuation file: "//usr/local/etc/perfparse.cfg" > > > >>>>> > > > >>>>>So, I've copied perfparse.cfg to /usr/local/etc and the = update > > > >>>>>was successfully performed. > > > >>>>> > > > >>>>>Thanks for the help. But I'm still curious about the program > > > >>>>>checking > > > >>>> > > > >>>>the > > > >>>> > > > >>>> > > > >>>>>cfg file into the wrong path... > > > >>>>> > > > >>>>>Regards, > > > >>>>> > > > >>>>>Wilson > > > >>>>> > > > >>>>> > > > >>>>> > > > >>>>> > > > >>>>> > > > >>>>>>-----Original Message----- > > > >>>>>>From: Ben Clewett [mailto:Be...@cl...] > > > >>>>>>Sent: sexta-feira, 27 de agosto de 2004 11:18 > > > >>>>>>To: Wilson Pires Jr > > > >>>>>>Cc: per...@li... > > > >>>>>>Subject: Re: [Perfparse-users] Cannot run db-tool update = [was: > > > nagios > > > >>>>>>restarting] > > > >>>>>> > > > >>>>>>I note the error is: > > > >>>>>> > > > >>>>>>Error, can't open configuration file: > > > "//usr/local/etc/perfparse.cfg" > > > >>>>>> > > > >>>>>>The file you are after is: > > > >>>>>> > > > >>>>>>/usr/local/nagios/etc/perfparse.cfg > > > >>>>>> > > > >>>>>>Are you are configuring using: --prefix=3D/usr/local/nagios = ?? > > > >>>>>> > > > >>>>>>This should work. :( > > > >>>>>> > > > >>>>>>Can you try deleting the program 'perfparse-db-tool' > > and doing a > > > >>>>>>complete recompile, as stated in the README? > > > >>>>>> > > > >>>>>>Does this regenerate this program? If you run it, > > does it work? > > > >>>>>> > > > >>>>>>Ben > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>>Wilson Pires Jr wrote: > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>>>>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. > > > >>>>>>>> > > > >>>>>>> > > > >>>>>>> > > > >>>>>>>[Wilson Pires Jr] > > > >>>>>>>I've recompiled and reinstalled, as suggested by Paulo, and > > > >>>>>>>renamed > > > >> > > > >>and > > > >> > > > >>>>>>set > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>>>perfparse.cfg.example and perfparse.sh.example. But > > the problem > > > >> > > > >>remains. > > > >> > > > >>>>>>I > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>>>can't run the db update: > > > >>>>>>> > > > >>>>>>>[root@genesis bin]# ./perfparse-db-tool --update > > Error, can't > > > >>>>>>>open configuation file: > > > "//usr/local/etc/perfparse.cfg" > > > >>>>>>> > > > >>>>>>>The files perfparse-db-tool and perfparse.cfg are owned by > > > >>>>>>>root, > > > and > > > >>>>>>>perfparse.sh is owned by nagios. Is this correct? > > > >>>>>>> > > > >>>>>>>/usr/local/nagios/bin > > > >>>>>>>-rwxr-xr-x 1 root root 250813 Aug 27 > > 10:24 perfparse > > > >>>>>>>-rwxr-xr-x 1 root root 1661 Jul 28 10:42 > > > >>>>>> > > > >>>>>>perfparse_daemon.sh > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>>>-rwxr-xr-x 1 root root 262873 Aug 27 > > 10:24 perfparse- > > > db- > > > >>>>>> > > > >>>>>>purge > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>>>-rwxr-xr-x 1 root root 253547 Aug 27 > > 10:24 perfparse- > > > db- > > > >>>>>> > > > >>>>>>tool > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>>>-rwxr-xr-x 1 nagios nagios 252518 Jul 19 > > 16:59 perfparse- > > > >>>>>> > > > >>>>>>install-db > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>>>-rwxr-xr-x 1 nagios nagios 259533 Jul 19 > > 16:59 perfparse- > > > >>>> > > > >>>>purge- > > > >>>> > > > >>>> > > > >>>>>>db > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>>>-rwxr-xr-x 1 nagios nagios 1326 Aug 27 10:32 > > > perfparse.sh > > > >>>>>>> > > > >>>>>>>/usr/local/nagios/etc > > > >>>>>>>[root@genesis etc]# ls -la perfparse.cfg* > > > >>>>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:58 > > > perfparse.cfg > > > >>>>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:24 > > > >>>>>>>perfparse.cfg.example > > > >>>>>>> > > > >>>>>>>As you can see I've tried to run the update as root. > > What is my > > > >> > > > >>mistake? > > > >> > > > >>>>>>Now > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>>>I can't see the pp web page: > > > >>>>>>> > > > >>>>>>>Error message: > > > >>>>>>>malformed header from script. Bad header=3D<pre>: > > > >>>>>>>perfgraph.cgi > > > >>>>>>> > > > >>>>>>>Regarding the nagios restarting and stopping checks > > problems, > > > >>>>>>>they > > > >>>> > > > >>>>seems > > > >>>> > > > >>>> > > > >>>>>>to > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>>>be solved. I've changed the > > use_retained_program_state from 0 > > > >>>>>>>to 1 > > > >> > > > >>and > > > >> > > > >>>>>>my > > > >>>>>> > > > >>>>>> > > > >>>>>> > > > >>>>>>>nagios is checking around 16 hours :-))) > > > >>>>>>> > > > >>>>>>> > > > >>>>>>> > > > >>>>>>> > > > >>>>>>> > > > >>>>>>> > > > >>>>>>>>Paulo Afonso Graner Fessel wrote: > > > >>>>>>>> > > > >>>>>>>> > > > >>>>>>>> > > > >>>>>>>> > > > >>>>>>>> > > > >>>>>>>>>Recompile perfparse according to the instructions: > > > >>>>>>>>> > > > >>>>>>>>>./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 > > > >>>>>>>>> > > > >>>>>>>>>(Of course, I'm assuming that you've got nagios in > > > >> > > > >>/usr/local/nagios.) > > > >> > > > >>>>>>>>>This way, perfparse.cfg will be installed at > > > /usr/local/nagios/etc. > > > >>>>>>>>> > > > >>>>>>>>> > > > >>>>>>>>> > > > >>>>>>>>> > > > >>>>>>>>> > > > >>>>>>>>>>>You should upgrade to 0.99.09. It may or may not > > help with > > > >>>>>>>>>> > > > >>>>>>>>>>this issue, > > > >>>>>>>>>> > > > >>>>>>>>>> > > > >>>>>>>>>> > > > >>>>>>>>>> > > > >>>>>>>>>>>but there are a couple of other bugfixes/enhancements > > > >>>>>>>>>> > > > >>>>>>>>>>available in the > > > >>>>>>>>>> > > > >>>>>>>>>> > > > >>>>>>>>>> > > > >>>>>>>>>> > > > >>>>>>>>>>>latest version. And don't forget to run > > > >>>>>>>>>>>'/<path_to>/nagios/bin/perfparse-db-tool --update' = after > > > >>>>>>>>>> > > > >>>>>>>>>>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 > > > >>>>>>>>>>mistake am I doing? > > > >>>>>>>>>> > > > >>>>>>>>>> > > > >>>>>>> > > > >>>>>>> > > > >>>>> > > > >>>>> > > > >>>>> > > > >>>>>------------------------------------------------------- > > > >>>>>This SF.Net email is sponsored by BEA Weblogic > > Workshop FREE Java > > > >>>>>Enterprise J2EE developer tools! > > > >>>>>Get your free copy of BEA WebLogic Workshop 8.1 today. > > > >>>>>http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick > > > >>>>>_______________________________________________ > > > >>>>>Perfparse-users mailing list > > > >>>>>Per...@li... > > > >>>>>https://lists.sourceforge.net/lists/listinfo/perfparse-users > > > >>>>> > > > >>> > > > >>> > > > >>> > > > >>> > > > >>> > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > ---- > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop FREE > > Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_idP47&alloc_id=10808&op=3Dick > > _______________________________________________ > > Perfparse-users mailing list > > Per...@li... > > https://lists.sourceforge.net/lists/listinfo/perfparse-users > > |
From: Ben C. <be...@cl...> - 2004-08-31 22:32:21
|
New version, 0.100.1. This has a re-written graph, which has better options, looks better and may be a little faster. There is a simple option to store graphs for future reference. http://perfparse.sourceforge.net/ Please enjoy and please give all the feedback you can. Regards, Ben. |
From: Paulo A. G. F. <pau...@pr...> - 2004-08-31 12:48:23
|
Wilson, What version of the plugins are you using? I'm using CVS-20040819 with my patches to check_nt and check_tcp shows = the results like this: [root@nagioslab libexec]# ./check_tcp -H 10.10.20.25 -p 23 TCP OK - 0.038 second response time on port 23 = |time=3D0.037783s;0.000000;0.000000;0.000000;10.000000 Perhaps if you get the latest and greatest CVS your problems will go = away. Personally, 1.4.0a9 didn't even finish compile in my Mandrake 10 = box. []'s Paulo Paulo Afonso Graner Fessel Administrador de Ambiente e Sistemas UNIX pau...@pr... OWT Fone: +55 (11) 3038-6554 Fax: +55 (11) 3038-6508 http://www.primesys.com.br =20 =20 =20 =20 > -----Mensagem original----- > De: per...@li...=20 > [mailto:per...@li...] Em nome=20 > de Wilson Pires Jr > Enviada em: segunda-feira, 30 de agosto de 2004 18:29 > Para: 'Ben Clewett' > Cc: per...@li... > Assunto: RE: [Perfparse-users] Odd and lack graphs [Was:=20 > Cannot run db-tool update [was: nagios restarting]] >=20 > >=20 > > Apologies if this email has already been answered. > >=20 > > Looking at the graph image, looks like the sample times are not in=20 > > time order. So the plot of plotting backwards and forwards=20 > in time. =20 > > Hence the interesting mess. >=20 > [Wilson Pires Jr] > Now I've perceived the lifetime of the plot correspond to=20 > that I run perfparse.sh without --delete*. The perfparse log=20 > shows hash error and the file was opened always at line 0 to=20 > parse. The time to perform the parse, also, was growing and=20 > targeted 21 minutes in 24 hours. >=20 > >=20 > > Interesting, I looked at my code, and I do not order the points by=20 > > anything. They are ordered as default, which is the order=20 > they points=20 > > were entered into the database. Not the time order :) > >=20 > > This can I change for next versions. > >=20 > > However, you still have a problem with your database. Has=20 > the time,=20 > > or time zone, been changed on your Nagios several several=20 > times during=20 > > the lifetime of the plot? > >=20 > > Please let us know, > >=20 > > Ben. > >=20 > >=20 > >=20 > > Wilson Pires Jr wrote: > >=20 > > > Ben, > > > > > > running the command from shell the result is the same. I'm gonna=20 > > > check > > with > > > nagios-plugins developers. > > > > > > I'm having problems with the graphs: > > > > > > All the graphs I'm obtaining are similar to this one attached. It=20 > > > looks > > so > > > odd. What could be wrong? > > > > > > Another question is regarding check_tcp, that besides the odd=20 > > > characters brings perfdata but the graphs are empty=20 > (Sample Points: 0). > > > > > > Regards, > > > > > > Wilson > > > > > > > > >>-----Original Message----- > > >>From: Ben Clewett [mailto:be...@cl...] > > >>Sent: segunda-feira, 30 de agosto de 2004 05:38 > > >>To: Wilson Pires Jr; per...@li... > > >>Subject: Re: [Perfparse-users] Cannot run db-tool update [was:=20 > > >>nagios restarting] > > >> > > >>Wilson, > > >> > > >>The odd characters in the log file must come from a=20 > Nagios plugin. =20 > > >>Try running the command from the UNIX shell, does this=20 > give the same=20 > > >>odd characters? > > >> > > >>It looks like you have a plugin which reports the binary data it=20 > > >>finds on a TCP port, or something similar. This is=20 > dangerous data=20 > > >>to return from a plugin. If this is the case, you may consider=20 > > >>writing an email to the author asking them to escape the=20 > binary data... > > >> > > >>You can disable performance data for a plugin=20 > (somewhere?) which you=20 > > >>may consider for this one. > > >> > > >>Ben > > >> > > >> > > >> > > >> > > >>Wilson Pires Jr wrote: > > >> > > >> > > >>>Ben, > > >>> > > >>>I'm glad too! > > >>> > > >>>The server is the same. With -c option I can run the db=20 > update, but > > >> > > >>don't perfparse.sh, besides I have into perfparse.sh: > > >> > > >>>BASE_DIR=3D"/usr/local/nagios" > > >>> > > >>>But, actually, I have it working by copying perfparse.cfg to > > >> > > >>/usr/local/etc. > > >> > > >>>OTOH, I have a new problem. I have graphs from some=20 > plugins, but I=20 > > >>>use > > >> > > >>check_tcp on port 23 to monitor Telnet. The output format is ok (I > > think): > > >> > > >>>[root@genesis bin]# cat /usr/local/nagios/var/serviceperf.log |=20 > > >>>grep > > >> > > >>TELNET > > >> > > >>>1093635155 itb1601a TELNET TCP OK - 0.153=20 > second response > > >> > > >>time on port 23 [ B=C7j?@=A6+] OK t > > >> > > >>>ime=3D152656us;250000;400000;0;10000 > > >>>1093635164 sbc1601a TELNET TCP OK - 0.051=20 > second response > > >> > > >>time on port 23 [ B=C7j?@=A6+] OK t > > >> > > >>>ime=3D50577us;250000;400000;0;10000 > > >>>1093635174 bsa1721a TELNET TCP OK - 0.088=20 > second response > > >> > > >>time on port 23 [ B=C7j?@=A6+] OK t > > >> > > >>>ime=3D87626us;250000;400000;0;10000 > > >>> > > >>>Question > > >>>What means the odd characters into brackets? > > >>> > > >>>Problem > > >>>The graphs aren't generated to these services. I have graphs for > > >> > > >>check_ftp, http, users, cpu ... normally, but don't for tcp. > > >> > > >>>Regards > > >>> > > >>> > > >>> > > >>>>-----Original Message----- > > >>>>From: Ben Clewett [mailto:Be...@cl...] > > >>>>Sent: sexta-feira, 27 de agosto de 2004 13:15 > > >>>>To: Wilson Pires Jr > > >>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was:=20 > > >>>>nagios restarting] > > >>>> > > >>>>Wilson, > > >>>> > > >>>>Glad you have it working. Is this the same server as=20 > you run the=20 > > >>>>CGI application from PP? If so this uses the same=20 > definition of=20 > > >>>>there to find the config file. Unlike the tools, there=20 > is no '-c'=20 > > >>>>option. Can you please check these are working as well? > > >>>> > > >>>>Regards, Ben > > >>>> > > >>>>Wilson Pires Jr wrote: > > >>>> > > >>>> > > >>>> > > >>>>>Ben, > > >>>>> > > >>>>>I've used the correct prefix. Now, I've deleted the=20 > program and=20 > > >>>>>done > > >> > > >>the > > >> > > >>>>>complete recompile. The program was regenerated: > > >>>>> > > >>>>>[root@genesis bin]# ./configure --prefix=3D/usr/local/nagios=20 > > >>>>>--with-imagedir=3D/usr/local/nagios/share/images/ --with-cgidir = > > >>>>>=3D/usr/local/nagios/sbin = --with-http_image_path=3D/nagios/images > > >>>>> > > >>>>>-rwxr-xr-x 1 root root 253547 Aug 27=20 > 11:25 perfparse-db- > > >>>> > > >>>>tool > > >>>> > > >>>> > > >>>>>but the problem persisted, it looks for the cfg file=20 > the wrong place: > > >>>>> > > >>>>>[root@genesis bin]# ./perfparse-db-tool --update Error, can't=20 > > >>>>>open configuation file: "//usr/local/etc/perfparse.cfg" > > >>>>> > > >>>>>So, I've copied perfparse.cfg to /usr/local/etc and the update=20 > > >>>>>was successfully performed. > > >>>>> > > >>>>>Thanks for the help. But I'm still curious about the program=20 > > >>>>>checking > > >>>> > > >>>>the > > >>>> > > >>>> > > >>>>>cfg file into the wrong path... > > >>>>> > > >>>>>Regards, > > >>>>> > > >>>>>Wilson > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>>>-----Original Message----- > > >>>>>>From: Ben Clewett [mailto:Be...@cl...] > > >>>>>>Sent: sexta-feira, 27 de agosto de 2004 11:18 > > >>>>>>To: Wilson Pires Jr > > >>>>>>Cc: per...@li... > > >>>>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: > > nagios > > >>>>>>restarting] > > >>>>>> > > >>>>>>I note the error is: > > >>>>>> > > >>>>>>Error, can't open configuration file: > > "//usr/local/etc/perfparse.cfg" > > >>>>>> > > >>>>>>The file you are after is: > > >>>>>> > > >>>>>>/usr/local/nagios/etc/perfparse.cfg > > >>>>>> > > >>>>>>Are you are configuring using: --prefix=3D/usr/local/nagios ?? > > >>>>>> > > >>>>>>This should work. :( > > >>>>>> > > >>>>>>Can you try deleting the program 'perfparse-db-tool'=20 > and doing a=20 > > >>>>>>complete recompile, as stated in the README? > > >>>>>> > > >>>>>>Does this regenerate this program? If you run it,=20 > does it work? > > >>>>>> > > >>>>>>Ben > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>Wilson Pires Jr wrote: > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>>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. > > >>>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>>>[Wilson Pires Jr] > > >>>>>>>I've recompiled and reinstalled, as suggested by Paulo, and=20 > > >>>>>>>renamed > > >> > > >>and > > >> > > >>>>>>set > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>perfparse.cfg.example and perfparse.sh.example. But=20 > the problem > > >> > > >>remains. > > >> > > >>>>>>I > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>can't run the db update: > > >>>>>>> > > >>>>>>>[root@genesis bin]# ./perfparse-db-tool --update=20 > Error, can't=20 > > >>>>>>>open configuation file: > > "//usr/local/etc/perfparse.cfg" > > >>>>>>> > > >>>>>>>The files perfparse-db-tool and perfparse.cfg are owned by=20 > > >>>>>>>root, > > and > > >>>>>>>perfparse.sh is owned by nagios. Is this correct? > > >>>>>>> > > >>>>>>>/usr/local/nagios/bin > > >>>>>>>-rwxr-xr-x 1 root root 250813 Aug 27=20 > 10:24 perfparse > > >>>>>>>-rwxr-xr-x 1 root root 1661 Jul 28 10:42 > > >>>>>> > > >>>>>>perfparse_daemon.sh > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>-rwxr-xr-x 1 root root 262873 Aug 27=20 > 10:24 perfparse- > > db- > > >>>>>> > > >>>>>>purge > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>-rwxr-xr-x 1 root root 253547 Aug 27=20 > 10:24 perfparse- > > db- > > >>>>>> > > >>>>>>tool > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>-rwxr-xr-x 1 nagios nagios 252518 Jul 19=20 > 16:59 perfparse- > > >>>>>> > > >>>>>>install-db > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>-rwxr-xr-x 1 nagios nagios 259533 Jul 19=20 > 16:59 perfparse- > > >>>> > > >>>>purge- > > >>>> > > >>>> > > >>>>>>db > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>-rwxr-xr-x 1 nagios nagios 1326 Aug 27 10:32 > > perfparse.sh > > >>>>>>> > > >>>>>>>/usr/local/nagios/etc > > >>>>>>>[root@genesis etc]# ls -la perfparse.cfg* > > >>>>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:58 > > perfparse.cfg > > >>>>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:24 > > >>>>>>>perfparse.cfg.example > > >>>>>>> > > >>>>>>>As you can see I've tried to run the update as root.=20 > What is my > > >> > > >>mistake? > > >> > > >>>>>>Now > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>I can't see the pp web page: > > >>>>>>> > > >>>>>>>Error message: > > >>>>>>>malformed header from script. Bad header=3D<pre>:=20 > > >>>>>>>perfgraph.cgi > > >>>>>>> > > >>>>>>>Regarding the nagios restarting and stopping checks=20 > problems,=20 > > >>>>>>>they > > >>>> > > >>>>seems > > >>>> > > >>>> > > >>>>>>to > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>be solved. I've changed the=20 > use_retained_program_state from 0=20 > > >>>>>>>to 1 > > >> > > >>and > > >> > > >>>>>>my > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>>nagios is checking around 16 hours :-))) > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>>>>>Paulo Afonso Graner Fessel wrote: > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>>>>>>Recompile perfparse according to the instructions: > > >>>>>>>>> > > >>>>>>>>>./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 > > >>>>>>>>> > > >>>>>>>>>(Of course, I'm assuming that you've got nagios in > > >> > > >>/usr/local/nagios.) > > >> > > >>>>>>>>>This way, perfparse.cfg will be installed at > > /usr/local/nagios/etc. > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>>> > > >>>>>>>>>>>You should upgrade to 0.99.09. It may or may not=20 > help with > > >>>>>>>>>> > > >>>>>>>>>>this issue, > > >>>>>>>>>> > > >>>>>>>>>> > > >>>>>>>>>> > > >>>>>>>>>> > > >>>>>>>>>>>but there are a couple of other bugfixes/enhancements > > >>>>>>>>>> > > >>>>>>>>>>available in the > > >>>>>>>>>> > > >>>>>>>>>> > > >>>>>>>>>> > > >>>>>>>>>> > > >>>>>>>>>>>latest version. And don't forget to run=20 > > >>>>>>>>>>>'/<path_to>/nagios/bin/perfparse-db-tool --update' after > > >>>>>>>>>> > > >>>>>>>>>>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? > > >>>>>>>>>> > > >>>>>>>>>> > > >>>>>>> > > >>>>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>>------------------------------------------------------- > > >>>>>This SF.Net email is sponsored by BEA Weblogic=20 > Workshop FREE Java=20 > > >>>>>Enterprise J2EE developer tools! > > >>>>>Get your free copy of BEA WebLogic Workshop 8.1 today. > > >>>>>http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick > > >>>>>_______________________________________________ > > >>>>>Perfparse-users mailing list > > >>>>>Per...@li... > > >>>>>https://lists.sourceforge.net/lists/listinfo/perfparse-users > > >>>>> > > >>> > > >>> > > >>> > > >>> > > >>> > > > > > > > > >=20 > -------------------------------------------------------------------- > > > ---- > > > > >=20 >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop FREE=20 > Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_idP47&alloc_id=10808&op=3Dick > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users >=20 |
From: Yves M. <yme...@li...> - 2004-08-31 07:40:07
|
>> > >> > [root@genesis var]# ../libexec/check_tcp -H 10.109.29.2 -p 23 >> > TCP OK - 0.089 second response time on port 23 [ >> B=C3=83=E2=80=A1j=C3=A2=CB=9C=C2=BA@=C3=A2=E2=80=93=E2=80=98=C3=A2=E2=80= =A2=C2=9D] >> > |time=3D88581us;0;0;0;10000 >> > >> > How could I check why the data aren't being imported? >> >> The reason is probably what is in the binary data. >> 1st: try to go around the difficulty instead of jumping over it: is th= ere >> an option to >> check_tcp to write something else than binary data ? check_tcp --help = will >> help you to >> answer. > > [Wilson Pires Jr] > I didn't find any option to avoid the binary data :( > Also the people from nagios-plugin list didn't answer the question. > Anyway, the binary data is before the "|", so I guess pp wouldn't mind = with it. Am I > wrong? Yes, if pp finds a null character before the "|", it stops reading or int= erpreting the line and goes to the next line. If pp finds some end of line character, i= t will stop reading for that line and start interpretint it (without the perf data). = Moreover, the following characters are considered as invalid, and pp will continue on t= he next line ! I don't even know how mysql works if there are strange binary data that p= p does mind working with. Yves --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - GTKtalog - http://www.nongnu.org/gtktalog/ - |
From: Wilson P. J. <wp....@te...> - 2004-08-30 21:29:14
|
>=20 > Apologies if this email has already been answered. >=20 > Looking at the graph image, looks like the sample times are not in = time > order. So the plot of plotting backwards and forwards in time. Hence > the interesting mess. [Wilson Pires Jr]=20 Now I've perceived the lifetime of the plot correspond to that I run perfparse.sh without --delete*. The perfparse log shows hash error and = the file was opened always at line 0 to parse. The time to perform the = parse, also, was growing and targeted 21 minutes in 24 hours. >=20 > Interesting, I looked at my code, and I do not order the points by > anything. They are ordered as default, which is the order they points > were entered into the database. Not the time order :) >=20 > This can I change for next versions. >=20 > However, you still have a problem with your database. Has the time, = or > time zone, been changed on your Nagios several several times during = the > lifetime of the plot? >=20 > Please let us know, >=20 > Ben. >=20 >=20 >=20 > Wilson Pires Jr wrote: >=20 > > Ben, > > > > running the command from shell the result is the same. I'm gonna = check > with > > nagios-plugins developers. > > > > I'm having problems with the graphs: > > > > All the graphs I'm obtaining are similar to this one attached. It = looks > so > > odd. What could be wrong? > > > > Another question is regarding check_tcp, that besides the odd = characters > > brings perfdata but the graphs are empty (Sample Points: 0). > > > > Regards, > > > > Wilson > > > > > >>-----Original Message----- > >>From: Ben Clewett [mailto:be...@cl...] > >>Sent: segunda-feira, 30 de agosto de 2004 05:38 > >>To: Wilson Pires Jr; per...@li... > >>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: = nagios > >>restarting] > >> > >>Wilson, > >> > >>The odd characters in the log file must come from a Nagios plugin. = Try > >>running the command from the UNIX shell, does this give the same odd > >>characters? > >> > >>It looks like you have a plugin which reports the binary data it = finds > >>on a TCP port, or something similar. This is dangerous data to = return > >>from a plugin. If this is the case, you may consider writing an = email > >>to the author asking them to escape the binary data... > >> > >>You can disable performance data for a plugin (somewhere?) which you = may > >>consider for this one. > >> > >>Ben > >> > >> > >> > >> > >>Wilson Pires Jr wrote: > >> > >> > >>>Ben, > >>> > >>>I'm glad too! > >>> > >>>The server is the same. With -c option I can run the db update, but > >> > >>don't perfparse.sh, besides I have into perfparse.sh: > >> > >>>BASE_DIR=3D"/usr/local/nagios" > >>> > >>>But, actually, I have it working by copying perfparse.cfg to > >> > >>/usr/local/etc. > >> > >>>OTOH, I have a new problem. I have graphs from some plugins, but I = use > >> > >>check_tcp on port 23 to monitor Telnet. The output format is ok (I > think): > >> > >>>[root@genesis bin]# cat /usr/local/nagios/var/serviceperf.log | = grep > >> > >>TELNET > >> > >>>1093635155 itb1601a TELNET TCP OK - 0.153 second = response > >> > >>time on port 23 [ B=C7j?@=A6+] OK t > >> > >>>ime=3D152656us;250000;400000;0;10000 > >>>1093635164 sbc1601a TELNET TCP OK - 0.051 second = response > >> > >>time on port 23 [ B=C7j?@=A6+] OK t > >> > >>>ime=3D50577us;250000;400000;0;10000 > >>>1093635174 bsa1721a TELNET TCP OK - 0.088 second = response > >> > >>time on port 23 [ B=C7j?@=A6+] OK t > >> > >>>ime=3D87626us;250000;400000;0;10000 > >>> > >>>Question > >>>What means the odd characters into brackets? > >>> > >>>Problem > >>>The graphs aren't generated to these services. I have graphs for > >> > >>check_ftp, http, users, cpu ... normally, but don't for tcp. > >> > >>>Regards > >>> > >>> > >>> > >>>>-----Original Message----- > >>>>From: Ben Clewett [mailto:Be...@cl...] > >>>>Sent: sexta-feira, 27 de agosto de 2004 13:15 > >>>>To: Wilson Pires Jr > >>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: = nagios > >>>>restarting] > >>>> > >>>>Wilson, > >>>> > >>>>Glad you have it working. Is this the same server as you run the = CGI > >>>>application from PP? If so this uses the same definition of there = to > >>>>find the config file. Unlike the tools, there is no '-c' option. = Can > >>>>you please check these are working as well? > >>>> > >>>>Regards, Ben > >>>> > >>>>Wilson Pires Jr wrote: > >>>> > >>>> > >>>> > >>>>>Ben, > >>>>> > >>>>>I've used the correct prefix. Now, I've deleted the program and = done > >> > >>the > >> > >>>>>complete recompile. The program was regenerated: > >>>>> > >>>>>[root@genesis bin]# ./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 > >>>>> > >>>>>-rwxr-xr-x 1 root root 253547 Aug 27 11:25 = perfparse-db- > >>>> > >>>>tool > >>>> > >>>> > >>>>>but the problem persisted, it looks for the cfg file the wrong = place: > >>>>> > >>>>>[root@genesis bin]# ./perfparse-db-tool --update > >>>>>Error, can't open configuation file: = "//usr/local/etc/perfparse.cfg" > >>>>> > >>>>>So, I've copied perfparse.cfg to /usr/local/etc and the update = was > >>>>>successfully performed. > >>>>> > >>>>>Thanks for the help. But I'm still curious about the program = checking > >>>> > >>>>the > >>>> > >>>> > >>>>>cfg file into the wrong path... > >>>>> > >>>>>Regards, > >>>>> > >>>>>Wilson > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>-----Original Message----- > >>>>>>From: Ben Clewett [mailto:Be...@cl...] > >>>>>>Sent: sexta-feira, 27 de agosto de 2004 11:18 > >>>>>>To: Wilson Pires Jr > >>>>>>Cc: per...@li... > >>>>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: > nagios > >>>>>>restarting] > >>>>>> > >>>>>>I note the error is: > >>>>>> > >>>>>>Error, can't open configuration file: > "//usr/local/etc/perfparse.cfg" > >>>>>> > >>>>>>The file you are after is: > >>>>>> > >>>>>>/usr/local/nagios/etc/perfparse.cfg > >>>>>> > >>>>>>Are you are configuring using: --prefix=3D/usr/local/nagios ?? > >>>>>> > >>>>>>This should work. :( > >>>>>> > >>>>>>Can you try deleting the program 'perfparse-db-tool' and doing a > >>>>>>complete recompile, as stated in the README? > >>>>>> > >>>>>>Does this regenerate this program? If you run it, does it = work? > >>>>>> > >>>>>>Ben > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>Wilson Pires Jr wrote: > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>>>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. > >>>>>>>> > >>>>>>> > >>>>>>> > >>>>>>>[Wilson Pires Jr] > >>>>>>>I've recompiled and reinstalled, as suggested by Paulo, and = renamed > >> > >>and > >> > >>>>>>set > >>>>>> > >>>>>> > >>>>>> > >>>>>>>perfparse.cfg.example and perfparse.sh.example. But the problem > >> > >>remains. > >> > >>>>>>I > >>>>>> > >>>>>> > >>>>>> > >>>>>>>can't run the db update: > >>>>>>> > >>>>>>>[root@genesis bin]# ./perfparse-db-tool --update > >>>>>>>Error, can't open configuation file: > "//usr/local/etc/perfparse.cfg" > >>>>>>> > >>>>>>>The files perfparse-db-tool and perfparse.cfg are owned by = root, > and > >>>>>>>perfparse.sh is owned by nagios. Is this correct? > >>>>>>> > >>>>>>>/usr/local/nagios/bin > >>>>>>>-rwxr-xr-x 1 root root 250813 Aug 27 10:24 = perfparse > >>>>>>>-rwxr-xr-x 1 root root 1661 Jul 28 10:42 > >>>>>> > >>>>>>perfparse_daemon.sh > >>>>>> > >>>>>> > >>>>>> > >>>>>>>-rwxr-xr-x 1 root root 262873 Aug 27 10:24 = perfparse- > db- > >>>>>> > >>>>>>purge > >>>>>> > >>>>>> > >>>>>> > >>>>>>>-rwxr-xr-x 1 root root 253547 Aug 27 10:24 = perfparse- > db- > >>>>>> > >>>>>>tool > >>>>>> > >>>>>> > >>>>>> > >>>>>>>-rwxr-xr-x 1 nagios nagios 252518 Jul 19 16:59 = perfparse- > >>>>>> > >>>>>>install-db > >>>>>> > >>>>>> > >>>>>> > >>>>>>>-rwxr-xr-x 1 nagios nagios 259533 Jul 19 16:59 = perfparse- > >>>> > >>>>purge- > >>>> > >>>> > >>>>>>db > >>>>>> > >>>>>> > >>>>>> > >>>>>>>-rwxr-xr-x 1 nagios nagios 1326 Aug 27 10:32 > perfparse.sh > >>>>>>> > >>>>>>>/usr/local/nagios/etc > >>>>>>>[root@genesis etc]# ls -la perfparse.cfg* > >>>>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:58 > perfparse.cfg > >>>>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:24 > >>>>>>>perfparse.cfg.example > >>>>>>> > >>>>>>>As you can see I've tried to run the update as root. What is my > >> > >>mistake? > >> > >>>>>>Now > >>>>>> > >>>>>> > >>>>>> > >>>>>>>I can't see the pp web page: > >>>>>>> > >>>>>>>Error message: > >>>>>>>malformed header from script. Bad header=3D<pre>: = perfgraph.cgi > >>>>>>> > >>>>>>>Regarding the nagios restarting and stopping checks problems, = they > >>>> > >>>>seems > >>>> > >>>> > >>>>>>to > >>>>>> > >>>>>> > >>>>>> > >>>>>>>be solved. I've changed the use_retained_program_state from 0 = to 1 > >> > >>and > >> > >>>>>>my > >>>>>> > >>>>>> > >>>>>> > >>>>>>>nagios is checking around 16 hours :-))) > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>>>Paulo Afonso Graner Fessel wrote: > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>>>Recompile perfparse according to the instructions: > >>>>>>>>> > >>>>>>>>>./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 > >>>>>>>>> > >>>>>>>>>(Of course, I'm assuming that you've got nagios in > >> > >>/usr/local/nagios.) > >> > >>>>>>>>>This way, perfparse.cfg will be installed at > /usr/local/nagios/etc. > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>>>You should upgrade to 0.99.09. It may or may not help with > >>>>>>>>>> > >>>>>>>>>>this issue, > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>>>but there are a couple of other bugfixes/enhancements > >>>>>>>>>> > >>>>>>>>>>available in the > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>>>latest version. And don't forget to run > >>>>>>>>>>>'/<path_to>/nagios/bin/perfparse-db-tool --update' after > >>>>>>>>>> > >>>>>>>>>>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 > >>>>>>>>>>mistake am I doing? > >>>>>>>>>> > >>>>>>>>>> > >>>>>>> > >>>>>>> > >>>>> > >>>>> > >>>>> > >>>>>------------------------------------------------------- > >>>>>This SF.Net email is sponsored by BEA Weblogic Workshop > >>>>>FREE Java Enterprise J2EE developer tools! > >>>>>Get your free copy of BEA WebLogic Workshop 8.1 today. > >>>>>http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick > >>>>>_______________________________________________ > >>>>>Perfparse-users mailing list > >>>>>Per...@li... > >>>>>https://lists.sourceforge.net/lists/listinfo/perfparse-users > >>>>> > >>> > >>> > >>> > >>> > >>> > > > > > > = ------------------------------------------------------------------------ > > >=20 |
From: Wilson P. J. <wp....@te...> - 2004-08-30 21:13:24
|
> > > > [root@genesis var]# ../libexec/check_tcp -H 10.109.29.2 -p 23 > > TCP OK - 0.089 second response time on port 23 [ = B=C3=83=E2=80=A1j=C3=A2=CB=9C=C2=BA@=C3=A2=E2=80=93=E2=80=98=C3=A2=E2=80=A2= =C2=9D] > > |time=3D88581us;0;0;0;10000 > > > > How could I check why the data aren't being imported? >=20 > The reason is probably what is in the binary data. > 1st: try to go around the difficulty instead of jumping over it: is = there > an option to > check_tcp to write something else than binary data ? check_tcp --help = will > help you to > answer. [Wilson Pires Jr]=20 I didn't find any option to avoid the binary data :( Also the people from nagios-plugin list didn't answer the question. Anyway, the binary data is before the "|", so I guess pp wouldn't mind = with it. Am I wrong? >=20 > 2nd: I'd really like to know what's inside that binary data. I also = notice > that there > are [ and ] characters. Ben: is there somewhere something that say = that > plugins can put > binary data between those 2 characters ? In that case, there may be > something to do in > perfparse ? >=20 > Yves >=20 > > > > Regards, > > > > Wilson > > > >> -----Original Message----- > >> From: Yves Mettier [mailto:yme...@li...] > >> Sent: segunda-feira, 30 de agosto de 2004 11:12 > >> To: Wilson Pires Jr > >> Cc: 'Ben Clewett'; per...@li... > >> Subject: RE: [Perfparse-users] Odd and lack graphs [Was: Cannot run = db- > >> tool update [was: nagios restarting]] > >> > >> Edit nagios.cfg. Do you have this ? If not, update, and restart = nagios: > >> > >> > = xpdfile_service_perfdata_template=3D$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$= OUT > >> PUT$\t$SERVICESTATE$\t$PERFDATA$ > >> > >> I think this will do nothing anyways, when I see check_tcp output. > There > >> is no "|" > >> character that mean perfdata following that character. > >> In that case, either check_tcp does not send perf data, or = check_tcp is > >> broken. > >> Have you already run check_tcp in an xterm to see the output ? > (check_tcp > >> --help for help) > >> I have no other idea. > >> > >> Yves > >> > >> > Ben, > >> > > >> > running the command from shell the result is the same. I'm gonna > check > >> with > >> > nagios-plugins developers. > >> > > >> > I'm having problems with the graphs: > >> > > >> > All the graphs I'm obtaining are similar to this one attached. It > looks > >> so > >> > odd. What could be wrong? > >> > > >> > Another question is regarding check_tcp, that besides the odd > characters > >> > brings perfdata but the graphs are empty (Sample Points: 0). > >> > > >> > Regards, > >> > > >> > Wilson > >> > > >> >> -----Original Message----- > >> >> From: Ben Clewett [mailto:be...@cl...] > >> >> Sent: segunda-feira, 30 de agosto de 2004 05:38 > >> >> To: Wilson Pires Jr; per...@li... > >> >> Subject: Re: [Perfparse-users] Cannot run db-tool update [was: > nagios > >> >> restarting] > >> >> > >> >> Wilson, > >> >> > >> >> The odd characters in the log file must come from a Nagios = plugin. > Try > >> >> running the command from the UNIX shell, does this give the same = odd > >> >> characters? > >> >> > >> >> It looks like you have a plugin which reports the binary data it > finds > >> >> on a TCP port, or something similar. This is dangerous data to > return > >> >> from a plugin. If this is the case, you may consider writing an > email > >> >> to the author asking them to escape the binary data... > >> >> > >> >> You can disable performance data for a plugin (somewhere?) which = you > >> may > >> >> consider for this one. > >> >> > >> >> Ben > >> >> > >> >> > >> >> > >> >> > >> >> Wilson Pires Jr wrote: > >> >> > >> >> > Ben, > >> >> > > >> >> > I'm glad too! > >> >> > > >> >> > The server is the same. With -c option I can run the db = update, > but > >> >> don't perfparse.sh, besides I have into perfparse.sh: > >> >> > > >> >> > BASE_DIR=3D"/usr/local/nagios" > >> >> > > >> >> > But, actually, I have it working by copying perfparse.cfg to > >> >> /usr/local/etc. > >> >> > > >> >> > OTOH, I have a new problem. I have graphs from some plugins, = but I > >> use > >> >> check_tcp on port 23 to monitor Telnet. The output format is ok = (I > >> think): > >> >> > > >> >> > [root@genesis bin]# cat /usr/local/nagios/var/serviceperf.log = | > grep > >> >> TELNET > >> >> > 1093635155 itb1601a TELNET TCP OK - 0.153 second > >> response > >> >> time on port 23 [ B=C3=83=E2=80=A1j?@=C3=82=C2=A6+] = OK t > >> >> > ime=3D152656us;250000;400000;0;10000 > >> >> > 1093635164 sbc1601a TELNET TCP OK - 0.051 second > >> response > >> >> time on port 23 [ B=C3=83=E2=80=A1j?@=C3=82=C2=A6+] = OK t > >> >> > ime=3D50577us;250000;400000;0;10000 > >> >> > 1093635174 bsa1721a TELNET TCP OK - 0.088 second > >> response > >> >> time on port 23 [ B=C3=83=E2=80=A1j?@=C3=82=C2=A6+] = OK t > >> >> > ime=3D87626us;250000;400000;0;10000 > >> >> > > >> >> > Question > >> >> > What means the odd characters into brackets? > >> >> > > >> >> > Problem > >> >> > The graphs aren't generated to these services. I have graphs = for > >> >> check_ftp, http, users, cpu ... normally, but don't for tcp. > >> >> > > >> >> > Regards > >> >> > > >> >> > > >> >> >>-----Original Message----- > >> >> >>From: Ben Clewett [mailto:Be...@cl...] > >> >> >>Sent: sexta-feira, 27 de agosto de 2004 13:15 > >> >> >>To: Wilson Pires Jr > >> >> >>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: > nagios > >> >> >>restarting] > >> >> >> > >> >> >>Wilson, > >> >> >> > >> >> >>Glad you have it working. Is this the same server as you run = the > CGI > >> >> >>application from PP? If so this uses the same definition of = there > to > >> >> >>find the config file. Unlike the tools, there is no '-c' = option. > >> Can > >> >> >>you please check these are working as well? > >> >> >> > >> >> >>Regards, Ben > >> >> >> > >> >> >>Wilson Pires Jr wrote: > >> >> >> > >> >> >> > >> >> >>>Ben, > >> >> >>> > >> >> >>>I've used the correct prefix. Now, I've deleted the program = and > done > >> >> the > >> >> >>>complete recompile. The program was regenerated: > >> >> >>> > >> >> >>>[root@genesis bin]# ./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 > >> >> >>> > >> >> >>>-rwxr-xr-x 1 root root 253547 Aug 27 11:25 > perfparse- > >> db- > >> >> >> > >> >> >>tool > >> >> >> > >> >> >>>but the problem persisted, it looks for the cfg file the = wrong > place: > >> >> >>> > >> >> >>>[root@genesis bin]# ./perfparse-db-tool --update > >> >> >>>Error, can't open configuation file: > "//usr/local/etc/perfparse.cfg" > >> >> >>> > >> >> >>>So, I've copied perfparse.cfg to /usr/local/etc and the = update > was > >> >> >>>successfully performed. > >> >> >>> > >> >> >>>Thanks for the help. But I'm still curious about the program > >> checking > >> >> >> > >> >> >>the > >> >> >> > >> >> >>>cfg file into the wrong path... > >> >> >>> > >> >> >>>Regards, > >> >> >>> > >> >> >>>Wilson > >> >> >>> > >> >> >>> > >> >> >>> > >> >> >>> > >> >> >>>>-----Original Message----- > >> >> >>>>From: Ben Clewett [mailto:Be...@cl...] > >> >> >>>>Sent: sexta-feira, 27 de agosto de 2004 11:18 > >> >> >>>>To: Wilson Pires Jr > >> >> >>>>Cc: per...@li... > >> >> >>>>Subject: Re: [Perfparse-users] Cannot run db-tool update = [was: > >> nagios > >> >> >>>>restarting] > >> >> >>>> > >> >> >>>>I note the error is: > >> >> >>>> > >> >> >>>>Error, can't open configuration file: > >> "//usr/local/etc/perfparse.cfg" > >> >> >>>> > >> >> >>>>The file you are after is: > >> >> >>>> > >> >> >>>>/usr/local/nagios/etc/perfparse.cfg > >> >> >>>> > >> >> >>>>Are you are configuring using: --prefix=3D/usr/local/nagios = ?? > >> >> >>>> > >> >> >>>>This should work. :( > >> >> >>>> > >> >> >>>>Can you try deleting the program 'perfparse-db-tool' and = doing a > >> >> >>>>complete recompile, as stated in the README? > >> >> >>>> > >> >> >>>>Does this regenerate this program? If you run it, does it = work? > >> >> >>>> > >> >> >>>>Ben > >> >> >>>> > >> >> >>>> > >> >> >>>> > >> >> >>>> > >> >> >>>> > >> >> >>>> > >> >> >>>> > >> >> >>>>Wilson Pires Jr wrote: > >> >> >>>> > >> >> >>>> > >> >> >>>> > >> >> >>>>>>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. > >> >> >>>>>> > >> >> >>>>> > >> >> >>>>> > >> >> >>>>>[Wilson Pires Jr] > >> >> >>>>>I've recompiled and reinstalled, as suggested by Paulo, and > >> renamed > >> >> and > >> >> >>>> > >> >> >>>>set > >> >> >>>> > >> >> >>>> > >> >> >>>>>perfparse.cfg.example and perfparse.sh.example. But the = problem > >> >> remains. > >> >> >>>> > >> >> >>>>I > >> >> >>>> > >> >> >>>> > >> >> >>>>>can't run the db update: > >> >> >>>>> > >> >> >>>>>[root@genesis bin]# ./perfparse-db-tool --update > >> >> >>>>>Error, can't open configuation file: > >> "//usr/local/etc/perfparse.cfg" > >> >> >>>>> > >> >> >>>>>The files perfparse-db-tool and perfparse.cfg are owned by = root, > >> and > >> >> >>>>>perfparse.sh is owned by nagios. Is this correct? > >> >> >>>>> > >> >> >>>>>/usr/local/nagios/bin > >> >> >>>>>-rwxr-xr-x 1 root root 250813 Aug 27 10:24 > perfparse > >> >> >>>>>-rwxr-xr-x 1 root root 1661 Jul 28 10:42 > >> >> >>>> > >> >> >>>>perfparse_daemon.sh > >> >> >>>> > >> >> >>>> > >> >> >>>>>-rwxr-xr-x 1 root root 262873 Aug 27 10:24 > perfparse- > >> db- > >> >> >>>> > >> >> >>>>purge > >> >> >>>> > >> >> >>>> > >> >> >>>>>-rwxr-xr-x 1 root root 253547 Aug 27 10:24 > perfparse- > >> db- > >> >> >>>> > >> >> >>>>tool > >> >> >>>> > >> >> >>>> > >> >> >>>>>-rwxr-xr-x 1 nagios nagios 252518 Jul 19 16:59 > perfparse- > >> >> >>>> > >> >> >>>>install-db > >> >> >>>> > >> >> >>>> > >> >> >>>>>-rwxr-xr-x 1 nagios nagios 259533 Jul 19 16:59 > perfparse- > >> >> >> > >> >> >>purge- > >> >> >> > >> >> >>>>db > >> >> >>>> > >> >> >>>> > >> >> >>>>>-rwxr-xr-x 1 nagios nagios 1326 Aug 27 10:32 > >> perfparse.sh > >> >> >>>>> > >> >> >>>>>/usr/local/nagios/etc > >> >> >>>>>[root@genesis etc]# ls -la perfparse.cfg* > >> >> >>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:58 > >> perfparse.cfg > >> >> >>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:24 > >> >> >>>>>perfparse.cfg.example > >> >> >>>>> > >> >> >>>>>As you can see I've tried to run the update as root. What = is my > >> >> mistake? > >> >> >>>> > >> >> >>>>Now > >> >> >>>> > >> >> >>>> > >> >> >>>>>I can't see the pp web page: > >> >> >>>>> > >> >> >>>>>Error message: > >> >> >>>>>malformed header from script. Bad header=3D<pre>: > >> perfgraph.cgi > >> >> >>>>> > >> >> >>>>>Regarding the nagios restarting and stopping checks = problems, > they > >> >> >> > >> >> >>seems > >> >> >> > >> >> >>>>to > >> >> >>>> > >> >> >>>> > >> >> >>>>>be solved. I've changed the use_retained_program_state from = 0 > to 1 > >> >> and > >> >> >>>> > >> >> >>>>my > >> >> >>>> > >> >> >>>> > >> >> >>>>>nagios is checking around 16 hours :-))) > >> >> >>>>> > >> >> >>>>> > >> >> >>>>> > >> >> >>>>> > >> >> >>>>> > >> >> >>>>>>Paulo Afonso Graner Fessel wrote: > >> >> >>>>>> > >> >> >>>>>> > >> >> >>>>>> > >> >> >>>>>> > >> >> >>>>>>>Recompile perfparse according to the instructions: > >> >> >>>>>>> > >> >> >>>>>>>./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 > >> >> >>>>>>> > >> >> >>>>>>>(Of course, I'm assuming that you've got nagios in > >> >> /usr/local/nagios.) > >> >> >>>>>>> > >> >> >>>>>>>This way, perfparse.cfg will be installed at > >> /usr/local/nagios/etc. > >> >> >>>>>>> > >> >> >>>>>>> > >> >> >>>>>>> > >> >> >>>>>>> > >> >> >>>>>>>>>You should upgrade to 0.99.09. It may or may not help = with > >> >> >>>>>>>> > >> >> >>>>>>>>this issue, > >> >> >>>>>>>> > >> >> >>>>>>>> > >> >> >>>>>>>> > >> >> >>>>>>>>>but there are a couple of other bugfixes/enhancements > >> >> >>>>>>>> > >> >> >>>>>>>>available in the > >> >> >>>>>>>> > >> >> >>>>>>>> > >> >> >>>>>>>> > >> >> >>>>>>>>>latest version. And don't forget to run > >> >> >>>>>>>>>'/<path_to>/nagios/bin/perfparse-db-tool --update' = after > >> >> >>>>>>>> > >> >> >>>>>>>>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 > >> >> >>>>>>>>mistake am I doing? > >> >> >>>>>>>> > >> >> >>>>>>>> > >> >> >>>>> > >> >> >>>>> > >> >> >>> > >> >> >>> > >> >> >>> > >> >> >>> > >> >> >>>------------------------------------------------------- > >> >> >>>This SF.Net email is sponsored by BEA Weblogic Workshop > >> >> >>>FREE Java Enterprise J2EE developer tools! > >> >> >>>Get your free copy of BEA WebLogic Workshop 8.1 today. > >> >> >>>http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick > >> >> >>>_______________________________________________ > >> >> >>>Perfparse-users mailing list > >> >> >>>Per...@li... > >> >> >>>https://lists.sourceforge.net/lists/listinfo/perfparse-users > >> >> >>> > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> > > >> > > >> > >> > >> -- > >> - Homepage - http://ymettier.free.fr - http://www.logicacmg.com = - > >> - GPG key - http://ymettier.free.fr/gpg.txt = - > >> - Maitretarot - http://www.nongnu.org/maitretarot/ = - > >> - GTKtalog - http://www.nongnu.org/gtktalog/ = - > >> > >> > > > > > > > > >=20 >=20 > -- > - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - > - GPG key - http://ymettier.free.fr/gpg.txt - > - Maitretarot - http://www.nongnu.org/maitretarot/ - > - GTKtalog - http://www.nongnu.org/gtktalog/ - >=20 >=20 >=20 |
From: Wilson P. J. <wp....@te...> - 2004-08-30 21:13:22
|
Ben, I use check_tcp on port 23 for two reasons: in order to check if telnet = service is available from my internal routers and to get perfdata for = round trip time as an workaround for check_ping that doesn't have = perfdata. Wilson > -----Original Message----- > From: Ben Clewett [mailto:be...@cl...] > Sent: segunda-feira, 30 de agosto de 2004 16:30 > To: Yves Mettier > Cc: Wilson Pires Jr; per...@li... > Subject: Re: [Perfparse-users] Odd and lack graphs [Was: Cannot run = db- > tool update [was: nagios restarting]] >=20 > There are lots of difficulties with binary data. The escape method we > have for MySQL cannot cope with arbitrary binary data. Several > characters need escaping. There are also characters like NULL, EOF, > which are really bad to processing. If we got that far, the binary is > also illegal for HTML so that would need handling. >=20 > I suggest the correct solution it to try and get the binary data out = of > the plugin output. >=20 > The binary data is likely to be some form of Telnet handshake. = Sending > the screen size, echo, cursor type, terminal type name etc. >=20 > If you are checking a telnet server, I would suggest using the correct > check_telnet plugin which understands the telnet protocol. >=20 > Regards, >=20 > Ben >=20 > Yves Mettier wrote: > >>Yves, > >> > >>The xpdfile_service_perfdata_template is correct. I have graphs for = some > plugins, but > >>not to check_tcp. I don't know why there isn't the "|" in my old = message, > but check_tcp > >>brings perfdata, as you can see: > >> > >>[root@genesis var]# ../libexec/check_tcp -H 10.109.29.2 -p 23 > >>TCP OK - 0.089 second response time on port 23 [ = B=C3=83=E2=80=A1j=C3=A2=CB=9C=C2=BA@=C3=A2=E2=80=93=E2=80=98=C3=A2=E2=80=A2= =C2=9D] > >>|time=3D88581us;0;0;0;10000 > >> > >>How could I check why the data aren't being imported? > > > > > > The reason is probably what is in the binary data. > > 1st: try to go around the difficulty instead of jumping over it: is > there an option to > > check_tcp to write something else than binary data ? check_tcp = --help > will help you to > > answer. > > > > 2nd: I'd really like to know what's inside that binary data. I also > notice that there > > are [ and ] characters. Ben: is there somewhere something that say = that > plugins can put > > binary data between those 2 characters ? In that case, there may be > something to do in > > perfparse ? > > > > Yves > > > > > >>Regards, > >> > >>Wilson > >> > >> > >>>-----Original Message----- > >>>From: Yves Mettier [mailto:yme...@li...] > >>>Sent: segunda-feira, 30 de agosto de 2004 11:12 > >>>To: Wilson Pires Jr > >>>Cc: 'Ben Clewett'; per...@li... > >>>Subject: RE: [Perfparse-users] Odd and lack graphs [Was: Cannot run = db- > >>>tool update [was: nagios restarting]] > >>> > >>>Edit nagios.cfg. Do you have this ? If not, update, and restart = nagios: > >>> > = >>>xpdfile_service_perfdata_template=3D$TIMET$\t$HOSTNAME$\t$SERVICEDESC$= \t$ > OUT > >>>PUT$\t$SERVICESTATE$\t$PERFDATA$ > >>> > >>>I think this will do nothing anyways, when I see check_tcp output. > There > >>>is no "|" > >>>character that mean perfdata following that character. > >>>In that case, either check_tcp does not send perf data, or = check_tcp is > >>>broken. > >>>Have you already run check_tcp in an xterm to see the output ? > (check_tcp > >>>--help for help) > >>>I have no other idea. > >>> > >>>Yves > >>> > >>> > >>>>Ben, > >>>> > >>>>running the command from shell the result is the same. I'm gonna = check > >>> > >>>with > >>> > >>>>nagios-plugins developers. > >>>> > >>>>I'm having problems with the graphs: > >>>> > >>>>All the graphs I'm obtaining are similar to this one attached. It > looks > >>> > >>>so > >>> > >>>>odd. What could be wrong? > >>>> > >>>>Another question is regarding check_tcp, that besides the odd > characters > >>>>brings perfdata but the graphs are empty (Sample Points: 0). > >>>> > >>>>Regards, > >>>> > >>>>Wilson > >>>> > >>>> > >>>>>-----Original Message----- > >>>>>From: Ben Clewett [mailto:be...@cl...] > >>>>>Sent: segunda-feira, 30 de agosto de 2004 05:38 > >>>>>To: Wilson Pires Jr; per...@li... > >>>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: = nagios > >>>>>restarting] > >>>>> > >>>>>Wilson, > >>>>> > >>>>>The odd characters in the log file must come from a Nagios = plugin. > Try > >>>>>running the command from the UNIX shell, does this give the same = odd > >>>>>characters? > >>>>> > >>>>>It looks like you have a plugin which reports the binary data it > finds > >>>>>on a TCP port, or something similar. This is dangerous data to > return > >>>>>from a plugin. If this is the case, you may consider writing an > email > >>>>>to the author asking them to escape the binary data... > >>>>> > >>>>>You can disable performance data for a plugin (somewhere?) which = you > >>> > >>>may > >>> > >>>>>consider for this one. > >>>>> > >>>>>Ben > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>Wilson Pires Jr wrote: > >>>>> > >>>>> > >>>>>>Ben, > >>>>>> > >>>>>>I'm glad too! > >>>>>> > >>>>>>The server is the same. With -c option I can run the db update, = but > >>>>> > >>>>>don't perfparse.sh, besides I have into perfparse.sh: > >>>>> > >>>>>>BASE_DIR=3D"/usr/local/nagios" > >>>>>> > >>>>>>But, actually, I have it working by copying perfparse.cfg to > >>>>> > >>>>>/usr/local/etc. > >>>>> > >>>>>>OTOH, I have a new problem. I have graphs from some plugins, but = I > >>> > >>>use > >>> > >>>>>check_tcp on port 23 to monitor Telnet. The output format is ok = (I > >>> > >>>think): > >>> > >>>>>>[root@genesis bin]# cat /usr/local/nagios/var/serviceperf.log | = grep > >>>>> > >>>>>TELNET > >>>>> > >>>>>>1093635155 itb1601a TELNET TCP OK - 0.153 second > >>> > >>>response > >>> > >>>>>time on port 23 [ B=C3=83=E2=80=A1j?@=C3=82=C2=A6+] = OK t > >>>>> > >>>>>>ime=3D152656us;250000;400000;0;10000 > >>>>>>1093635164 sbc1601a TELNET TCP OK - 0.051 second > >>> > >>>response > >>> > >>>>>time on port 23 [ B=C3=83=E2=80=A1j?@=C3=82=C2=A6+] = OK t > >>>>> > >>>>>>ime=3D50577us;250000;400000;0;10000 > >>>>>>1093635174 bsa1721a TELNET TCP OK - 0.088 second > >>> > >>>response > >>> > >>>>>time on port 23 [ B=C3=83=E2=80=A1j?@=C3=82=C2=A6+] = OK t > >>>>> > >>>>>>ime=3D87626us;250000;400000;0;10000 > >>>>>> > >>>>>>Question > >>>>>>What means the odd characters into brackets? > >>>>>> > >>>>>>Problem > >>>>>>The graphs aren't generated to these services. I have graphs for > >>>>> > >>>>>check_ftp, http, users, cpu ... normally, but don't for tcp. > >>>>> > >>>>>>Regards > >>>>>> > >>>>>> > >>>>>> > >>>>>>>-----Original Message----- > >>>>>>>From: Ben Clewett [mailto:Be...@cl...] > >>>>>>>Sent: sexta-feira, 27 de agosto de 2004 13:15 > >>>>>>>To: Wilson Pires Jr > >>>>>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: > nagios > >>>>>>>restarting] > >>>>>>> > >>>>>>>Wilson, > >>>>>>> > >>>>>>>Glad you have it working. Is this the same server as you run = the > CGI > >>>>>>>application from PP? If so this uses the same definition of = there > to > >>>>>>>find the config file. Unlike the tools, there is no '-c' = option. > >>> > >>>Can > >>> > >>>>>>>you please check these are working as well? > >>>>>>> > >>>>>>>Regards, Ben > >>>>>>> > >>>>>>>Wilson Pires Jr wrote: > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>>>Ben, > >>>>>>>> > >>>>>>>>I've used the correct prefix. Now, I've deleted the program = and > done > >>>>> > >>>>>the > >>>>> > >>>>>>>>complete recompile. The program was regenerated: > >>>>>>>> > >>>>>>>>[root@genesis bin]# ./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 > >>>>>>>> > >>>>>>>>-rwxr-xr-x 1 root root 253547 Aug 27 11:25 = perfparse- > >>> > >>>db- > >>> > >>>>>>>tool > >>>>>>> > >>>>>>> > >>>>>>>>but the problem persisted, it looks for the cfg file the wrong > place: > >>>>>>>> > >>>>>>>>[root@genesis bin]# ./perfparse-db-tool --update > >>>>>>>>Error, can't open configuation file: > "//usr/local/etc/perfparse.cfg" > >>>>>>>> > >>>>>>>>So, I've copied perfparse.cfg to /usr/local/etc and the update = was > >>>>>>>>successfully performed. > >>>>>>>> > >>>>>>>>Thanks for the help. But I'm still curious about the program > >>> > >>>checking > >>> > >>>>>>>the > >>>>>>> > >>>>>>> > >>>>>>>>cfg file into the wrong path... > >>>>>>>> > >>>>>>>>Regards, > >>>>>>>> > >>>>>>>>Wilson > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>>>-----Original Message----- > >>>>>>>>>From: Ben Clewett [mailto:Be...@cl...] > >>>>>>>>>Sent: sexta-feira, 27 de agosto de 2004 11:18 > >>>>>>>>>To: Wilson Pires Jr > >>>>>>>>>Cc: per...@li... > >>>>>>>>>Subject: Re: [Perfparse-users] Cannot run db-tool update = [was: > >>> > >>>nagios > >>> > >>>>>>>>>restarting] > >>>>>>>>> > >>>>>>>>>I note the error is: > >>>>>>>>> > >>>>>>>>>Error, can't open configuration file: > >>> > >>>"//usr/local/etc/perfparse.cfg" > >>> > >>>>>>>>>The file you are after is: > >>>>>>>>> > >>>>>>>>>/usr/local/nagios/etc/perfparse.cfg > >>>>>>>>> > >>>>>>>>>Are you are configuring using: --prefix=3D/usr/local/nagios = ?? > >>>>>>>>> > >>>>>>>>>This should work. :( > >>>>>>>>> > >>>>>>>>>Can you try deleting the program 'perfparse-db-tool' and = doing a > >>>>>>>>>complete recompile, as stated in the README? > >>>>>>>>> > >>>>>>>>>Does this regenerate this program? If you run it, does it = work? > >>>>>>>>> > >>>>>>>>>Ben > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>Wilson Pires Jr wrote: > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>>>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. > >>>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>>[Wilson Pires Jr] > >>>>>>>>>>I've recompiled and reinstalled, as suggested by Paulo, and > >>> > >>>renamed > >>> > >>>>>and > >>>>> > >>>>>>>>>set > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>>perfparse.cfg.example and perfparse.sh.example. But the = problem > >>>>> > >>>>>remains. > >>>>> > >>>>>>>>>I > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>>can't run the db update: > >>>>>>>>>> > >>>>>>>>>>[root@genesis bin]# ./perfparse-db-tool --update > >>>>>>>>>>Error, can't open configuation file: > >>> > >>>"//usr/local/etc/perfparse.cfg" > >>> > >>>>>>>>>>The files perfparse-db-tool and perfparse.cfg are owned by = root, > >>> > >>>and > >>> > >>>>>>>>>>perfparse.sh is owned by nagios. Is this correct? > >>>>>>>>>> > >>>>>>>>>>/usr/local/nagios/bin > >>>>>>>>>>-rwxr-xr-x 1 root root 250813 Aug 27 10:24 > perfparse > >>>>>>>>>>-rwxr-xr-x 1 root root 1661 Jul 28 10:42 > >>>>>>>>> > >>>>>>>>>perfparse_daemon.sh > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>>-rwxr-xr-x 1 root root 262873 Aug 27 10:24 > perfparse- > >>> > >>>db- > >>> > >>>>>>>>>purge > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>>-rwxr-xr-x 1 root root 253547 Aug 27 10:24 > perfparse- > >>> > >>>db- > >>> > >>>>>>>>>tool > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>>-rwxr-xr-x 1 nagios nagios 252518 Jul 19 16:59 > perfparse- > >>>>>>>>> > >>>>>>>>>install-db > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>>-rwxr-xr-x 1 nagios nagios 259533 Jul 19 16:59 > perfparse- > >>>>>>> > >>>>>>>purge- > >>>>>>> > >>>>>>> > >>>>>>>>>db > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>>-rwxr-xr-x 1 nagios nagios 1326 Aug 27 10:32 > >>> > >>>perfparse.sh > >>> > >>>>>>>>>>/usr/local/nagios/etc > >>>>>>>>>>[root@genesis etc]# ls -la perfparse.cfg* > >>>>>>>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:58 > >>> > >>>perfparse.cfg > >>> > >>>>>>>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:24 > >>>>>>>>>>perfparse.cfg.example > >>>>>>>>>> > >>>>>>>>>>As you can see I've tried to run the update as root. What is = my > >>>>> > >>>>>mistake? > >>>>> > >>>>>>>>>Now > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>>I can't see the pp web page: > >>>>>>>>>> > >>>>>>>>>>Error message: > >>>>>>>>>>malformed header from script. Bad header=3D<pre>: > >>> > >>>perfgraph.cgi > >>> > >>>>>>>>>>Regarding the nagios restarting and stopping checks = problems, > they > >>>>>>> > >>>>>>>seems > >>>>>>> > >>>>>>> > >>>>>>>>>to > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>>be solved. I've changed the use_retained_program_state from = 0 to > 1 > >>>>> > >>>>>and > >>>>> > >>>>>>>>>my > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>>nagios is checking around 16 hours :-))) > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>>>Paulo Afonso Graner Fessel wrote: > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>>>Recompile perfparse according to the instructions: > >>>>>>>>>>>> > >>>>>>>>>>>>./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 > >>>>>>>>>>>> > >>>>>>>>>>>>(Of course, I'm assuming that you've got nagios in > >>>>> > >>>>>/usr/local/nagios.) > >>>>> > >>>>>>>>>>>>This way, perfparse.cfg will be installed at > >>> > >>>/usr/local/nagios/etc. > >>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>>>>You should upgrade to 0.99.09. It may or may not help = with > >>>>>>>>>>>>> > >>>>>>>>>>>>>this issue, > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>>>>but there are a couple of other bugfixes/enhancements > >>>>>>>>>>>>> > >>>>>>>>>>>>>available in the > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>>>>>>latest version. And don't forget to run > >>>>>>>>>>>>>>'/<path_to>/nagios/bin/perfparse-db-tool --update' after > >>>>>>>>>>>>> > >>>>>>>>>>>>>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 > >>>>>>>>>>>>>mistake am I doing? > >>>>>>>>>>>>> > >>>>>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>>------------------------------------------------------- > >>>>>>>>This SF.Net email is sponsored by BEA Weblogic Workshop > >>>>>>>>FREE Java Enterprise J2EE developer tools! > >>>>>>>>Get your free copy of BEA WebLogic Workshop 8.1 today. > >>>>>>>>http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick > >>>>>>>>_______________________________________________ > >>>>>>>>Perfparse-users mailing list > >>>>>>>>Per...@li... > >>>>>>>>https://lists.sourceforge.net/lists/listinfo/perfparse-users > >>>>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>> > >>> > >>>-- > >>>- Homepage - http://ymettier.free.fr - http://www.logicacmg.com = - > >>>- GPG key - http://ymettier.free.fr/gpg.txt = - > >>>- Maitretarot - http://www.nongnu.org/maitretarot/ = - > >>>- GTKtalog - http://www.nongnu.org/gtktalog/ = - > >>> > >>> > >> > >> > >> > >> > > > > |
From: Ben C. <be...@cl...> - 2004-08-30 20:22:47
|
Apologies if this email has already been answered. Looking at the graph image, looks like the sample times are not in time order. So the plot of plotting backwards and forwards in time. Hence the interesting mess. Interesting, I looked at my code, and I do not order the points by anything. They are ordered as default, which is the order they points were entered into the database. Not the time order :) This can I change for next versions. However, you still have a problem with your database. Has the time, or time zone, been changed on your Nagios several several times during the lifetime of the plot? Please let us know, Ben. Wilson Pires Jr wrote: > Ben, > > running the command from shell the result is the same. I'm gonna check with > nagios-plugins developers. > > I'm having problems with the graphs: > > All the graphs I'm obtaining are similar to this one attached. It looks so > odd. What could be wrong? > > Another question is regarding check_tcp, that besides the odd characters > brings perfdata but the graphs are empty (Sample Points: 0). > > Regards, > > Wilson > > >>-----Original Message----- >>From: Ben Clewett [mailto:be...@cl...] >>Sent: segunda-feira, 30 de agosto de 2004 05:38 >>To: Wilson Pires Jr; per...@li... >>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: nagios >>restarting] >> >>Wilson, >> >>The odd characters in the log file must come from a Nagios plugin. Try >>running the command from the UNIX shell, does this give the same odd >>characters? >> >>It looks like you have a plugin which reports the binary data it finds >>on a TCP port, or something similar. This is dangerous data to return >>from a plugin. If this is the case, you may consider writing an email >>to the author asking them to escape the binary data... >> >>You can disable performance data for a plugin (somewhere?) which you may >>consider for this one. >> >>Ben >> >> >> >> >>Wilson Pires Jr wrote: >> >> >>>Ben, >>> >>>I'm glad too! >>> >>>The server is the same. With -c option I can run the db update, but >> >>don't perfparse.sh, besides I have into perfparse.sh: >> >>>BASE_DIR="/usr/local/nagios" >>> >>>But, actually, I have it working by copying perfparse.cfg to >> >>/usr/local/etc. >> >>>OTOH, I have a new problem. I have graphs from some plugins, but I use >> >>check_tcp on port 23 to monitor Telnet. The output format is ok (I think): >> >>>[root@genesis bin]# cat /usr/local/nagios/var/serviceperf.log | grep >> >>TELNET >> >>>1093635155 itb1601a TELNET TCP OK - 0.153 second response >> >>time on port 23 [ BÇj?@¦+] OK t >> >>>ime=152656us;250000;400000;0;10000 >>>1093635164 sbc1601a TELNET TCP OK - 0.051 second response >> >>time on port 23 [ BÇj?@¦+] OK t >> >>>ime=50577us;250000;400000;0;10000 >>>1093635174 bsa1721a TELNET TCP OK - 0.088 second response >> >>time on port 23 [ BÇj?@¦+] OK t >> >>>ime=87626us;250000;400000;0;10000 >>> >>>Question >>>What means the odd characters into brackets? >>> >>>Problem >>>The graphs aren't generated to these services. I have graphs for >> >>check_ftp, http, users, cpu ... normally, but don't for tcp. >> >>>Regards >>> >>> >>> >>>>-----Original Message----- >>>>From: Ben Clewett [mailto:Be...@cl...] >>>>Sent: sexta-feira, 27 de agosto de 2004 13:15 >>>>To: Wilson Pires Jr >>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: nagios >>>>restarting] >>>> >>>>Wilson, >>>> >>>>Glad you have it working. Is this the same server as you run the CGI >>>>application from PP? If so this uses the same definition of there to >>>>find the config file. Unlike the tools, there is no '-c' option. Can >>>>you please check these are working as well? >>>> >>>>Regards, Ben >>>> >>>>Wilson Pires Jr wrote: >>>> >>>> >>>> >>>>>Ben, >>>>> >>>>>I've used the correct prefix. Now, I've deleted the program and done >> >>the >> >>>>>complete recompile. The program was regenerated: >>>>> >>>>>[root@genesis bin]# ./configure --prefix=/usr/local/nagios >>>>>--with-imagedir=/usr/local/nagios/share/images/ --with-cgidir >>>>>=/usr/local/nagios/sbin --with-http_image_path=/nagios/images >>>>> >>>>>-rwxr-xr-x 1 root root 253547 Aug 27 11:25 perfparse-db- >>>> >>>>tool >>>> >>>> >>>>>but the problem persisted, it looks for the cfg file the wrong place: >>>>> >>>>>[root@genesis bin]# ./perfparse-db-tool --update >>>>>Error, can't open configuation file: "//usr/local/etc/perfparse.cfg" >>>>> >>>>>So, I've copied perfparse.cfg to /usr/local/etc and the update was >>>>>successfully performed. >>>>> >>>>>Thanks for the help. But I'm still curious about the program checking >>>> >>>>the >>>> >>>> >>>>>cfg file into the wrong path... >>>>> >>>>>Regards, >>>>> >>>>>Wilson >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>-----Original Message----- >>>>>>From: Ben Clewett [mailto:Be...@cl...] >>>>>>Sent: sexta-feira, 27 de agosto de 2004 11:18 >>>>>>To: Wilson Pires Jr >>>>>>Cc: per...@li... >>>>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: nagios >>>>>>restarting] >>>>>> >>>>>>I note the error is: >>>>>> >>>>>>Error, can't open configuration file: "//usr/local/etc/perfparse.cfg" >>>>>> >>>>>>The file you are after is: >>>>>> >>>>>>/usr/local/nagios/etc/perfparse.cfg >>>>>> >>>>>>Are you are configuring using: --prefix=/usr/local/nagios ?? >>>>>> >>>>>>This should work. :( >>>>>> >>>>>>Can you try deleting the program 'perfparse-db-tool' and doing a >>>>>>complete recompile, as stated in the README? >>>>>> >>>>>>Does this regenerate this program? If you run it, does it work? >>>>>> >>>>>>Ben >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>Wilson Pires Jr wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>>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. >>>>>>>> >>>>>>> >>>>>>> >>>>>>>[Wilson Pires Jr] >>>>>>>I've recompiled and reinstalled, as suggested by Paulo, and renamed >> >>and >> >>>>>>set >>>>>> >>>>>> >>>>>> >>>>>>>perfparse.cfg.example and perfparse.sh.example. But the problem >> >>remains. >> >>>>>>I >>>>>> >>>>>> >>>>>> >>>>>>>can't run the db update: >>>>>>> >>>>>>>[root@genesis bin]# ./perfparse-db-tool --update >>>>>>>Error, can't open configuation file: "//usr/local/etc/perfparse.cfg" >>>>>>> >>>>>>>The files perfparse-db-tool and perfparse.cfg are owned by root, and >>>>>>>perfparse.sh is owned by nagios. Is this correct? >>>>>>> >>>>>>>/usr/local/nagios/bin >>>>>>>-rwxr-xr-x 1 root root 250813 Aug 27 10:24 perfparse >>>>>>>-rwxr-xr-x 1 root root 1661 Jul 28 10:42 >>>>>> >>>>>>perfparse_daemon.sh >>>>>> >>>>>> >>>>>> >>>>>>>-rwxr-xr-x 1 root root 262873 Aug 27 10:24 perfparse-db- >>>>>> >>>>>>purge >>>>>> >>>>>> >>>>>> >>>>>>>-rwxr-xr-x 1 root root 253547 Aug 27 10:24 perfparse-db- >>>>>> >>>>>>tool >>>>>> >>>>>> >>>>>> >>>>>>>-rwxr-xr-x 1 nagios nagios 252518 Jul 19 16:59 perfparse- >>>>>> >>>>>>install-db >>>>>> >>>>>> >>>>>> >>>>>>>-rwxr-xr-x 1 nagios nagios 259533 Jul 19 16:59 perfparse- >>>> >>>>purge- >>>> >>>> >>>>>>db >>>>>> >>>>>> >>>>>> >>>>>>>-rwxr-xr-x 1 nagios nagios 1326 Aug 27 10:32 perfparse.sh >>>>>>> >>>>>>>/usr/local/nagios/etc >>>>>>>[root@genesis etc]# ls -la perfparse.cfg* >>>>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:58 perfparse.cfg >>>>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:24 >>>>>>>perfparse.cfg.example >>>>>>> >>>>>>>As you can see I've tried to run the update as root. What is my >> >>mistake? >> >>>>>>Now >>>>>> >>>>>> >>>>>> >>>>>>>I can't see the pp web page: >>>>>>> >>>>>>>Error message: >>>>>>>malformed header from script. Bad header=<pre>: perfgraph.cgi >>>>>>> >>>>>>>Regarding the nagios restarting and stopping checks problems, they >>>> >>>>seems >>>> >>>> >>>>>>to >>>>>> >>>>>> >>>>>> >>>>>>>be solved. I've changed the use_retained_program_state from 0 to 1 >> >>and >> >>>>>>my >>>>>> >>>>>> >>>>>> >>>>>>>nagios is checking around 16 hours :-))) >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>Paulo Afonso Graner Fessel wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>Recompile perfparse according to the instructions: >>>>>>>>> >>>>>>>>>./configure \ >>>>>>>>> --prefix=/usr/local/nagios \ >>>>>>>>> --with-imagedir=/usr/local/nagios/share/images/ \ >>>>>>>>> --with-cgidir=/usr/local/nagios/sbin \ >>>>>>>>> --with-http_image_path=/nagios/images >>>>>>>>> >>>>>>>>>(Of course, I'm assuming that you've got nagios in >> >>/usr/local/nagios.) >> >>>>>>>>>This way, perfparse.cfg will be installed at /usr/local/nagios/etc. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>>You should upgrade to 0.99.09. It may or may not help with >>>>>>>>>> >>>>>>>>>>this issue, >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>but there are a couple of other bugfixes/enhancements >>>>>>>>>> >>>>>>>>>>available in the >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>latest version. And don't forget to run >>>>>>>>>>>'/<path_to>/nagios/bin/perfparse-db-tool --update' after >>>>>>>>>> >>>>>>>>>>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 >>>>>>>>>>mistake am I doing? >>>>>>>>>> >>>>>>>>>> >>>>>>> >>>>>>> >>>>> >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>This SF.Net email is sponsored by BEA Weblogic Workshop >>>>>FREE Java Enterprise J2EE developer tools! >>>>>Get your free copy of BEA WebLogic Workshop 8.1 today. >>>>>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>>>>_______________________________________________ >>>>>Perfparse-users mailing list >>>>>Per...@li... >>>>>https://lists.sourceforge.net/lists/listinfo/perfparse-users >>>>> >>> >>> >>> >>> >>> > > > ------------------------------------------------------------------------ > |
From: Ben C. <be...@cl...> - 2004-08-30 19:29:47
|
There are lots of difficulties with binary data. The escape method we have for MySQL cannot cope with arbitrary binary data. Several characters need escaping. There are also characters like NULL, EOF, which are really bad to processing. If we got that far, the binary is also illegal for HTML so that would need handling. I suggest the correct solution it to try and get the binary data out of the plugin output. The binary data is likely to be some form of Telnet handshake. Sending the screen size, echo, cursor type, terminal type name etc. If you are checking a telnet server, I would suggest using the correct check_telnet plugin which understands the telnet protocol. Regards, Ben Yves Mettier wrote: >>Yves, >> >>The xpdfile_service_perfdata_template is correct. I have graphs for some plugins, but >>not to check_tcp. I don't know why there isn't the "|" in my old message, but check_tcp >>brings perfdata, as you can see: >> >>[root@genesis var]# ../libexec/check_tcp -H 10.109.29.2 -p 23 >>TCP OK - 0.089 second response time on port 23 [ BÇj☺@â–‘â•] >>|time=88581us;0;0;0;10000 >> >>How could I check why the data aren't being imported? > > > The reason is probably what is in the binary data. > 1st: try to go around the difficulty instead of jumping over it: is there an option to > check_tcp to write something else than binary data ? check_tcp --help will help you to > answer. > > 2nd: I'd really like to know what's inside that binary data. I also notice that there > are [ and ] characters. Ben: is there somewhere something that say that plugins can put > binary data between those 2 characters ? In that case, there may be something to do in > perfparse ? > > Yves > > >>Regards, >> >>Wilson >> >> >>>-----Original Message----- >>>From: Yves Mettier [mailto:yme...@li...] >>>Sent: segunda-feira, 30 de agosto de 2004 11:12 >>>To: Wilson Pires Jr >>>Cc: 'Ben Clewett'; per...@li... >>>Subject: RE: [Perfparse-users] Odd and lack graphs [Was: Cannot run db- >>>tool update [was: nagios restarting]] >>> >>>Edit nagios.cfg. Do you have this ? If not, update, and restart nagios: >>> >>>xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUT >>>PUT$\t$SERVICESTATE$\t$PERFDATA$ >>> >>>I think this will do nothing anyways, when I see check_tcp output. There >>>is no "|" >>>character that mean perfdata following that character. >>>In that case, either check_tcp does not send perf data, or check_tcp is >>>broken. >>>Have you already run check_tcp in an xterm to see the output ? (check_tcp >>>--help for help) >>>I have no other idea. >>> >>>Yves >>> >>> >>>>Ben, >>>> >>>>running the command from shell the result is the same. I'm gonna check >>> >>>with >>> >>>>nagios-plugins developers. >>>> >>>>I'm having problems with the graphs: >>>> >>>>All the graphs I'm obtaining are similar to this one attached. It looks >>> >>>so >>> >>>>odd. What could be wrong? >>>> >>>>Another question is regarding check_tcp, that besides the odd characters >>>>brings perfdata but the graphs are empty (Sample Points: 0). >>>> >>>>Regards, >>>> >>>>Wilson >>>> >>>> >>>>>-----Original Message----- >>>>>From: Ben Clewett [mailto:be...@cl...] >>>>>Sent: segunda-feira, 30 de agosto de 2004 05:38 >>>>>To: Wilson Pires Jr; per...@li... >>>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: nagios >>>>>restarting] >>>>> >>>>>Wilson, >>>>> >>>>>The odd characters in the log file must come from a Nagios plugin. Try >>>>>running the command from the UNIX shell, does this give the same odd >>>>>characters? >>>>> >>>>>It looks like you have a plugin which reports the binary data it finds >>>>>on a TCP port, or something similar. This is dangerous data to return >>>>>from a plugin. If this is the case, you may consider writing an email >>>>>to the author asking them to escape the binary data... >>>>> >>>>>You can disable performance data for a plugin (somewhere?) which you >>> >>>may >>> >>>>>consider for this one. >>>>> >>>>>Ben >>>>> >>>>> >>>>> >>>>> >>>>>Wilson Pires Jr wrote: >>>>> >>>>> >>>>>>Ben, >>>>>> >>>>>>I'm glad too! >>>>>> >>>>>>The server is the same. With -c option I can run the db update, but >>>>> >>>>>don't perfparse.sh, besides I have into perfparse.sh: >>>>> >>>>>>BASE_DIR="/usr/local/nagios" >>>>>> >>>>>>But, actually, I have it working by copying perfparse.cfg to >>>>> >>>>>/usr/local/etc. >>>>> >>>>>>OTOH, I have a new problem. I have graphs from some plugins, but I >>> >>>use >>> >>>>>check_tcp on port 23 to monitor Telnet. The output format is ok (I >>> >>>think): >>> >>>>>>[root@genesis bin]# cat /usr/local/nagios/var/serviceperf.log | grep >>>>> >>>>>TELNET >>>>> >>>>>>1093635155 itb1601a TELNET TCP OK - 0.153 second >>> >>>response >>> >>>>>time on port 23 [ BÇj?@¦+] OK t >>>>> >>>>>>ime=152656us;250000;400000;0;10000 >>>>>>1093635164 sbc1601a TELNET TCP OK - 0.051 second >>> >>>response >>> >>>>>time on port 23 [ BÇj?@¦+] OK t >>>>> >>>>>>ime=50577us;250000;400000;0;10000 >>>>>>1093635174 bsa1721a TELNET TCP OK - 0.088 second >>> >>>response >>> >>>>>time on port 23 [ BÇj?@¦+] OK t >>>>> >>>>>>ime=87626us;250000;400000;0;10000 >>>>>> >>>>>>Question >>>>>>What means the odd characters into brackets? >>>>>> >>>>>>Problem >>>>>>The graphs aren't generated to these services. I have graphs for >>>>> >>>>>check_ftp, http, users, cpu ... normally, but don't for tcp. >>>>> >>>>>>Regards >>>>>> >>>>>> >>>>>> >>>>>>>-----Original Message----- >>>>>>>From: Ben Clewett [mailto:Be...@cl...] >>>>>>>Sent: sexta-feira, 27 de agosto de 2004 13:15 >>>>>>>To: Wilson Pires Jr >>>>>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: nagios >>>>>>>restarting] >>>>>>> >>>>>>>Wilson, >>>>>>> >>>>>>>Glad you have it working. Is this the same server as you run the CGI >>>>>>>application from PP? If so this uses the same definition of there to >>>>>>>find the config file. Unlike the tools, there is no '-c' option. >>> >>>Can >>> >>>>>>>you please check these are working as well? >>>>>>> >>>>>>>Regards, Ben >>>>>>> >>>>>>>Wilson Pires Jr wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>>>Ben, >>>>>>>> >>>>>>>>I've used the correct prefix. Now, I've deleted the program and done >>>>> >>>>>the >>>>> >>>>>>>>complete recompile. The program was regenerated: >>>>>>>> >>>>>>>>[root@genesis bin]# ./configure --prefix=/usr/local/nagios >>>>>>>>--with-imagedir=/usr/local/nagios/share/images/ --with-cgidir >>>>>>>>=/usr/local/nagios/sbin --with-http_image_path=/nagios/images >>>>>>>> >>>>>>>>-rwxr-xr-x 1 root root 253547 Aug 27 11:25 perfparse- >>> >>>db- >>> >>>>>>>tool >>>>>>> >>>>>>> >>>>>>>>but the problem persisted, it looks for the cfg file the wrong place: >>>>>>>> >>>>>>>>[root@genesis bin]# ./perfparse-db-tool --update >>>>>>>>Error, can't open configuation file: "//usr/local/etc/perfparse.cfg" >>>>>>>> >>>>>>>>So, I've copied perfparse.cfg to /usr/local/etc and the update was >>>>>>>>successfully performed. >>>>>>>> >>>>>>>>Thanks for the help. But I'm still curious about the program >>> >>>checking >>> >>>>>>>the >>>>>>> >>>>>>> >>>>>>>>cfg file into the wrong path... >>>>>>>> >>>>>>>>Regards, >>>>>>>> >>>>>>>>Wilson >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>-----Original Message----- >>>>>>>>>From: Ben Clewett [mailto:Be...@cl...] >>>>>>>>>Sent: sexta-feira, 27 de agosto de 2004 11:18 >>>>>>>>>To: Wilson Pires Jr >>>>>>>>>Cc: per...@li... >>>>>>>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: >>> >>>nagios >>> >>>>>>>>>restarting] >>>>>>>>> >>>>>>>>>I note the error is: >>>>>>>>> >>>>>>>>>Error, can't open configuration file: >>> >>>"//usr/local/etc/perfparse.cfg" >>> >>>>>>>>>The file you are after is: >>>>>>>>> >>>>>>>>>/usr/local/nagios/etc/perfparse.cfg >>>>>>>>> >>>>>>>>>Are you are configuring using: --prefix=/usr/local/nagios ?? >>>>>>>>> >>>>>>>>>This should work. :( >>>>>>>>> >>>>>>>>>Can you try deleting the program 'perfparse-db-tool' and doing a >>>>>>>>>complete recompile, as stated in the README? >>>>>>>>> >>>>>>>>>Does this regenerate this program? If you run it, does it work? >>>>>>>>> >>>>>>>>>Ben >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>Wilson Pires Jr wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>>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. >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>[Wilson Pires Jr] >>>>>>>>>>I've recompiled and reinstalled, as suggested by Paulo, and >>> >>>renamed >>> >>>>>and >>>>> >>>>>>>>>set >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>perfparse.cfg.example and perfparse.sh.example. But the problem >>>>> >>>>>remains. >>>>> >>>>>>>>>I >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>can't run the db update: >>>>>>>>>> >>>>>>>>>>[root@genesis bin]# ./perfparse-db-tool --update >>>>>>>>>>Error, can't open configuation file: >>> >>>"//usr/local/etc/perfparse.cfg" >>> >>>>>>>>>>The files perfparse-db-tool and perfparse.cfg are owned by root, >>> >>>and >>> >>>>>>>>>>perfparse.sh is owned by nagios. Is this correct? >>>>>>>>>> >>>>>>>>>>/usr/local/nagios/bin >>>>>>>>>>-rwxr-xr-x 1 root root 250813 Aug 27 10:24 perfparse >>>>>>>>>>-rwxr-xr-x 1 root root 1661 Jul 28 10:42 >>>>>>>>> >>>>>>>>>perfparse_daemon.sh >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>-rwxr-xr-x 1 root root 262873 Aug 27 10:24 perfparse- >>> >>>db- >>> >>>>>>>>>purge >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>-rwxr-xr-x 1 root root 253547 Aug 27 10:24 perfparse- >>> >>>db- >>> >>>>>>>>>tool >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>-rwxr-xr-x 1 nagios nagios 252518 Jul 19 16:59 perfparse- >>>>>>>>> >>>>>>>>>install-db >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>-rwxr-xr-x 1 nagios nagios 259533 Jul 19 16:59 perfparse- >>>>>>> >>>>>>>purge- >>>>>>> >>>>>>> >>>>>>>>>db >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>-rwxr-xr-x 1 nagios nagios 1326 Aug 27 10:32 >>> >>>perfparse.sh >>> >>>>>>>>>>/usr/local/nagios/etc >>>>>>>>>>[root@genesis etc]# ls -la perfparse.cfg* >>>>>>>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:58 >>> >>>perfparse.cfg >>> >>>>>>>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:24 >>>>>>>>>>perfparse.cfg.example >>>>>>>>>> >>>>>>>>>>As you can see I've tried to run the update as root. What is my >>>>> >>>>>mistake? >>>>> >>>>>>>>>Now >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>I can't see the pp web page: >>>>>>>>>> >>>>>>>>>>Error message: >>>>>>>>>>malformed header from script. Bad header=<pre>: >>> >>>perfgraph.cgi >>> >>>>>>>>>>Regarding the nagios restarting and stopping checks problems, they >>>>>>> >>>>>>>seems >>>>>>> >>>>>>> >>>>>>>>>to >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>be solved. I've changed the use_retained_program_state from 0 to 1 >>>>> >>>>>and >>>>> >>>>>>>>>my >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>nagios is checking around 16 hours :-))) >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>>Paulo Afonso Graner Fessel wrote: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>>Recompile perfparse according to the instructions: >>>>>>>>>>>> >>>>>>>>>>>>./configure \ >>>>>>>>>>>> --prefix=/usr/local/nagios \ >>>>>>>>>>>> --with-imagedir=/usr/local/nagios/share/images/ \ >>>>>>>>>>>> --with-cgidir=/usr/local/nagios/sbin \ >>>>>>>>>>>> --with-http_image_path=/nagios/images >>>>>>>>>>>> >>>>>>>>>>>>(Of course, I'm assuming that you've got nagios in >>>>> >>>>>/usr/local/nagios.) >>>>> >>>>>>>>>>>>This way, perfparse.cfg will be installed at >>> >>>/usr/local/nagios/etc. >>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>>>You should upgrade to 0.99.09. It may or may not help with >>>>>>>>>>>>> >>>>>>>>>>>>>this issue, >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>>but there are a couple of other bugfixes/enhancements >>>>>>>>>>>>> >>>>>>>>>>>>>available in the >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>>latest version. And don't forget to run >>>>>>>>>>>>>>'/<path_to>/nagios/bin/perfparse-db-tool --update' after >>>>>>>>>>>>> >>>>>>>>>>>>>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 >>>>>>>>>>>>>mistake am I doing? >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>------------------------------------------------------- >>>>>>>>This SF.Net email is sponsored by BEA Weblogic Workshop >>>>>>>>FREE Java Enterprise J2EE developer tools! >>>>>>>>Get your free copy of BEA WebLogic Workshop 8.1 today. >>>>>>>>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>>>>>>>_______________________________________________ >>>>>>>>Perfparse-users mailing list >>>>>>>>Per...@li... >>>>>>>>https://lists.sourceforge.net/lists/listinfo/perfparse-users >>>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>> >>> >>>-- >>>- Homepage - http://ymettier.free.fr - http://www.logicacmg.com - >>>- GPG key - http://ymettier.free.fr/gpg.txt - >>>- Maitretarot - http://www.nongnu.org/maitretarot/ - >>>- GTKtalog - http://www.nongnu.org/gtktalog/ - >>> >>> >> >> >> >> > > |
From: Yves M. <yme...@li...> - 2004-08-30 18:52:43
|
> Yves, > > The xpdfile_service_perfdata_template is correct. I have graphs for som= e plugins, but > not to check_tcp. I don't know why there isn't the "|" in my old messag= e, but check_tcp > brings perfdata, as you can see: > > [root@genesis var]# ../libexec/check_tcp -H 10.109.29.2 -p 23 > TCP OK - 0.089 second response time on port 23 [ B=C3=87j=E2=98=BA= @=E2=96=91=E2=95=9D] > |time=3D88581us;0;0;0;10000 > > How could I check why the data aren't being imported? The reason is probably what is in the binary data. 1st: try to go around the difficulty instead of jumping over it: is there= an option to check_tcp to write something else than binary data ? check_tcp --help wil= l help you to answer. 2nd: I'd really like to know what's inside that binary data. I also notic= e that there are [ and ] characters. Ben: is there somewhere something that say that p= lugins can put binary data between those 2 characters ? In that case, there may be somet= hing to do in perfparse ? Yves > > Regards, > > Wilson > >> -----Original Message----- >> From: Yves Mettier [mailto:yme...@li...] >> Sent: segunda-feira, 30 de agosto de 2004 11:12 >> To: Wilson Pires Jr >> Cc: 'Ben Clewett'; per...@li... >> Subject: RE: [Perfparse-users] Odd and lack graphs [Was: Cannot run db= - >> tool update [was: nagios restarting]] >> >> Edit nagios.cfg. Do you have this ? If not, update, and restart nagios= : >> >> xpdfile_service_perfdata_template=3D$TIMET$\t$HOSTNAME$\t$SERVICEDESC$= \t$OUT >> PUT$\t$SERVICESTATE$\t$PERFDATA$ >> >> I think this will do nothing anyways, when I see check_tcp output. The= re >> is no "|" >> character that mean perfdata following that character. >> In that case, either check_tcp does not send perf data, or check_tcp i= s >> broken. >> Have you already run check_tcp in an xterm to see the output ? (check_= tcp >> --help for help) >> I have no other idea. >> >> Yves >> >> > Ben, >> > >> > running the command from shell the result is the same. I'm gonna che= ck >> with >> > nagios-plugins developers. >> > >> > I'm having problems with the graphs: >> > >> > All the graphs I'm obtaining are similar to this one attached. It lo= oks >> so >> > odd. What could be wrong? >> > >> > Another question is regarding check_tcp, that besides the odd charac= ters >> > brings perfdata but the graphs are empty (Sample Points: 0). >> > >> > Regards, >> > >> > Wilson >> > >> >> -----Original Message----- >> >> From: Ben Clewett [mailto:be...@cl...] >> >> Sent: segunda-feira, 30 de agosto de 2004 05:38 >> >> To: Wilson Pires Jr; per...@li... >> >> Subject: Re: [Perfparse-users] Cannot run db-tool update [was: nagi= os >> >> restarting] >> >> >> >> Wilson, >> >> >> >> The odd characters in the log file must come from a Nagios plugin. = Try >> >> running the command from the UNIX shell, does this give the same od= d >> >> characters? >> >> >> >> It looks like you have a plugin which reports the binary data it fi= nds >> >> on a TCP port, or something similar. This is dangerous data to ret= urn >> >> from a plugin. If this is the case, you may consider writing an em= ail >> >> to the author asking them to escape the binary data... >> >> >> >> You can disable performance data for a plugin (somewhere?) which yo= u >> may >> >> consider for this one. >> >> >> >> Ben >> >> >> >> >> >> >> >> >> >> Wilson Pires Jr wrote: >> >> >> >> > Ben, >> >> > >> >> > I'm glad too! >> >> > >> >> > The server is the same. With -c option I can run the db update, b= ut >> >> don't perfparse.sh, besides I have into perfparse.sh: >> >> > >> >> > BASE_DIR=3D"/usr/local/nagios" >> >> > >> >> > But, actually, I have it working by copying perfparse.cfg to >> >> /usr/local/etc. >> >> > >> >> > OTOH, I have a new problem. I have graphs from some plugins, but = I >> use >> >> check_tcp on port 23 to monitor Telnet. The output format is ok (I >> think): >> >> > >> >> > [root@genesis bin]# cat /usr/local/nagios/var/serviceperf.log | g= rep >> >> TELNET >> >> > 1093635155 itb1601a TELNET TCP OK - 0.153 second >> response >> >> time on port 23 [ B=C3=87j?@=C2=A6+] OK t >> >> > ime=3D152656us;250000;400000;0;10000 >> >> > 1093635164 sbc1601a TELNET TCP OK - 0.051 second >> response >> >> time on port 23 [ B=C3=87j?@=C2=A6+] OK t >> >> > ime=3D50577us;250000;400000;0;10000 >> >> > 1093635174 bsa1721a TELNET TCP OK - 0.088 second >> response >> >> time on port 23 [ B=C3=87j?@=C2=A6+] OK t >> >> > ime=3D87626us;250000;400000;0;10000 >> >> > >> >> > Question >> >> > What means the odd characters into brackets? >> >> > >> >> > Problem >> >> > The graphs aren't generated to these services. I have graphs for >> >> check_ftp, http, users, cpu ... normally, but don't for tcp. >> >> > >> >> > Regards >> >> > >> >> > >> >> >>-----Original Message----- >> >> >>From: Ben Clewett [mailto:Be...@cl...] >> >> >>Sent: sexta-feira, 27 de agosto de 2004 13:15 >> >> >>To: Wilson Pires Jr >> >> >>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: na= gios >> >> >>restarting] >> >> >> >> >> >>Wilson, >> >> >> >> >> >>Glad you have it working. Is this the same server as you run the= CGI >> >> >>application from PP? If so this uses the same definition of ther= e to >> >> >>find the config file. Unlike the tools, there is no '-c' option. >> Can >> >> >>you please check these are working as well? >> >> >> >> >> >>Regards, Ben >> >> >> >> >> >>Wilson Pires Jr wrote: >> >> >> >> >> >> >> >> >>>Ben, >> >> >>> >> >> >>>I've used the correct prefix. Now, I've deleted the program and = done >> >> the >> >> >>>complete recompile. The program was regenerated: >> >> >>> >> >> >>>[root@genesis bin]# ./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/image= s >> >> >>> >> >> >>>-rwxr-xr-x 1 root root 253547 Aug 27 11:25 perfpars= e- >> db- >> >> >> >> >> >>tool >> >> >> >> >> >>>but the problem persisted, it looks for the cfg file the wrong p= lace: >> >> >>> >> >> >>>[root@genesis bin]# ./perfparse-db-tool --update >> >> >>>Error, can't open configuation file: "//usr/local/etc/perfparse.= cfg" >> >> >>> >> >> >>>So, I've copied perfparse.cfg to /usr/local/etc and the update w= as >> >> >>>successfully performed. >> >> >>> >> >> >>>Thanks for the help. But I'm still curious about the program >> checking >> >> >> >> >> >>the >> >> >> >> >> >>>cfg file into the wrong path... >> >> >>> >> >> >>>Regards, >> >> >>> >> >> >>>Wilson >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>>>-----Original Message----- >> >> >>>>From: Ben Clewett [mailto:Be...@cl...] >> >> >>>>Sent: sexta-feira, 27 de agosto de 2004 11:18 >> >> >>>>To: Wilson Pires Jr >> >> >>>>Cc: per...@li... >> >> >>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: >> nagios >> >> >>>>restarting] >> >> >>>> >> >> >>>>I note the error is: >> >> >>>> >> >> >>>>Error, can't open configuration file: >> "//usr/local/etc/perfparse.cfg" >> >> >>>> >> >> >>>>The file you are after is: >> >> >>>> >> >> >>>>/usr/local/nagios/etc/perfparse.cfg >> >> >>>> >> >> >>>>Are you are configuring using: --prefix=3D/usr/local/nagios ?? >> >> >>>> >> >> >>>>This should work. :( >> >> >>>> >> >> >>>>Can you try deleting the program 'perfparse-db-tool' and doing = a >> >> >>>>complete recompile, as stated in the README? >> >> >>>> >> >> >>>>Does this regenerate this program? If you run it, does it wor= k? >> >> >>>> >> >> >>>>Ben >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>>Wilson Pires Jr wrote: >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>>>>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. >> >> >>>>>> >> >> >>>>> >> >> >>>>> >> >> >>>>>[Wilson Pires Jr] >> >> >>>>>I've recompiled and reinstalled, as suggested by Paulo, and >> renamed >> >> and >> >> >>>> >> >> >>>>set >> >> >>>> >> >> >>>> >> >> >>>>>perfparse.cfg.example and perfparse.sh.example. But the proble= m >> >> remains. >> >> >>>> >> >> >>>>I >> >> >>>> >> >> >>>> >> >> >>>>>can't run the db update: >> >> >>>>> >> >> >>>>>[root@genesis bin]# ./perfparse-db-tool --update >> >> >>>>>Error, can't open configuation file: >> "//usr/local/etc/perfparse.cfg" >> >> >>>>> >> >> >>>>>The files perfparse-db-tool and perfparse.cfg are owned by roo= t, >> and >> >> >>>>>perfparse.sh is owned by nagios. Is this correct? >> >> >>>>> >> >> >>>>>/usr/local/nagios/bin >> >> >>>>>-rwxr-xr-x 1 root root 250813 Aug 27 10:24 perfpa= rse >> >> >>>>>-rwxr-xr-x 1 root root 1661 Jul 28 10:42 >> >> >>>> >> >> >>>>perfparse_daemon.sh >> >> >>>> >> >> >>>> >> >> >>>>>-rwxr-xr-x 1 root root 262873 Aug 27 10:24 perfpa= rse- >> db- >> >> >>>> >> >> >>>>purge >> >> >>>> >> >> >>>> >> >> >>>>>-rwxr-xr-x 1 root root 253547 Aug 27 10:24 perfpa= rse- >> db- >> >> >>>> >> >> >>>>tool >> >> >>>> >> >> >>>> >> >> >>>>>-rwxr-xr-x 1 nagios nagios 252518 Jul 19 16:59 perfpa= rse- >> >> >>>> >> >> >>>>install-db >> >> >>>> >> >> >>>> >> >> >>>>>-rwxr-xr-x 1 nagios nagios 259533 Jul 19 16:59 perfpa= rse- >> >> >> >> >> >>purge- >> >> >> >> >> >>>>db >> >> >>>> >> >> >>>> >> >> >>>>>-rwxr-xr-x 1 nagios nagios 1326 Aug 27 10:32 >> perfparse.sh >> >> >>>>> >> >> >>>>>/usr/local/nagios/etc >> >> >>>>>[root@genesis etc]# ls -la perfparse.cfg* >> >> >>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:58 >> perfparse.cfg >> >> >>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:24 >> >> >>>>>perfparse.cfg.example >> >> >>>>> >> >> >>>>>As you can see I've tried to run the update as root. What is m= y >> >> mistake? >> >> >>>> >> >> >>>>Now >> >> >>>> >> >> >>>> >> >> >>>>>I can't see the pp web page: >> >> >>>>> >> >> >>>>>Error message: >> >> >>>>>malformed header from script. Bad header=3D<pre>: >> perfgraph.cgi >> >> >>>>> >> >> >>>>>Regarding the nagios restarting and stopping checks problems, = they >> >> >> >> >> >>seems >> >> >> >> >> >>>>to >> >> >>>> >> >> >>>> >> >> >>>>>be solved. I've changed the use_retained_program_state from 0 = to 1 >> >> and >> >> >>>> >> >> >>>>my >> >> >>>> >> >> >>>> >> >> >>>>>nagios is checking around 16 hours :-))) >> >> >>>>> >> >> >>>>> >> >> >>>>> >> >> >>>>> >> >> >>>>> >> >> >>>>>>Paulo Afonso Graner Fessel wrote: >> >> >>>>>> >> >> >>>>>> >> >> >>>>>> >> >> >>>>>> >> >> >>>>>>>Recompile perfparse according to the instructions: >> >> >>>>>>> >> >> >>>>>>>./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 >> >> >>>>>>> >> >> >>>>>>>(Of course, I'm assuming that you've got nagios in >> >> /usr/local/nagios.) >> >> >>>>>>> >> >> >>>>>>>This way, perfparse.cfg will be installed at >> /usr/local/nagios/etc. >> >> >>>>>>> >> >> >>>>>>> >> >> >>>>>>> >> >> >>>>>>> >> >> >>>>>>>>>You should upgrade to 0.99.09. It may or may not help with >> >> >>>>>>>> >> >> >>>>>>>>this issue, >> >> >>>>>>>> >> >> >>>>>>>> >> >> >>>>>>>> >> >> >>>>>>>>>but there are a couple of other bugfixes/enhancements >> >> >>>>>>>> >> >> >>>>>>>>available in the >> >> >>>>>>>> >> >> >>>>>>>> >> >> >>>>>>>> >> >> >>>>>>>>>latest version. And don't forget to run >> >> >>>>>>>>>'/<path_to>/nagios/bin/perfparse-db-tool --update' after >> >> >>>>>>>> >> >> >>>>>>>>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 >> >> >>>>>>>>mistake am I doing? >> >> >>>>>>>> >> >> >>>>>>>> >> >> >>>>> >> >> >>>>> >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> >> >>>------------------------------------------------------- >> >> >>>This SF.Net email is sponsored by BEA Weblogic Workshop >> >> >>>FREE Java Enterprise J2EE developer tools! >> >> >>>Get your free copy of BEA WebLogic Workshop 8.1 today. >> >> >>>http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick >> >> >>>_______________________________________________ >> >> >>>Perfparse-users mailing list >> >> >>>Per...@li... >> >> >>>https://lists.sourceforge.net/lists/listinfo/perfparse-users >> >> >>> >> >> > >> >> > >> >> > >> >> > >> >> > >> > >> > >> >> >> -- >> - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - >> - GPG key - http://ymettier.free.fr/gpg.txt - >> - Maitretarot - http://www.nongnu.org/maitretarot/ - >> - GTKtalog - http://www.nongnu.org/gtktalog/ - >> >> > > > > --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - GTKtalog - http://www.nongnu.org/gtktalog/ - |
From: Wilson P. J. <wp....@te...> - 2004-08-30 18:44:20
|
Yves, The xpdfile_service_perfdata_template is correct. I have graphs for some = plugins, but not to check_tcp. I don't know why there isn't the "|" in = my old message, but check_tcp brings perfdata, as you can see: [root@genesis var]# ../libexec/check_tcp -H 10.109.29.2 -p 23 TCP OK - 0.089 second response time on port 23 [ = B=C3=87j=E2=98=BA@=E2=96=91=E2=95=9D] |time=3D88581us;0;0;0;10000 How could I check why the data aren't being imported? Regards, Wilson > -----Original Message----- > From: Yves Mettier [mailto:yme...@li...] > Sent: segunda-feira, 30 de agosto de 2004 11:12 > To: Wilson Pires Jr > Cc: 'Ben Clewett'; per...@li... > Subject: RE: [Perfparse-users] Odd and lack graphs [Was: Cannot run = db- > tool update [was: nagios restarting]] >=20 > Edit nagios.cfg. Do you have this ? If not, update, and restart = nagios: >=20 > = xpdfile_service_perfdata_template=3D$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$= OUT > PUT$\t$SERVICESTATE$\t$PERFDATA$ >=20 > I think this will do nothing anyways, when I see check_tcp output. = There > is no "|" > character that mean perfdata following that character. > In that case, either check_tcp does not send perf data, or check_tcp = is > broken. > Have you already run check_tcp in an xterm to see the output ? = (check_tcp > --help for help) > I have no other idea. >=20 > Yves >=20 > > Ben, > > > > running the command from shell the result is the same. I'm gonna = check > with > > nagios-plugins developers. > > > > I'm having problems with the graphs: > > > > All the graphs I'm obtaining are similar to this one attached. It = looks > so > > odd. What could be wrong? > > > > Another question is regarding check_tcp, that besides the odd = characters > > brings perfdata but the graphs are empty (Sample Points: 0). > > > > Regards, > > > > Wilson > > > >> -----Original Message----- > >> From: Ben Clewett [mailto:be...@cl...] > >> Sent: segunda-feira, 30 de agosto de 2004 05:38 > >> To: Wilson Pires Jr; per...@li... > >> Subject: Re: [Perfparse-users] Cannot run db-tool update [was: = nagios > >> restarting] > >> > >> Wilson, > >> > >> The odd characters in the log file must come from a Nagios plugin. = Try > >> running the command from the UNIX shell, does this give the same = odd > >> characters? > >> > >> It looks like you have a plugin which reports the binary data it = finds > >> on a TCP port, or something similar. This is dangerous data to = return > >> from a plugin. If this is the case, you may consider writing an = email > >> to the author asking them to escape the binary data... > >> > >> You can disable performance data for a plugin (somewhere?) which = you > may > >> consider for this one. > >> > >> Ben > >> > >> > >> > >> > >> Wilson Pires Jr wrote: > >> > >> > Ben, > >> > > >> > I'm glad too! > >> > > >> > The server is the same. With -c option I can run the db update, = but > >> don't perfparse.sh, besides I have into perfparse.sh: > >> > > >> > BASE_DIR=3D"/usr/local/nagios" > >> > > >> > But, actually, I have it working by copying perfparse.cfg to > >> /usr/local/etc. > >> > > >> > OTOH, I have a new problem. I have graphs from some plugins, but = I > use > >> check_tcp on port 23 to monitor Telnet. The output format is ok (I > think): > >> > > >> > [root@genesis bin]# cat /usr/local/nagios/var/serviceperf.log | = grep > >> TELNET > >> > 1093635155 itb1601a TELNET TCP OK - 0.153 second > response > >> time on port 23 [ B=C3=87j?@=C2=A6+] OK t > >> > ime=3D152656us;250000;400000;0;10000 > >> > 1093635164 sbc1601a TELNET TCP OK - 0.051 second > response > >> time on port 23 [ B=C3=87j?@=C2=A6+] OK t > >> > ime=3D50577us;250000;400000;0;10000 > >> > 1093635174 bsa1721a TELNET TCP OK - 0.088 second > response > >> time on port 23 [ B=C3=87j?@=C2=A6+] OK t > >> > ime=3D87626us;250000;400000;0;10000 > >> > > >> > Question > >> > What means the odd characters into brackets? > >> > > >> > Problem > >> > The graphs aren't generated to these services. I have graphs for > >> check_ftp, http, users, cpu ... normally, but don't for tcp. > >> > > >> > Regards > >> > > >> > > >> >>-----Original Message----- > >> >>From: Ben Clewett [mailto:Be...@cl...] > >> >>Sent: sexta-feira, 27 de agosto de 2004 13:15 > >> >>To: Wilson Pires Jr > >> >>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: = nagios > >> >>restarting] > >> >> > >> >>Wilson, > >> >> > >> >>Glad you have it working. Is this the same server as you run the = CGI > >> >>application from PP? If so this uses the same definition of = there to > >> >>find the config file. Unlike the tools, there is no '-c' option. > Can > >> >>you please check these are working as well? > >> >> > >> >>Regards, Ben > >> >> > >> >>Wilson Pires Jr wrote: > >> >> > >> >> > >> >>>Ben, > >> >>> > >> >>>I've used the correct prefix. Now, I've deleted the program and = done > >> the > >> >>>complete recompile. The program was regenerated: > >> >>> > >> >>>[root@genesis bin]# ./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 > >> >>> > >> >>>-rwxr-xr-x 1 root root 253547 Aug 27 11:25 = perfparse- > db- > >> >> > >> >>tool > >> >> > >> >>>but the problem persisted, it looks for the cfg file the wrong = place: > >> >>> > >> >>>[root@genesis bin]# ./perfparse-db-tool --update > >> >>>Error, can't open configuation file: = "//usr/local/etc/perfparse.cfg" > >> >>> > >> >>>So, I've copied perfparse.cfg to /usr/local/etc and the update = was > >> >>>successfully performed. > >> >>> > >> >>>Thanks for the help. But I'm still curious about the program > checking > >> >> > >> >>the > >> >> > >> >>>cfg file into the wrong path... > >> >>> > >> >>>Regards, > >> >>> > >> >>>Wilson > >> >>> > >> >>> > >> >>> > >> >>> > >> >>>>-----Original Message----- > >> >>>>From: Ben Clewett [mailto:Be...@cl...] > >> >>>>Sent: sexta-feira, 27 de agosto de 2004 11:18 > >> >>>>To: Wilson Pires Jr > >> >>>>Cc: per...@li... > >> >>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: > nagios > >> >>>>restarting] > >> >>>> > >> >>>>I note the error is: > >> >>>> > >> >>>>Error, can't open configuration file: > "//usr/local/etc/perfparse.cfg" > >> >>>> > >> >>>>The file you are after is: > >> >>>> > >> >>>>/usr/local/nagios/etc/perfparse.cfg > >> >>>> > >> >>>>Are you are configuring using: --prefix=3D/usr/local/nagios ?? > >> >>>> > >> >>>>This should work. :( > >> >>>> > >> >>>>Can you try deleting the program 'perfparse-db-tool' and doing = a > >> >>>>complete recompile, as stated in the README? > >> >>>> > >> >>>>Does this regenerate this program? If you run it, does it = work? > >> >>>> > >> >>>>Ben > >> >>>> > >> >>>> > >> >>>> > >> >>>> > >> >>>> > >> >>>> > >> >>>> > >> >>>>Wilson Pires Jr wrote: > >> >>>> > >> >>>> > >> >>>> > >> >>>>>>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. > >> >>>>>> > >> >>>>> > >> >>>>> > >> >>>>>[Wilson Pires Jr] > >> >>>>>I've recompiled and reinstalled, as suggested by Paulo, and > renamed > >> and > >> >>>> > >> >>>>set > >> >>>> > >> >>>> > >> >>>>>perfparse.cfg.example and perfparse.sh.example. But the = problem > >> remains. > >> >>>> > >> >>>>I > >> >>>> > >> >>>> > >> >>>>>can't run the db update: > >> >>>>> > >> >>>>>[root@genesis bin]# ./perfparse-db-tool --update > >> >>>>>Error, can't open configuation file: > "//usr/local/etc/perfparse.cfg" > >> >>>>> > >> >>>>>The files perfparse-db-tool and perfparse.cfg are owned by = root, > and > >> >>>>>perfparse.sh is owned by nagios. Is this correct? > >> >>>>> > >> >>>>>/usr/local/nagios/bin > >> >>>>>-rwxr-xr-x 1 root root 250813 Aug 27 10:24 = perfparse > >> >>>>>-rwxr-xr-x 1 root root 1661 Jul 28 10:42 > >> >>>> > >> >>>>perfparse_daemon.sh > >> >>>> > >> >>>> > >> >>>>>-rwxr-xr-x 1 root root 262873 Aug 27 10:24 = perfparse- > db- > >> >>>> > >> >>>>purge > >> >>>> > >> >>>> > >> >>>>>-rwxr-xr-x 1 root root 253547 Aug 27 10:24 = perfparse- > db- > >> >>>> > >> >>>>tool > >> >>>> > >> >>>> > >> >>>>>-rwxr-xr-x 1 nagios nagios 252518 Jul 19 16:59 = perfparse- > >> >>>> > >> >>>>install-db > >> >>>> > >> >>>> > >> >>>>>-rwxr-xr-x 1 nagios nagios 259533 Jul 19 16:59 = perfparse- > >> >> > >> >>purge- > >> >> > >> >>>>db > >> >>>> > >> >>>> > >> >>>>>-rwxr-xr-x 1 nagios nagios 1326 Aug 27 10:32 > perfparse.sh > >> >>>>> > >> >>>>>/usr/local/nagios/etc > >> >>>>>[root@genesis etc]# ls -la perfparse.cfg* > >> >>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:58 > perfparse.cfg > >> >>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:24 > >> >>>>>perfparse.cfg.example > >> >>>>> > >> >>>>>As you can see I've tried to run the update as root. What is = my > >> mistake? > >> >>>> > >> >>>>Now > >> >>>> > >> >>>> > >> >>>>>I can't see the pp web page: > >> >>>>> > >> >>>>>Error message: > >> >>>>>malformed header from script. Bad header=3D<pre>: > perfgraph.cgi > >> >>>>> > >> >>>>>Regarding the nagios restarting and stopping checks problems, = they > >> >> > >> >>seems > >> >> > >> >>>>to > >> >>>> > >> >>>> > >> >>>>>be solved. I've changed the use_retained_program_state from 0 = to 1 > >> and > >> >>>> > >> >>>>my > >> >>>> > >> >>>> > >> >>>>>nagios is checking around 16 hours :-))) > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>> > >> >>>>>>Paulo Afonso Graner Fessel wrote: > >> >>>>>> > >> >>>>>> > >> >>>>>> > >> >>>>>> > >> >>>>>>>Recompile perfparse according to the instructions: > >> >>>>>>> > >> >>>>>>>./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 > >> >>>>>>> > >> >>>>>>>(Of course, I'm assuming that you've got nagios in > >> /usr/local/nagios.) > >> >>>>>>> > >> >>>>>>>This way, perfparse.cfg will be installed at > /usr/local/nagios/etc. > >> >>>>>>> > >> >>>>>>> > >> >>>>>>> > >> >>>>>>> > >> >>>>>>>>>You should upgrade to 0.99.09. It may or may not help with > >> >>>>>>>> > >> >>>>>>>>this issue, > >> >>>>>>>> > >> >>>>>>>> > >> >>>>>>>> > >> >>>>>>>>>but there are a couple of other bugfixes/enhancements > >> >>>>>>>> > >> >>>>>>>>available in the > >> >>>>>>>> > >> >>>>>>>> > >> >>>>>>>> > >> >>>>>>>>>latest version. And don't forget to run > >> >>>>>>>>>'/<path_to>/nagios/bin/perfparse-db-tool --update' after > >> >>>>>>>> > >> >>>>>>>>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 > >> >>>>>>>>mistake am I doing? > >> >>>>>>>> > >> >>>>>>>> > >> >>>>> > >> >>>>> > >> >>> > >> >>> > >> >>> > >> >>> > >> >>>------------------------------------------------------- > >> >>>This SF.Net email is sponsored by BEA Weblogic Workshop > >> >>>FREE Java Enterprise J2EE developer tools! > >> >>>Get your free copy of BEA WebLogic Workshop 8.1 today. > >> >>>http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick > >> >>>_______________________________________________ > >> >>>Perfparse-users mailing list > >> >>>Per...@li... > >> >>>https://lists.sourceforge.net/lists/listinfo/perfparse-users > >> >>> > >> > > >> > > >> > > >> > > >> > > > > > >=20 >=20 > -- > - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - > - GPG key - http://ymettier.free.fr/gpg.txt - > - Maitretarot - http://www.nongnu.org/maitretarot/ - > - GTKtalog - http://www.nongnu.org/gtktalog/ - >=20 >=20 |
From: Christopher D. C. <ch...@dh...> - 2004-08-30 15:37:02
|
I have added check_load as a service to a host under Nagios. I can view the Raw Plugin Data from Nagios in PerfParse but I can not get any of the data to graph. I am also having the same problem with the PING data. =20 Chris =20 Christopher D. Chandler Managing Partner Office: 919-481-9876 Mobile: 919-274-7684 =20 =20 ch...@dh... <mailto:ch...@dh...>=20 =20 DH Innovations, LLC Post Office Box 5335 | Cary, North Carolina 27512 =20 |
From: Yves M. <yme...@li...> - 2004-08-30 14:12:11
|
Edit nagios.cfg. Do you have this ? If not, update, and restart nagios: xpdfile_service_perfdata_template=3D$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$= OUTPUT$\t$SERVICESTATE$\t$PERFDATA$ I think this will do nothing anyways, when I see check_tcp output. There = is no "|" character that mean perfdata following that character. In that case, either check_tcp does not send perf data, or check_tcp is b= roken. Have you already run check_tcp in an xterm to see the output ? (check_tcp= --help for help) I have no other idea. Yves > Ben, > > running the command from shell the result is the same. I'm gonna check = with > nagios-plugins developers. > > I'm having problems with the graphs: > > All the graphs I'm obtaining are similar to this one attached. It looks= so > odd. What could be wrong? > > Another question is regarding check_tcp, that besides the odd character= s > brings perfdata but the graphs are empty (Sample Points: 0). > > Regards, > > Wilson > >> -----Original Message----- >> From: Ben Clewett [mailto:be...@cl...] >> Sent: segunda-feira, 30 de agosto de 2004 05:38 >> To: Wilson Pires Jr; per...@li... >> Subject: Re: [Perfparse-users] Cannot run db-tool update [was: nagios >> restarting] >> >> Wilson, >> >> The odd characters in the log file must come from a Nagios plugin. Tr= y >> running the command from the UNIX shell, does this give the same odd >> characters? >> >> It looks like you have a plugin which reports the binary data it finds >> on a TCP port, or something similar. This is dangerous data to return >> from a plugin. If this is the case, you may consider writing an email >> to the author asking them to escape the binary data... >> >> You can disable performance data for a plugin (somewhere?) which you m= ay >> consider for this one. >> >> Ben >> >> >> >> >> Wilson Pires Jr wrote: >> >> > Ben, >> > >> > I'm glad too! >> > >> > The server is the same. With -c option I can run the db update, but >> don't perfparse.sh, besides I have into perfparse.sh: >> > >> > BASE_DIR=3D"/usr/local/nagios" >> > >> > But, actually, I have it working by copying perfparse.cfg to >> /usr/local/etc. >> > >> > OTOH, I have a new problem. I have graphs from some plugins, but I u= se >> check_tcp on port 23 to monitor Telnet. The output format is ok (I thi= nk): >> > >> > [root@genesis bin]# cat /usr/local/nagios/var/serviceperf.log | grep >> TELNET >> > 1093635155 itb1601a TELNET TCP OK - 0.153 second respon= se >> time on port 23 [ B=C7j?@=A6+] OK t >> > ime=3D152656us;250000;400000;0;10000 >> > 1093635164 sbc1601a TELNET TCP OK - 0.051 second respon= se >> time on port 23 [ B=C7j?@=A6+] OK t >> > ime=3D50577us;250000;400000;0;10000 >> > 1093635174 bsa1721a TELNET TCP OK - 0.088 second respon= se >> time on port 23 [ B=C7j?@=A6+] OK t >> > ime=3D87626us;250000;400000;0;10000 >> > >> > Question >> > What means the odd characters into brackets? >> > >> > Problem >> > The graphs aren't generated to these services. I have graphs for >> check_ftp, http, users, cpu ... normally, but don't for tcp. >> > >> > Regards >> > >> > >> >>-----Original Message----- >> >>From: Ben Clewett [mailto:Be...@cl...] >> >>Sent: sexta-feira, 27 de agosto de 2004 13:15 >> >>To: Wilson Pires Jr >> >>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: nagio= s >> >>restarting] >> >> >> >>Wilson, >> >> >> >>Glad you have it working. Is this the same server as you run the CG= I >> >>application from PP? If so this uses the same definition of there t= o >> >>find the config file. Unlike the tools, there is no '-c' option. C= an >> >>you please check these are working as well? >> >> >> >>Regards, Ben >> >> >> >>Wilson Pires Jr wrote: >> >> >> >> >> >>>Ben, >> >>> >> >>>I've used the correct prefix. Now, I've deleted the program and don= e >> the >> >>>complete recompile. The program was regenerated: >> >>> >> >>>[root@genesis bin]# ./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 >> >>> >> >>>-rwxr-xr-x 1 root root 253547 Aug 27 11:25 perfparse-d= b- >> >> >> >>tool >> >> >> >>>but the problem persisted, it looks for the cfg file the wrong plac= e: >> >>> >> >>>[root@genesis bin]# ./perfparse-db-tool --update >> >>>Error, can't open configuation file: "//usr/local/etc/perfparse.cfg= " >> >>> >> >>>So, I've copied perfparse.cfg to /usr/local/etc and the update was >> >>>successfully performed. >> >>> >> >>>Thanks for the help. But I'm still curious about the program checki= ng >> >> >> >>the >> >> >> >>>cfg file into the wrong path... >> >>> >> >>>Regards, >> >>> >> >>>Wilson >> >>> >> >>> >> >>> >> >>> >> >>>>-----Original Message----- >> >>>>From: Ben Clewett [mailto:Be...@cl...] >> >>>>Sent: sexta-feira, 27 de agosto de 2004 11:18 >> >>>>To: Wilson Pires Jr >> >>>>Cc: per...@li... >> >>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: nag= ios >> >>>>restarting] >> >>>> >> >>>>I note the error is: >> >>>> >> >>>>Error, can't open configuration file: "//usr/local/etc/perfparse.c= fg" >> >>>> >> >>>>The file you are after is: >> >>>> >> >>>>/usr/local/nagios/etc/perfparse.cfg >> >>>> >> >>>>Are you are configuring using: --prefix=3D/usr/local/nagios ?? >> >>>> >> >>>>This should work. :( >> >>>> >> >>>>Can you try deleting the program 'perfparse-db-tool' and doing a >> >>>>complete recompile, as stated in the README? >> >>>> >> >>>>Does this regenerate this program? If you run it, does it work? >> >>>> >> >>>>Ben >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>>Wilson Pires Jr wrote: >> >>>> >> >>>> >> >>>> >> >>>>>>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. >> >>>>>> >> >>>>> >> >>>>> >> >>>>>[Wilson Pires Jr] >> >>>>>I've recompiled and reinstalled, as suggested by Paulo, and renam= ed >> and >> >>>> >> >>>>set >> >>>> >> >>>> >> >>>>>perfparse.cfg.example and perfparse.sh.example. But the problem >> remains. >> >>>> >> >>>>I >> >>>> >> >>>> >> >>>>>can't run the db update: >> >>>>> >> >>>>>[root@genesis bin]# ./perfparse-db-tool --update >> >>>>>Error, can't open configuation file: "//usr/local/etc/perfparse.c= fg" >> >>>>> >> >>>>>The files perfparse-db-tool and perfparse.cfg are owned by root, = and >> >>>>>perfparse.sh is owned by nagios. Is this correct? >> >>>>> >> >>>>>/usr/local/nagios/bin >> >>>>>-rwxr-xr-x 1 root root 250813 Aug 27 10:24 perfparse >> >>>>>-rwxr-xr-x 1 root root 1661 Jul 28 10:42 >> >>>> >> >>>>perfparse_daemon.sh >> >>>> >> >>>> >> >>>>>-rwxr-xr-x 1 root root 262873 Aug 27 10:24 perfparse= -db- >> >>>> >> >>>>purge >> >>>> >> >>>> >> >>>>>-rwxr-xr-x 1 root root 253547 Aug 27 10:24 perfparse= -db- >> >>>> >> >>>>tool >> >>>> >> >>>> >> >>>>>-rwxr-xr-x 1 nagios nagios 252518 Jul 19 16:59 perfparse= - >> >>>> >> >>>>install-db >> >>>> >> >>>> >> >>>>>-rwxr-xr-x 1 nagios nagios 259533 Jul 19 16:59 perfparse= - >> >> >> >>purge- >> >> >> >>>>db >> >>>> >> >>>> >> >>>>>-rwxr-xr-x 1 nagios nagios 1326 Aug 27 10:32 perfparse= .sh >> >>>>> >> >>>>>/usr/local/nagios/etc >> >>>>>[root@genesis etc]# ls -la perfparse.cfg* >> >>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:58 perfparse= .cfg >> >>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:24 >> >>>>>perfparse.cfg.example >> >>>>> >> >>>>>As you can see I've tried to run the update as root. What is my >> mistake? >> >>>> >> >>>>Now >> >>>> >> >>>> >> >>>>>I can't see the pp web page: >> >>>>> >> >>>>>Error message: >> >>>>>malformed header from script. Bad header=3D<pre>: perfgraph= .cgi >> >>>>> >> >>>>>Regarding the nagios restarting and stopping checks problems, the= y >> >> >> >>seems >> >> >> >>>>to >> >>>> >> >>>> >> >>>>>be solved. I've changed the use_retained_program_state from 0 to = 1 >> and >> >>>> >> >>>>my >> >>>> >> >>>> >> >>>>>nagios is checking around 16 hours :-))) >> >>>>> >> >>>>> >> >>>>> >> >>>>> >> >>>>> >> >>>>>>Paulo Afonso Graner Fessel wrote: >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>> >> >>>>>>>Recompile perfparse according to the instructions: >> >>>>>>> >> >>>>>>>./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 >> >>>>>>> >> >>>>>>>(Of course, I'm assuming that you've got nagios in >> /usr/local/nagios.) >> >>>>>>> >> >>>>>>>This way, perfparse.cfg will be installed at /usr/local/nagios/= etc. >> >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>> >> >>>>>>>>>You should upgrade to 0.99.09. It may or may not help with >> >>>>>>>> >> >>>>>>>>this issue, >> >>>>>>>> >> >>>>>>>> >> >>>>>>>> >> >>>>>>>>>but there are a couple of other bugfixes/enhancements >> >>>>>>>> >> >>>>>>>>available in the >> >>>>>>>> >> >>>>>>>> >> >>>>>>>> >> >>>>>>>>>latest version. And don't forget to run >> >>>>>>>>>'/<path_to>/nagios/bin/perfparse-db-tool --update' after >> >>>>>>>> >> >>>>>>>>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 >> >>>>>>>>mistake am I doing? >> >>>>>>>> >> >>>>>>>> >> >>>>> >> >>>>> >> >>> >> >>> >> >>> >> >>> >> >>>------------------------------------------------------- >> >>>This SF.Net email is sponsored by BEA Weblogic Workshop >> >>>FREE Java Enterprise J2EE developer tools! >> >>>Get your free copy of BEA WebLogic Workshop 8.1 today. >> >>>http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick >> >>>_______________________________________________ >> >>>Perfparse-users mailing list >> >>>Per...@li... >> >>>https://lists.sourceforge.net/lists/listinfo/perfparse-users >> >>> >> > >> > >> > >> > >> > > > --=20 - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - GTKtalog - http://www.nongnu.org/gtktalog/ - |
From: Wilson P. J. <wp....@te...> - 2004-08-30 13:55:34
|
Ben, running the command from shell the result is the same. I'm gonna check = with nagios-plugins developers. I'm having problems with the graphs: All the graphs I'm obtaining are similar to this one attached. It looks = so odd. What could be wrong? Another question is regarding check_tcp, that besides the odd characters brings perfdata but the graphs are empty (Sample Points: 0). Regards, Wilson=20 > -----Original Message----- > From: Ben Clewett [mailto:be...@cl...] > Sent: segunda-feira, 30 de agosto de 2004 05:38 > To: Wilson Pires Jr; per...@li... > Subject: Re: [Perfparse-users] Cannot run db-tool update [was: nagios > restarting] >=20 > Wilson, >=20 > The odd characters in the log file must come from a Nagios plugin. = Try > running the command from the UNIX shell, does this give the same odd > characters? >=20 > It looks like you have a plugin which reports the binary data it finds > on a TCP port, or something similar. This is dangerous data to return > from a plugin. If this is the case, you may consider writing an email > to the author asking them to escape the binary data... >=20 > You can disable performance data for a plugin (somewhere?) which you = may > consider for this one. >=20 > Ben >=20 >=20 >=20 >=20 > Wilson Pires Jr wrote: >=20 > > Ben, > > > > I'm glad too! > > > > The server is the same. With -c option I can run the db update, but > don't perfparse.sh, besides I have into perfparse.sh: > > > > BASE_DIR=3D"/usr/local/nagios" > > > > But, actually, I have it working by copying perfparse.cfg to > /usr/local/etc. > > > > OTOH, I have a new problem. I have graphs from some plugins, but I = use > check_tcp on port 23 to monitor Telnet. The output format is ok (I = think): > > > > [root@genesis bin]# cat /usr/local/nagios/var/serviceperf.log | grep > TELNET > > 1093635155 itb1601a TELNET TCP OK - 0.153 second = response > time on port 23 [ B=C7j?@=A6+] OK t > > ime=3D152656us;250000;400000;0;10000 > > 1093635164 sbc1601a TELNET TCP OK - 0.051 second = response > time on port 23 [ B=C7j?@=A6+] OK t > > ime=3D50577us;250000;400000;0;10000 > > 1093635174 bsa1721a TELNET TCP OK - 0.088 second = response > time on port 23 [ B=C7j?@=A6+] OK t > > ime=3D87626us;250000;400000;0;10000 > > > > Question > > What means the odd characters into brackets? > > > > Problem > > The graphs aren't generated to these services. I have graphs for > check_ftp, http, users, cpu ... normally, but don't for tcp. > > > > Regards > > > > > >>-----Original Message----- > >>From: Ben Clewett [mailto:Be...@cl...] > >>Sent: sexta-feira, 27 de agosto de 2004 13:15 > >>To: Wilson Pires Jr > >>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: = nagios > >>restarting] > >> > >>Wilson, > >> > >>Glad you have it working. Is this the same server as you run the = CGI > >>application from PP? If so this uses the same definition of there = to > >>find the config file. Unlike the tools, there is no '-c' option. = Can > >>you please check these are working as well? > >> > >>Regards, Ben > >> > >>Wilson Pires Jr wrote: > >> > >> > >>>Ben, > >>> > >>>I've used the correct prefix. Now, I've deleted the program and = done > the > >>>complete recompile. The program was regenerated: > >>> > >>>[root@genesis bin]# ./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 > >>> > >>>-rwxr-xr-x 1 root root 253547 Aug 27 11:25 = perfparse-db- > >> > >>tool > >> > >>>but the problem persisted, it looks for the cfg file the wrong = place: > >>> > >>>[root@genesis bin]# ./perfparse-db-tool --update > >>>Error, can't open configuation file: = "//usr/local/etc/perfparse.cfg" > >>> > >>>So, I've copied perfparse.cfg to /usr/local/etc and the update was > >>>successfully performed. > >>> > >>>Thanks for the help. But I'm still curious about the program = checking > >> > >>the > >> > >>>cfg file into the wrong path... > >>> > >>>Regards, > >>> > >>>Wilson > >>> > >>> > >>> > >>> > >>>>-----Original Message----- > >>>>From: Ben Clewett [mailto:Be...@cl...] > >>>>Sent: sexta-feira, 27 de agosto de 2004 11:18 > >>>>To: Wilson Pires Jr > >>>>Cc: per...@li... > >>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: = nagios > >>>>restarting] > >>>> > >>>>I note the error is: > >>>> > >>>>Error, can't open configuration file: = "//usr/local/etc/perfparse.cfg" > >>>> > >>>>The file you are after is: > >>>> > >>>>/usr/local/nagios/etc/perfparse.cfg > >>>> > >>>>Are you are configuring using: --prefix=3D/usr/local/nagios ?? > >>>> > >>>>This should work. :( > >>>> > >>>>Can you try deleting the program 'perfparse-db-tool' and doing a > >>>>complete recompile, as stated in the README? > >>>> > >>>>Does this regenerate this program? If you run it, does it work? > >>>> > >>>>Ben > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>Wilson Pires Jr wrote: > >>>> > >>>> > >>>> > >>>>>>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. > >>>>>> > >>>>> > >>>>> > >>>>>[Wilson Pires Jr] > >>>>>I've recompiled and reinstalled, as suggested by Paulo, and = renamed > and > >>>> > >>>>set > >>>> > >>>> > >>>>>perfparse.cfg.example and perfparse.sh.example. But the problem > remains. > >>>> > >>>>I > >>>> > >>>> > >>>>>can't run the db update: > >>>>> > >>>>>[root@genesis bin]# ./perfparse-db-tool --update > >>>>>Error, can't open configuation file: = "//usr/local/etc/perfparse.cfg" > >>>>> > >>>>>The files perfparse-db-tool and perfparse.cfg are owned by root, = and > >>>>>perfparse.sh is owned by nagios. Is this correct? > >>>>> > >>>>>/usr/local/nagios/bin > >>>>>-rwxr-xr-x 1 root root 250813 Aug 27 10:24 perfparse > >>>>>-rwxr-xr-x 1 root root 1661 Jul 28 10:42 > >>>> > >>>>perfparse_daemon.sh > >>>> > >>>> > >>>>>-rwxr-xr-x 1 root root 262873 Aug 27 10:24 = perfparse-db- > >>>> > >>>>purge > >>>> > >>>> > >>>>>-rwxr-xr-x 1 root root 253547 Aug 27 10:24 = perfparse-db- > >>>> > >>>>tool > >>>> > >>>> > >>>>>-rwxr-xr-x 1 nagios nagios 252518 Jul 19 16:59 = perfparse- > >>>> > >>>>install-db > >>>> > >>>> > >>>>>-rwxr-xr-x 1 nagios nagios 259533 Jul 19 16:59 = perfparse- > >> > >>purge- > >> > >>>>db > >>>> > >>>> > >>>>>-rwxr-xr-x 1 nagios nagios 1326 Aug 27 10:32 = perfparse.sh > >>>>> > >>>>>/usr/local/nagios/etc > >>>>>[root@genesis etc]# ls -la perfparse.cfg* > >>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:58 = perfparse.cfg > >>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:24 > >>>>>perfparse.cfg.example > >>>>> > >>>>>As you can see I've tried to run the update as root. What is my > mistake? > >>>> > >>>>Now > >>>> > >>>> > >>>>>I can't see the pp web page: > >>>>> > >>>>>Error message: > >>>>>malformed header from script. Bad header=3D<pre>: = perfgraph.cgi > >>>>> > >>>>>Regarding the nagios restarting and stopping checks problems, = they > >> > >>seems > >> > >>>>to > >>>> > >>>> > >>>>>be solved. I've changed the use_retained_program_state from 0 to = 1 > and > >>>> > >>>>my > >>>> > >>>> > >>>>>nagios is checking around 16 hours :-))) > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>Paulo Afonso Graner Fessel wrote: > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>>Recompile perfparse according to the instructions: > >>>>>>> > >>>>>>>./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 > >>>>>>> > >>>>>>>(Of course, I'm assuming that you've got nagios in > /usr/local/nagios.) > >>>>>>> > >>>>>>>This way, perfparse.cfg will be installed at = /usr/local/nagios/etc. > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>>>>You should upgrade to 0.99.09. It may or may not help with > >>>>>>>> > >>>>>>>>this issue, > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>>>but there are a couple of other bugfixes/enhancements > >>>>>>>> > >>>>>>>>available in the > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>>>latest version. And don't forget to run > >>>>>>>>>'/<path_to>/nagios/bin/perfparse-db-tool --update' after > >>>>>>>> > >>>>>>>>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 > >>>>>>>>mistake am I doing? > >>>>>>>> > >>>>>>>> > >>>>> > >>>>> > >>> > >>> > >>> > >>> > >>>------------------------------------------------------- > >>>This SF.Net email is sponsored by BEA Weblogic Workshop > >>>FREE Java Enterprise J2EE developer tools! > >>>Get your free copy of BEA WebLogic Workshop 8.1 today. > >>>http://ads.osdn.com/?ad_id=3D5047&alloc_id=3D10808&op=3Dclick > >>>_______________________________________________ > >>>Perfparse-users mailing list > >>>Per...@li... > >>>https://lists.sourceforge.net/lists/listinfo/perfparse-users > >>> > > > > > > > > > > |
From: Ben C. <be...@cl...> - 2004-08-30 08:40:26
|
James, I am glad you are making progress. Odd, these tables should be automatically created when you use the CGI deletion policy editor. Can you tell me what version you are using and whether you have used the CGI deletion policy tools? Secondly, it looks like I forgot to give you one, please enter: mysql> insert into perfdata_delete_policy values ( 'Raw Default' , '90' ) ; See if that finally fixes things! Ben James Ochs wrote: > The table was empty prior to this: > > mysql> insert into perfdata_delete_policy ( 'Always' , '90' ) ; > ERROR 1064: You have an error in your SQL syntax. Check the manual that > corresponds to your MySQL server version for the right syntax to use > near ''Always' , '90' )' at line 1 > > mysql> insert into perfdata_delete_policy values ( 'Always' , '90' ) ; > Query OK, 1 row affected (0.12 sec) > > mysql> insert into perfdata_delete_policy values ( 'Bin Default' , '90' ) ; > Query OK, 1 row affected (0.57 sec) > > mysql> select * from perfdata_delete_policy > -> ; > +-------------+---------------+ > | policy_name | delete_policy | > +-------------+---------------+ > | Always | 90 | > | Bin Default | 90 | > +-------------+---------------+ > 2 rows in set (0.00 sec) > > mysql> quit > Bye > > And now I get: > > [root@mon-01 bin]# ./perfparse-db-tool --reset_host_delete_policy mon-01 > "UPDATE perfdata_host SET raw_delete_policy_type = 'template', > bin_delete_policy_type = 'template', raw_delete_policy_name = 'Raw > Default', bin_delete_policy_name = 'Bin Default' WHERE host_name = > 'mon-01'" failed: > > Cannot add or update a child row: a foreign key constraint fails > [root@mon-01 bin]# ./perfparse-db-purge -r > "UPDATE perfdata_service SET raw_delete_policy_name = 'Raw Default' > WHERE raw_delete_policy_type = 'template' AND raw_delete_policy_name IS > NULL" failed: > > Cannot add or update a child row: a foreign key constraint fails > [root@mon-01 bin]# > > -----Original Message----- > From: Ben Clewett [mailto:Be...@cl...] > Sent: Friday, August 27, 2004 12:33 AM > To: James Ochs; 'per...@li...' > Subject: Re: [Perfparse-users] re: deletion policys > > James, > > I need some information from your MySQL. Can you start the MySQL shell > (mysql -u nagios -pnagios -D nagios) and enter: > > mysql> select * from perfdata_delete_policy; > > This should produce at least this: > > +-------------+---------------+ > | policy_name | delete_policy | > +-------------+---------------+ > | Always | 30 | > | Bin Default | 30 | > +-------------+---------------+ > > Which will have different values in the second column. > > Let me know and we can go from there. > > Ben > > > > James Ochs wrote: > > > I'm still having this issue. Does anyone know what the foreign key that > > it is referring to is? Or how to find out? Here's the latest output: > > > > > > > > [jochs@mon-01 bin]$ > > [jochs@mon-01 bin]$ ./perfparse-db-tool --update > > [jochs@mon-01 bin]$ ./perfparse-db-purge -r > > "UPDATE perfdata_service_metric SET bin_delete_policy_name = 'Bin > > Default' WHERE bin_delete_policy_type = 'template' AND > > bin_delete_policy_name IS NULL" failed: > > > > Cannot add or update a child row: a foreign key constraint fails > > [jochs@mon-01 bin]$ ./perfparse-db-purge --show_config > > DB_User = "nagios" > > DB_Name = "nagios" > > DB_Pass = "n4g10s" > > DB_Host = "127.0.0.1" > > Drop_File = "/tmp/perfparse.drop" > > Service_Log = "/usr/local/nagios/var/serviceperf.log" > > Host_Log = "/usr/local/nagios/var/hostperf.log" > > Dummy_Hostname = "dummy" > > Delete_Service_Log = "No" > > Delete_Host_Log = "No" > > Nagios_Lock = "/usr/local/nagios/var/nagios.lock" > > Lock_File = "/var/lock/perfparse.lock" > > Be_Silent = "no" > > Do_Report = "no" > > Accept_Odd_Chars_in_Label = "no" > > Default_user_permissions_Policy = "rw" > > Default_user_permissions_Host_groups = "rw" > > [jochs@mon-01 bin]$ > > > > -----Original Message----- > > From: Tim Brazil [mailto:br...@se...] > > Sent: Wednesday, August 25, 2004 2:43 PM > > To: James Ochs > > Cc: per...@li... > > Subject: Re: [Perfparse-users] re: deletion policys > > > > Hi James > > > > The only other thing I did was changed to the newer sample version > > perfparse.cfg. > > > > Here are some thoughts... > > Did you see any "upgrade" output from ./perfparse-db-tool --update when > > you ran it indicating something actually happened? > > Is the binary from perfparse-db-tool the new one that was built with > > 0.99.09. > > I initially didn't "configure" correctly which "make install"ed > > perfparse-db-tool to the wrong directory (/usr/local/bin) which left > > the older version of perfparse-db-tool in place under > > /usr/local/nagios/bin > > > > Tim > > > > James Ochs wrote: > > > > > Upgrading to 0.99.09 didn't fix this problem for me. Nor did running > > > perfparse-db-tool --update. > > > > > > James > > > > > > -----Original Message----- > > > From: Tim Brazil [mailto:br...@se...] > > > Sent: Wednesday, August 25, 2004 1:39 PM > > > Cc: per...@li... > > > Subject: Re: [Perfparse-users] re: deletion policys > > > > > > Thanks Garry > > > I updated to 0.99.09, ran ./perfparse-db-tool --update and it > fixed my > > > problem. > > > > > > Tim > > > > > > Cook, Garry wrote: > > > > > > >per...@li... wrote: > > > > > > > > > > > >>I have been watching this post becasue I too am experiencing this > > > >>problem. It's been about 1 month since I've started collection > > > >>performance statistics and I'd like to do some cleanup. I > > > >>cannot create > > > >>deletion policies due to the "Cannot add or update a child row: a > > > >>foreign key constraint fails" error. > > > >>Any ideas on how to rectify this. I also ran the > ./perfparse-db-tool > > > >>--update to see whether it would correct the problem. It > > > >>didn't change > > > >>anything. I have Version 0.99.05. Schema Version 0.12 > > > >> > > > >>Thanks in advance > > > >>Tim > > > >> > > > >> > > > > > > > >I believe that this bug was fixed in Version 0.99.08, but it > might have > > > >been 0.99.09. Either way, you should definitely be using the latest > > > >stable version -> 0.99.09. > > > >I thought that I saw someone else post about this issue and say that > > the > > > >version upgrade did not fix it for them. However, they did not > mention > > > >if they ran 'perfparse-db-tool --update' after upgrading PerfParse. > > > > > > > >Everyone needs to realize something very important: > > > >With new versions, there are changes to the PerfParse code and there > > are > > > >sometimes changes made to the MySQL DB as well. You need to use the > > > >perfparse-db-tool to update your DB with each upgrade. This tool > > will be > > > >installed in your '<path_to>/nagios/bin/' directory, run it with the > > > >'--update' argument to ensure that DB changes are made properly. > > > > > > > >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 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 > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > |
From: Ben C. <be...@cl...> - 2004-08-30 08:37:37
|
Wilson, The odd characters in the log file must come from a Nagios plugin. Try running the command from the UNIX shell, does this give the same odd characters? It looks like you have a plugin which reports the binary data it finds on a TCP port, or something similar. This is dangerous data to return from a plugin. If this is the case, you may consider writing an email to the author asking them to escape the binary data... You can disable performance data for a plugin (somewhere?) which you may consider for this one. Ben Wilson Pires Jr wrote: > Ben, > > I'm glad too! > > The server is the same. With -c option I can run the db update, but don't perfparse.sh, besides I have into perfparse.sh: > > BASE_DIR="/usr/local/nagios" > > But, actually, I have it working by copying perfparse.cfg to /usr/local/etc. > > OTOH, I have a new problem. I have graphs from some plugins, but I use check_tcp on port 23 to monitor Telnet. The output format is ok (I think): > > [root@genesis bin]# cat /usr/local/nagios/var/serviceperf.log | grep TELNET > 1093635155 itb1601a TELNET TCP OK - 0.153 second response time on port 23 [ BÇj☺@░╝] OK t > ime=152656us;250000;400000;0;10000 > 1093635164 sbc1601a TELNET TCP OK - 0.051 second response time on port 23 [ BÇj☺@░╝] OK t > ime=50577us;250000;400000;0;10000 > 1093635174 bsa1721a TELNET TCP OK - 0.088 second response time on port 23 [ BÇj☺@░╝] OK t > ime=87626us;250000;400000;0;10000 > > Question > What means the odd characters into brackets? > > Problem > The graphs aren't generated to these services. I have graphs for check_ftp, http, users, cpu ... normally, but don't for tcp. > > Regards > > >>-----Original Message----- >>From: Ben Clewett [mailto:Be...@cl...] >>Sent: sexta-feira, 27 de agosto de 2004 13:15 >>To: Wilson Pires Jr >>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: nagios >>restarting] >> >>Wilson, >> >>Glad you have it working. Is this the same server as you run the CGI >>application from PP? If so this uses the same definition of there to >>find the config file. Unlike the tools, there is no '-c' option. Can >>you please check these are working as well? >> >>Regards, Ben >> >>Wilson Pires Jr wrote: >> >> >>>Ben, >>> >>>I've used the correct prefix. Now, I've deleted the program and done the >>>complete recompile. The program was regenerated: >>> >>>[root@genesis bin]# ./configure --prefix=/usr/local/nagios >>>--with-imagedir=/usr/local/nagios/share/images/ --with-cgidir >>>=/usr/local/nagios/sbin --with-http_image_path=/nagios/images >>> >>>-rwxr-xr-x 1 root root 253547 Aug 27 11:25 perfparse-db- >> >>tool >> >>>but the problem persisted, it looks for the cfg file the wrong place: >>> >>>[root@genesis bin]# ./perfparse-db-tool --update >>>Error, can't open configuation file: "//usr/local/etc/perfparse.cfg" >>> >>>So, I've copied perfparse.cfg to /usr/local/etc and the update was >>>successfully performed. >>> >>>Thanks for the help. But I'm still curious about the program checking >> >>the >> >>>cfg file into the wrong path... >>> >>>Regards, >>> >>>Wilson >>> >>> >>> >>> >>>>-----Original Message----- >>>>From: Ben Clewett [mailto:Be...@cl...] >>>>Sent: sexta-feira, 27 de agosto de 2004 11:18 >>>>To: Wilson Pires Jr >>>>Cc: per...@li... >>>>Subject: Re: [Perfparse-users] Cannot run db-tool update [was: nagios >>>>restarting] >>>> >>>>I note the error is: >>>> >>>>Error, can't open configuration file: "//usr/local/etc/perfparse.cfg" >>>> >>>>The file you are after is: >>>> >>>>/usr/local/nagios/etc/perfparse.cfg >>>> >>>>Are you are configuring using: --prefix=/usr/local/nagios ?? >>>> >>>>This should work. :( >>>> >>>>Can you try deleting the program 'perfparse-db-tool' and doing a >>>>complete recompile, as stated in the README? >>>> >>>>Does this regenerate this program? If you run it, does it work? >>>> >>>>Ben >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>Wilson Pires Jr wrote: >>>> >>>> >>>> >>>>>>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. >>>>>> >>>>> >>>>> >>>>>[Wilson Pires Jr] >>>>>I've recompiled and reinstalled, as suggested by Paulo, and renamed and >>>> >>>>set >>>> >>>> >>>>>perfparse.cfg.example and perfparse.sh.example. But the problem remains. >>>> >>>>I >>>> >>>> >>>>>can't run the db update: >>>>> >>>>>[root@genesis bin]# ./perfparse-db-tool --update >>>>>Error, can't open configuation file: "//usr/local/etc/perfparse.cfg" >>>>> >>>>>The files perfparse-db-tool and perfparse.cfg are owned by root, and >>>>>perfparse.sh is owned by nagios. Is this correct? >>>>> >>>>>/usr/local/nagios/bin >>>>>-rwxr-xr-x 1 root root 250813 Aug 27 10:24 perfparse >>>>>-rwxr-xr-x 1 root root 1661 Jul 28 10:42 >>>> >>>>perfparse_daemon.sh >>>> >>>> >>>>>-rwxr-xr-x 1 root root 262873 Aug 27 10:24 perfparse-db- >>>> >>>>purge >>>> >>>> >>>>>-rwxr-xr-x 1 root root 253547 Aug 27 10:24 perfparse-db- >>>> >>>>tool >>>> >>>> >>>>>-rwxr-xr-x 1 nagios nagios 252518 Jul 19 16:59 perfparse- >>>> >>>>install-db >>>> >>>> >>>>>-rwxr-xr-x 1 nagios nagios 259533 Jul 19 16:59 perfparse- >> >>purge- >> >>>>db >>>> >>>> >>>>>-rwxr-xr-x 1 nagios nagios 1326 Aug 27 10:32 perfparse.sh >>>>> >>>>>/usr/local/nagios/etc >>>>>[root@genesis etc]# ls -la perfparse.cfg* >>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:58 perfparse.cfg >>>>>-rw-r--r-- 1 root root 1303 Aug 27 10:24 >>>>>perfparse.cfg.example >>>>> >>>>>As you can see I've tried to run the update as root. What is my mistake? >>>> >>>>Now >>>> >>>> >>>>>I can't see the pp web page: >>>>> >>>>>Error message: >>>>>malformed header from script. Bad header=<pre>: perfgraph.cgi >>>>> >>>>>Regarding the nagios restarting and stopping checks problems, they >> >>seems >> >>>>to >>>> >>>> >>>>>be solved. I've changed the use_retained_program_state from 0 to 1 and >>>> >>>>my >>>> >>>> >>>>>nagios is checking around 16 hours :-))) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Paulo Afonso Graner Fessel wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Recompile perfparse according to the instructions: >>>>>>> >>>>>>>./configure \ >>>>>>> --prefix=/usr/local/nagios \ >>>>>>> --with-imagedir=/usr/local/nagios/share/images/ \ >>>>>>> --with-cgidir=/usr/local/nagios/sbin \ >>>>>>> --with-http_image_path=/nagios/images >>>>>>> >>>>>>>(Of course, I'm assuming that you've got nagios in /usr/local/nagios.) >>>>>>> >>>>>>>This way, perfparse.cfg will be installed at /usr/local/nagios/etc. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>>You should upgrade to 0.99.09. It may or may not help with >>>>>>>> >>>>>>>>this issue, >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>but there are a couple of other bugfixes/enhancements >>>>>>>> >>>>>>>>available in the >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>latest version. And don't forget to run >>>>>>>>>'/<path_to>/nagios/bin/perfparse-db-tool --update' after >>>>>>>> >>>>>>>>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 >>>>>>>>mistake am I doing? >>>>>>>> >>>>>>>> >>>>> >>>>> >>> >>> >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by BEA Weblogic Workshop >>>FREE Java Enterprise J2EE developer tools! >>>Get your free copy of BEA WebLogic Workshop 8.1 today. >>>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>>_______________________________________________ >>>Perfparse-users mailing list >>>Per...@li... >>>https://lists.sourceforge.net/lists/listinfo/perfparse-users >>> > > > > > |
From: Ben C. <be...@cl...> - 2004-08-30 08:21:04
|
This is fixed for the next version. Ben Cook, Garry wrote: > per...@li... wrote: > >>Hello >>I'm having a small problem with perfmon >>I've followed the instructions on >>http://perfparse.sourceforge.net/docs.php >>to the letter... >> >>I've set up the crontab job as: >># Run PerfParse every 15 minutes to update Nagios graphs. >>15 * * * * /usr/local/nagios/bin/perfparse.sh > > > So far, so good. > > > >>but all I get is the following and no data is building upp in the DB. >>why ? what ? why???? >> >>[nagios@black148 nagios]$ /usr/local/nagios/bin/perfparse.sh >>/usr/local/nagios/bin/perfparse: >>Please use --delete-service-log instead of --delete > > > I think there is still an error (bug) in the perfparse.sh file. > Hopefully this will be fixed in the next version (Ben?). Please edit > perfparse.sh and change --delete to --delete-service-log. Alternatively, > you could just remove the '--delete' option altogether, and PerfParse > should use what you've set in perfparse.cfg. > > > >>Usage: >>/usr/local/nagios/bin/perfparse [[-U | --user] user] [[-P | >>--password] password] >> [[-D | --database] database] [-H database_host] >> [[-c | --config-file] config_file_name] [-n no_of_lines] [-s] >> [-l logfile] [-n no_of_lines] [-s] >> [--serviceperf-log logfile] [--delete-service-log] >> [--host-log logfile] [--delete-host-log] >> [-r | --report] [--no-raw] [--del-old n] >> [-v | --version] [-h | --help] >> >> -U -P -D -H Database Parameters. >> -l Short option for --serviceperf-log >> --serviceperf-log Location of the serviceperf.log file. >> --host-log Location of the serviceperf.log file. >> --delete-service-log Truncate log file to zero >>length on exit. >> --delete-host-log Truncate log file to zero >>length on exit. >> ** Need the location of nagios.lock in >>the config >>file ** >> -n Parse only n lines, then stop. >> --no-raw Do not log the raw data. Not used by perfparse. >> This containes the original message from plugin. >> --del-old n Delete data from database more than n days old. >> -s Silent. Do not display progress. >> -r --report Displays a report of activity on exit. >> >> -v --version Print version and exit. >> -h --help Print this help exit. >> >>Using default configuration file >>'//usr/local/nagios/etc/perfparse.cfg' >>/usr/local/nagios/bin/perfparse --show_config Show the configuration > > > Garry W. Cook, CCNA > Network Infrastructure Manager > MACTEC, Inc. - http://www.mactec.com/ > 303.308.6228 (Office) - 720.220.1862 (Mobile) > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_idP47&alloc_id808&opÌk > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users > |
From: Arnar T. <ar...@ca...> - 2004-08-29 08:37:30
|
ok I changed part in perfparse.sh from --delete to --delete-service-log. But I still dont get anything in the DB. When I run /usr/local/nagios/bin/perfparse -r binary manually I get no output to screen, Is that normal ? Also when I do perfpase --help there is that line at the bottom that says: ...snip... Using default configuration file '//usr/local/nagios/etc/perfparse.cfg' That extra 'slash' there at the begining of the path... is that suppost to be there ? Here is the output from perfparse --show_config if that helps: [nagios@black148 var]$ /usr/local/nagios/bin/perfparse --show_config DB_User =3D "perfmon" DB_Name =3D "perfmon" DB_Pass =3D "perfmon123" DB_Host =3D "localhost" Drop_File =3D "/tmp/perfparse.drop" Service_Log =3D "/usr/local/nagios/var/serviceperf.log" Host_Log =3D "/usr/local/nagios/var/hostperf.log" Dummy_Hostname =3D "dummy" Delete_Service_Log =3D "No" Delete_Host_Log =3D "No" Nagios_Lock =3D "/usr/local/nagios/var/nagios.lock" Lock_File =3D "/var/lock/perfparse.lock" Be_Silent =3D "no" Do_Report =3D "no" Accept_Odd_Chars_in_Label =3D "no" Default_user_permissions_Policy =3D "rw" Default_user_permissions_Host_groups =3D "rw" On Fri, 2004-08-27 at 19:09, Cook, Garry wrote: > per...@li... wrote: > > Hello > > I'm having a small problem with perfmon > > I've followed the instructions on > > http://perfparse.sourceforge.net/docs.php > > to the letter... > >=20 > > I've set up the crontab job as: > > # Run PerfParse every 15 minutes to update Nagios graphs. > > 15 * * * * /usr/local/nagios/bin/perfparse.sh >=20 > So far, so good. >=20 >=20 > > but all I get is the following and no data is building upp in the DB. > > why ? what ? why????=20 > >=20 > > [nagios@black148 nagios]$ /usr/local/nagios/bin/perfparse.sh > > /usr/local/nagios/bin/perfparse: > > Please use --delete-service-log instead of --delete >=20 > I think there is still an error (bug) in the perfparse.sh file. > Hopefully this will be fixed in the next version (Ben?). Please edit > perfparse.sh and change --delete to --delete-service-log. Alternatively= , > you could just remove the '--delete' option altogether, and PerfParse > should use what you've set in perfparse.cfg. >=20 >=20 > > Usage: > > /usr/local/nagios/bin/perfparse [[-U | --user] user] [[-P | > > --password] password] > > [[-D | --database] database] [-H database_host] > > [[-c | --config-file] config_file_name] [-n no_of_lines] [-s] > > [-l logfile] [-n no_of_lines] [-s] > > [--serviceperf-log logfile] [--delete-service-log] > > [--host-log logfile] [--delete-host-log] > > [-r | --report] [--no-raw] [--del-old n] > > [-v | --version] [-h | --help] > >=20 > > -U -P -D -H Database Parameters. > > -l Short option for --serviceperf-log > > --serviceperf-log Location of the serviceperf.log file. > > --host-log Location of the serviceperf.log file. > > --delete-service-log Truncate log file to zero > > length on exit. > > --delete-host-log Truncate log file to zero > > length on exit. > > ** Need the location of nagios.lock in > > the config > > file ** > > -n Parse only n lines, then stop. > > --no-raw Do not log the raw data. Not used by perfparse. > > This containes the original message from plugin. > > --del-old n Delete data from database more than n days old. > > -s Silent. Do not display progress. > > -r --report Displays a report of activity on exit. > >=20 > > -v --version Print version and exit. > > -h --help Print this help exit. > >=20 > > Using default configuration file > > '//usr/local/nagios/etc/perfparse.cfg' > > /usr/local/nagios/bin/perfparse --show_config Show the configuration >=20 > Garry W. Cook, CCNA > Network Infrastructure Manager > MACTEC, Inc. - http://www.mactec.com/ > 303.308.6228 (Office) - 720.220.1862 (Mobile) >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_idP47&alloc_id=10808&op=C3=8Ck > _______________________________________________ > Perfparse-users mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-users --=20 Regards Arnar Thorarinsson Software Programmer / System Administrator Systems Department, Air Traffic Services Phone : +354 569 4289 ------------------------------------------ Icelandic Civil Aviation Administration Reykjavik Airport IS 121 Reykjavik Iceland http://www.caa.is ------------------------------------------ |