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