Hi, All!
This is my first post here
So, the point is that today I decided to use cactid to gather information.
As the result, now it takes cactid 5-6 seconds (4 threads) to do everything instead of 29-31 seconds using cmd.php (4 processes).
But immediately I got one problem: cactid started writing everything to the logfile... So it was about 4 megs in an hour!.. Every hour!..
The level of versobity, that can be set in cacti, didn't help, and cactid continued logging with POLLER_VERBOSITY_HIGH.
Then I discovered the following in cactid.c:
set.verbose = POLLER_VERBOSITY_HIGH;
I surely changed HIGH to LOW and my log file is very pretty now
So, I do wonder: why is this value hard-coded in the sources?
Wouldn't it be great to make it a setting in the cactid.conf?
Thanks for reading all this.
PS I forgot to write:
Everything's from FreeBSD ports (updated today night);
cacti 0.8.6e, cactid 0.8.6.d;
everything simply installed from ports.
Logging with cactid
Moderators: Developers, Moderators
Logging with cactid
Last edited by Danil on Thu Jun 30, 2005 11:34 am, edited 1 time in total.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Saw you bug in our bug system.
TheWitness is our polling guru, he will make it right.
But the fix is to accually save the setting into the database (click save on the general settings tab). This is because cactid doesn't use the php configuration files, so it can't read the defaults, it relies on the database.
TheWitness is our polling guru, he will make it right.
But the fix is to accually save the setting into the database (click save on the general settings tab). This is because cactid doesn't use the php configuration files, so it can't read the defaults, it relies on the database.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Well, sure you're right, it will be more useful to store it right in the DBrony wrote: But the fix is to accually save the setting into the database (click save on the general settings tab). This is because cactid doesn't use the php configuration files, so it can't read the defaults, it relies on the database.
Who is online
Users browsing this forum: No registered users and 0 guests