only log thresholds to syslog when trigger is reached

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
ubik
Posts: 6
Joined: Fri Oct 30, 2009 4:41 am

only log thresholds to syslog when trigger is reached

Post by ubik »

Hello threshold developers

I am using thresholdplugin and i want to say thanks for this great plugin.
It really works well. I am logging my thresholds to syslog and send snmp traps with another script, that looks in that specific syslog file.
The Problem is, that thold is logging all the thold breaches to syslog, not only the ones that are alerted with email too. In the settings tab, there is an option to disable the logging of breaches to cacti log.
Is there a way to disable the logging of threshold breaches to syslog.
I only want to send snmptraps, when an email is sent.

I looked into the php-code, but i am not sure where to hack.
it should be somewhere in the thold_check_threshold function.
in this function there are the email send functions called.

Could someone tell me where exaclty the breaches are logged into syslog.
Then i could just do an if(read_config_option('thold_log_cacti') == "on") before.
If there is another solution without changing the php-code, would be great too.

thanks in advance

ubik
mstbone67a
Posts: 28
Joined: Mon Sep 21, 2009 9:31 am

Post by mstbone67a »

bit old.. but I am trying to find also..

I have cacti sending email alerts but when i check the syslogging I do not see anything in my syslog-ng messages file.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests