Syslog 1.22 Possible Bugs...

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
ikorzha758
Cacti User
Posts: 164
Joined: Thu Jan 21, 2010 8:41 pm

Syslog 1.22 Possible Bugs...

Post by ikorzha758 »

Guys I have recently started using syslog 1.22 and I have identified what seems to me a 3 bugs:

On PIC 1: On Critical alerts only text wraps up, up to 3 lines even there is space to show everything in single line....
On PIC 3: Please notice that Priority is warning bug "alert color" is grey instead of yellow.
On PIC 2: When warning priority is selected for all host or specific host, there are no msgs that are showing even though there are msgs with priority level warning for the device in the database as per attached PIC 3.




Additionally I would like to point out that any changes to section: All Facilities; All Prioroties; Main Records; Columns; # on Characters and Refresh Interval results in Presets change to Custom. Such behavior is annoying to an end user since the time selections needs to be reapplied everytime the change to above is made. Is there a way to make "Custom" Selection manual instead of automatic? It would help a lot.
Attachments
Bug 3 On Critical alerts only text wraps up, up to 3 lines even there is space to show everything in single line....
Bug 3 On Critical alerts only text wraps up, up to 3 lines even there is space to show everything in single line....
Bug 3.gif (36.35 KiB) Viewed 1731 times
When warning priority is selected, there are no msgs that are showing even though there are msgs with priority level warning for the device in the database as per attached PIC 1
When warning priority is selected, there are no msgs that are showing even though there are msgs with priority level warning for the device in the database as per attached PIC 1
Bug 2.gif (14.68 KiB) Viewed 1742 times
please notice that Priority is warning bug "alert color" is grey instead of yellow.
please notice that Priority is warning bug "alert color" is grey instead of yellow.
Bug 1.gif (22.73 KiB) Viewed 1742 times
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Syslog 1.22 Possible Bugs...

Post by TheWitness »

Issue #1 is not a bug. You have set to only view 100 Characters of the message. Increase that and you will get more of the message upto 1024 bytes.

Issue #3 is likely due to a configuration change. You should dump the contents of the following table like so:

Code: Select all

mysql> select * from syslog_priorities;
+-------------+----------+---------------------+
| priority_id | priority | last_updated        |
+-------------+----------+---------------------+
|           1 | emerg    | 2011-11-27 20:25:33 |
|           2 | crit     | 2011-05-08 22:55:58 |
|           3 | alert    | 2011-05-08 22:55:58 |
|           4 | err      | 2011-05-26 20:00:31 |
|           5 | warn     | 2011-05-08 22:55:58 |
|           6 | notice   | 2011-11-29 06:30:34 |
|           7 | info     | 2011-11-29 13:25:30 |
|           8 | debug    | 2011-05-08 22:55:58 |
|           9 | other    | 2011-05-08 22:55:58 |
|          10 | warning  | 2011-10-18 19:20:33 |
+-------------+----------+---------------------+
10 rows in set (0.00 sec)
When I did mine, I found a 'new' priority level called 'warning', which should have been 'warn'. I'm thinking mybe (in my case syslog-ng changed the description from 'warn' to 'warning'... Great.. :(

This would explain Item #3 as well.

Which Syslog to MySQL tool are you using?

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?
ikorzha758
Cacti User
Posts: 164
Joined: Thu Jan 21, 2010 8:41 pm

Re: Syslog 1.22 Possible Bugs...

Post by ikorzha758 »

Just like in your case I do use syslog-ng to MySQL.. So if that is the case what is the solution to get a proper warning alerts? (I hope you not going to say rsyslog because I couldn't get it to work)....

When it comes to Issue #1 I tried to change it to 300chars which is the MAX in syslog and it still wraps to second/third line and it only wraps the critical alerts... Correction: Only events reported by MANAGE Plugin to SYSLOG wraps to 3 lines..... Is there a way to correct it? Please see attached example.


Also I would like to ask you if the "custom" feature works as designed since to me as an end user it seems awkward as described in previous post?
Attachments
Please note only events reported by MANAGE Plugin to SYSLOG wraps to 3 lines..... Is there a way to correct it?
Please note only events reported by MANAGE Plugin to SYSLOG wraps to 3 lines..... Is there a way to correct it?
Bug 4.gif (30.79 KiB) Viewed 1714 times
racingbg
Posts: 4
Joined: Tue Nov 29, 2011 8:56 am

Re: Syslog 1.22 Possible Bugs...

Post by racingbg »

ikorzha758 wrote:Additionally I would like to point out that any changes to section: All Facilities; All Prioroties; Main Records; Columns; # on Characters and Refresh Interval results in Presets change to Custom. Such behavior is annoying to an end user since the time selections needs to be reapplied everytime the change to above is made. Is there a way to make "Custom" Selection manual instead of automatic? It would help a lot.
I am also curious about that. Is there way to change the default preset? Every time when a new host is filtered, the preset is changed to "Custom" with no time ranges. Is it possible to set it to "Last Day" range for example? It would be nice... I spent some time digging the code in "syslog.php" but I was unable to figure out how to fix this.

Everything else is OK. Many thanks!
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Syslog 1.22 Possible Bugs...

Post by TheWitness »

Right now the time spans and the presets are preset and not configurable. Please update timespan_settings.php dot to resolve the other issue.
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?
racingbg
Posts: 4
Joined: Tue Nov 29, 2011 8:56 am

Re: Syslog 1.22 Possible Bugs...

Post by racingbg »

TheWitness wrote:Right now the time spans and the presets are preset and not configurable. Please update timespan_settings.php dot to resolve the other issue.
Sorry for the stupid question but how can I find it? I can't see "timespan_settings.php" in syslog plugin directory.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Syslog 1.22 Possible Bugs...

Post by TheWitness »

No, cacti lib directory
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?
racingbg
Posts: 4
Joined: Tue Nov 29, 2011 8:56 am

Re: Syslog 1.22 Possible Bugs...

Post by racingbg »

OK, here is what I did in order to fix the "custom timeshift" issue. I copied "timespan_settings.php" from cacti-0.8.7g in my newer installation (0.8.7h). Maybe it's not the best solution but it works.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Syslog 1.22 Possible Bugs...

Post by TheWitness »

Thats fine.
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?
ikorzha758
Cacti User
Posts: 164
Joined: Thu Jan 21, 2010 8:41 pm

Re: Syslog 1.22 Possible Bugs...

Post by ikorzha758 »

Excellent fix for default preset. Thanks. If I could only now get the warning alerts to work properly with syslog-ng it would be an absolute perfection :lol:
ikorzha758
Cacti User
Posts: 164
Joined: Thu Jan 21, 2010 8:41 pm

Re: Syslog 1.22 Possible Bugs...

Post by ikorzha758 »

The Witness, thank you so much for the "warning" fix. I will test it on monday once at work...
Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests