[solved] How To disable Treshold Log to cacti.log ?

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
neox01
Posts: 34
Joined: Thu Nov 24, 2011 2:50 am
Location: Germany

[solved] How To disable Treshold Log to cacti.log ?

Post by neox01 »

Hello,

I have configured a lot of Tresholds in Thold and I don't want Thold to log every check to the global cacti logfile (log/cacti.log):

Code: Select all

01/31/2012 11:00:17 AM - THOLD: Checking Threshold:'host - Errors - ifc42 (Slot: 1 Port: 42) [errors_in]', Graph:'123'
Is it possible to disable this behavior?

Thanks!
Last edited by neox01 on Thu Feb 02, 2012 3:31 am, edited 1 time in total.
Cacti 0.8.7i PIA 3.1 with Spine installed
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: How To disable Treshold Log to cacti.log ?

Post by noname »

Please turn off "Debug Log" in 'Settings -> Thresholds'.
neox01
Posts: 34
Joined: Thu Nov 24, 2011 2:50 am
Location: Germany

Re: How To disable Treshold Log to cacti.log ?

Post by neox01 »

Hi noname, debug is not on! I post a screenshot when I'm back in office.
Cacti 0.8.7i PIA 3.1 with Spine installed
neox01
Posts: 34
Joined: Thu Nov 24, 2011 2:50 am
Location: Germany

Re: How To disable Treshold Log to cacti.log ?

Post by neox01 »

Hello, here the screenshot from my Thold Settings. No debug mode is enabled. A solution is very important for me because the logfile increases in 24 h to ~5 GB!
Logrotate cuts and compresses the file every day but it makes it difficult to find the relevant cacti information.
Attachments
thold.jpg
thold.jpg (95.97 KiB) Viewed 3066 times
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: How To disable Treshold Log to cacti.log ?

Post by noname »

Hmm..

There is a known bug in 0.8.7i -- if once enabled checkbox in 'Settings' page, you can't disable it.
Try to apply official patch.
- http://www.cacti.net/download_patches.php?version=0.8.7i
neox01
Posts: 34
Joined: Thu Nov 24, 2011 2:50 am
Location: Germany

Re: How To disable Treshold Log to cacti.log ?

Post by neox01 »

Hi, I have had already installed the patch :-/ Maybe I must install the ReportIT again after apply the patch. I will try this out.
If that did not work I will have a look to the cacti mysql database. Perhaps I can change the value there.
neox01
Posts: 34
Joined: Thu Nov 24, 2011 2:50 am
Location: Germany

Re: How To disable Treshold Log to cacti.log ?

Post by neox01 »

Hm... "thold_log_debug" in table "settings" in the "cacti" db is set correct to "NULL" when debug checkbox is disabled. After enabling the checkbox the value is "on".
I think the cacti checkbox patch works right...
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: How To disable Treshold Log to cacti.log ?

Post by noname »

>> "thold_log_debug" in table "settings" in the "cacti" db is set correct to "NULL" when debug checkbox is disabled.

Well, then..
Don't you add "-d" or "--debug" option to poller.php in crontab?
neox01
Posts: 34
Joined: Thu Nov 24, 2011 2:50 am
Location: Germany

Re: How To disable Treshold Log to cacti.log ?

Post by neox01 »

embarrassing... That was the problem! :oops: Thanks a lot for your help, noname!!
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: [solved] How To disable Treshold Log to cacti.log ?

Post by noname »

Wow, I'm very glad to hear that :D
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests