From: Ben C. <BCl...@pe...> - 2004-11-25 09:13:15
|
Hi Barry, Sorry to hear things are not working so well for you. I have moved this posing to perfparse-users where more users may be able to help you identify this problem. One reason I can think of it that the script is doing something, it's just taking a long time. I guess you are using Method 1 described in: http://perfparse.sourceforge.net/docs.php#id265256 Can you extract the perfparse command from the perfparse.sh and try running it manually with the -s and -r flags. This will be something like: $ /usr/local/nagios/bin/perfparse-log2db -s -r Can you tell me what is returned? Ben barry maclean wrote: > I'm trying to use perfparse with nagios 1.2 on redhat enterprise 3 without great success. > > When I try and run the script perfparse.sh I get the following error. > > [root@localhost bin]# ./perfparse.sh > Error_Log undefined in /usr/local/nagios/etc/perfparse.cfg > Cannot continue > [root@localhost bin]# > > I then create a perfparse.log and path it in the perfparse.cfg when the script just hangs and doesn't do anything. > > Help > > Thanks Barry > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Perfparse-devel mailing list > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perfparse-devel > |
From: barry m. <bar...@sh...> - 2004-11-25 16:46:03
|
When I try and run the command [root@localhost etc]# /usr/local/nagios/bin/perfparse-log2db -s -r No position mark path was specified. Either disable saving the position or specify a mark path. [root@localhost etc]# I also have the error_log defined in the .cfg see below # Error handling : Error_Log = "/usr/local/nagios/var/perfparse.log" Error_Log_Rotate = "Yes" Drop_File = "/tmp/perfparse.drop" Drop_File_Rotate = "Yes" I have left the script running overnight. Is there anyway I can enable debugging?? Many thanks for all your help. Barry ----- Original Message ----- From: Ben Clewett <BCl...@pe...> Date: Thursday, November 25, 2004 2:13 am Subject: Re: [Perfparse-devel] perfparse.sh problems > Hi Barry, > > Sorry to hear things are not working so well for you. I have > moved this > posing to perfparse-users where more users may be able to help you > identify this problem. > > One reason I can think of it that the script is doing something, > it's > just taking a long time. I guess you are using Method 1 described in: > > http://perfparse.sourceforge.net/docs.php#id265256 > > Can you extract the perfparse command from the perfparse.sh and > try > running it manually with the -s and -r flags. This will be > something like: > > $ /usr/local/nagios/bin/perfparse-log2db -s -r > > Can you tell me what is returned? > > Ben > > > barry maclean wrote: > > > I'm trying to use perfparse with nagios 1.2 on redhat enterprise > 3 without great success. > > > > When I try and run the script perfparse.sh I get the following > error.> > > [root@localhost bin]# ./perfparse.sh > > Error_Log undefined in /usr/local/nagios/etc/perfparse.cfg > > Cannot continue > > [root@localhost bin]# > > > > I then create a perfparse.log and path it in the perfparse.cfg > when the script just hangs and doesn't do anything. > > > > Help > > > > Thanks Barry > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from > real users. > > Discover which products truly live up to the hype. Start reading > now. > > http://productguide.itmanagersjournal.com/ > > _______________________________________________ > > Perfparse-devel mailing list > > Per...@li... > > https://lists.sourceforge.net/lists/listinfo/perfparse-devel > > > > |
From: Ben C. <BCl...@pe...> - 2004-11-25 17:06:12
|
Hi Barry. You must specify a mark path in order for the script to run. Eg: Service_Log_Position_Mark_Path = "/usr/local/nagios/etc/" I do not know why your script is not running. When you run perfparse-log2db -s -r you should get an output: 00:00:01 read 14 @ 0.0 l/sec. Met 13 @ 0.93 Met/l. Drop 0. +-----------------------------+ +-----------------------------+ | Generic statistics | | | | Nb lines parsed : 14 | | Nb lines dropped : 0 | | Start date : 2004-11-25 | | Elapsed time : 00:00:01 | | Start time : 17:01:29 | | Rate : (line/sec) 14.00 | +-----------------------------+ +-----------------------------+ +-----------------------------+ +-----------------------------+ | MySQL storage statistics | | | | New Hosts : 0 | | Metric/line : 0.93 | | New Metrics : 0 | | Metrics Recorded : 13 | | New Services : 0 | | SQL Queries : 200 | +-----------------------------+ +-----------------------------+ If this is not the case something is wrong. Otherwise you may just have a very large log file. Can you tell me how many lines in your log file? Ben barry maclean wrote: > When I try and run the command > > [root@localhost etc]# /usr/local/nagios/bin/perfparse-log2db -s -r > No position mark path was specified. Either disable saving the position or specify a mark path. > [root@localhost etc]# > > I also have the error_log defined in the .cfg see below > > > > # Error handling : > Error_Log = "/usr/local/nagios/var/perfparse.log" > Error_Log_Rotate = "Yes" > Drop_File = "/tmp/perfparse.drop" > Drop_File_Rotate = "Yes" > > I have left the script running overnight. Is there anyway I can enable debugging?? > > > Many thanks for all your help. > > Barry > ----- Original Message ----- > From: Ben Clewett <BCl...@pe...> > Date: Thursday, November 25, 2004 2:13 am > Subject: Re: [Perfparse-devel] perfparse.sh problems > > >>Hi Barry, >> >>Sorry to hear things are not working so well for you. I have >>moved this >>posing to perfparse-users where more users may be able to help you >>identify this problem. >> >>One reason I can think of it that the script is doing something, >>it's >>just taking a long time. I guess you are using Method 1 described in: >> >>http://perfparse.sourceforge.net/docs.php#id265256 >> >>Can you extract the perfparse command from the perfparse.sh and >>try >>running it manually with the -s and -r flags. This will be >>something like: >> >>$ /usr/local/nagios/bin/perfparse-log2db -s -r >> >>Can you tell me what is returned? >> >>Ben >> >> >>barry maclean wrote: >> >> >>>I'm trying to use perfparse with nagios 1.2 on redhat enterprise >> >>3 without great success. >> >>>When I try and run the script perfparse.sh I get the following >> >>error.> >> >>>[root@localhost bin]# ./perfparse.sh >>>Error_Log undefined in /usr/local/nagios/etc/perfparse.cfg >>>Cannot continue >>>[root@localhost bin]# >>> >>>I then create a perfparse.log and path it in the perfparse.cfg >> >>when the script just hangs and doesn't do anything. >> >>>Help >>> >>>Thanks Barry >>> >>> >>> >>>------------------------------------------------------- >>>SF email is sponsored by - The IT Product Guide >>>Read honest & candid reviews on hundreds of IT Products from >> >>real users. >> >>>Discover which products truly live up to the hype. Start reading >> >>now. >> >>>http://productguide.itmanagersjournal.com/ >>>_______________________________________________ >>>Perfparse-devel mailing list >>>Per...@li... >>>https://lists.sourceforge.net/lists/listinfo/perfparse-devel >>> >> >> > |
From: Viljo M. <na...@ma...> - 2004-11-25 14:26:13
|
Hey, Just an idea. I once had exact same problem and the reason was, that 'Error_Log' wasn't defined in perfparse.cfg, there was some other name given for it. Or the perfparse.sh script searched for other errorlog name, don't remember exactly. HTH Viljo Ben Clewett wrote: > Hi Barry, > > Sorry to hear things are not working so well for you. I have moved this > posing to perfparse-users where more users may be able to help you > identify this problem. > > One reason I can think of it that the script is doing something, it's > just taking a long time. I guess you are using Method 1 described in: > > http://perfparse.sourceforge.net/docs.php#id265256 > > Can you extract the perfparse command from the perfparse.sh and try > running it manually with the -s and -r flags. This will be something like: > > $ /usr/local/nagios/bin/perfparse-log2db -s -r > > Can you tell me what is returned? > > Ben > > > barry maclean wrote: > >> I'm trying to use perfparse with nagios 1.2 on redhat enterprise 3 >> without great success. >> >> When I try and run the script perfparse.sh I get the following error. >> >> [root@localhost bin]# ./perfparse.sh >> Error_Log undefined in /usr/local/nagios/etc/perfparse.cfg >> Cannot continue >> [root@localhost bin]# >> >> I then create a perfparse.log and path it in the perfparse.cfg when >> the script just hangs and doesn't do anything. |