From: Tim W. <tim...@pi...> - 2004-09-14 09:07:25
|
All, I've seen it a couple of times on the mailing list, and now it's happening to me... The perfparse-db-tool does not do anything. I've just compiled perfparse on a new machine (hint: could you please add a list of necessary libraries to the docs :) ), installed the db schema with the create script. Next I'm running the db-tool with the --update option. No output whatsoever. There is nothing in the database (I would have exepected the db update to enter things in the perfdata_state table). Did some investigating: - when db-tool checks the version, it returns the CURRENT version if the perfdata_state table is empty. So the db-tool thinks all is fine, and does nothing (a little output in the style 'db is up to date' might come in handy!) - when you run perfparse for the first time, it complains about the db version NOT being correct. Before checking the version, Perfparse writes a new record to the perfdata_state table, which sets the version field to 0! - run the db-tool again. And now it DOES update the database, because the version is 0, not an empty row. Problem solved :) Happy Perf-parsing, Tim |