Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[SOLVED] Weathermap v0.94 is a little bit to chatty

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
browniebraun
Cacti User


Joined: 13 Jun 2006
Posts: 329
Location: Cologne, Germany

PostPosted: Thu Nov 29, 2007 3:46 am    Post subject: [SOLVED] Weathermap v0.94 is a little bit to chatty Reply with quote

Hi Howie!

We (Frizz and me) have made an upgrade from v0.6 to v0.94 on our new cacti server. Everything works fine, but weathermaps writes many, many logs (~100 Lines) with every polling cycle although "Quiet logging" is set to "Quiet". The poller logging level is set to "Low...", poller warnings and errors are enabled.
Any hints?

Best regards
-Andreas-



weathermap_logs.PNG
 Description:
 Filesize:  19.82 KB
 Viewed:  851 Time(s)

weathermap_logs.PNG


Back to top
browniebraun
Cacti User


Joined: 13 Jun 2006
Posts: 329
Location: Cologne, Germany

PostPosted: Thu Nov 29, 2007 4:16 am    Post subject: Reply with quote

Okay,
I modified function "weathermap_poller_output" to get it more silent.

Added at line 314:
Code:

$quietlogging = read_config_option("weathermap_quiet_logging");
if($quietlogging==0)
cacti_log("***********  ...


... and at line 372
Code:

if($quietlogging==0)
cacti_log("poller_output done\n*** ...
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Thu Nov 29, 2007 9:25 am    Post subject: Reply with quote

Yep - forgot to remove some debugging code.

This is already fixed in 0.941 (coming in next few days to address a couple of issues)
Back to top
llow
Cacti User


Joined: 05 Oct 2007
Posts: 88

PostPosted: Mon Dec 03, 2007 2:25 pm    Post subject: Reply with quote

Should probably add

if (read_config_option("log_verbosity") == POLLER_VERBOSITY_MEDIUM) in setup.php before cacti_log for "Got one" near line 327.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group