help with syslog email alerts

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

DrivesMeCrazy
Posts: 30
Joined: Sat Apr 28, 2007 3:57 am

Post by DrivesMeCrazy »

pepj wrote:Hi

I think I have found the problem for some of people like me. Instead to insert the trap in the syslog_incoming table we have insert it directly in the syslog .....
I will update my "syslogupd" in order to fill the incoming table (in few days).
Hey pepj,

I think its correct to log the entries into syslog table.
The logic should be:
When you receive a syslog, you will logged all into syslog table.
On top of that you will check against the syslog_alert table whether current syslog messages match any entries.
If yes, then write into syslog_incoming.
But exactly how haloe picked up from syslog_incoming table I have no idea.

Just my 2 cents. :D
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

DrivesMeCrazy wrote:I think its correct to log the entries into syslog table.
The logic should be:
When you receive a syslog, you will logged all into syslog table.
On top of that you will check against the syslog_alert table whether current syslog messages match any entries.
If yes, then write into syslog_incoming.
But exactly how haloe picked up from syslog_incoming table I have no idea.
No I have seen Haloe look at the syslog_incomming to check the alarms and rules(to delete) and after copy the the raimaining good traps to the syslog. (process.php file)
I will try this week-end ...
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
User avatar
TheWitness
Developer
Posts: 17057
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Jean-Michel,

This is the correct behavior.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

For people using my syslogupd or using text-trap-files to fill the SQL-haloe-DB, I have done some changes to function correctly with Haloe-Email and alerts.

URL=http://forums.cacti.net/post-108332.html#108332

(For the problem with the smtp class either wait for the new Haloe version or do the proposed changes in the posts before. )
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests