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 |