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 > >>> > > > > > > > > > > |