From: Cook, G. <GW...@ma...> - 2004-08-27 19:09:21
|
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 So far, so good. > 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 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] >=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 Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) |