haloe alerts and removals not showing
Moderators: Developers, Moderators
@pepj - Thank you for your insight, it led me to the solution of colors not showing in my installation of the plugin syslog 0.5.1
Here is what I have found to solve this problem. It is not a bug in the plugin, its simply a lack of explaination of how to setup the config file.
In the config.php file are entries for colors you want to show for various types of messages showing up in your syslog DB.
In the config is the following line:
But thanks to pepj's insight, it dawned on me that my messages show a little differently like "Local0.war". So i added the following code to my config.php file:
And voila I have colors
Notice the "\" before the "." I believe this is neccessary to escape the ".".
Good luck to all.
And thank you Jimmy for all your work on Cacti/Plugins, your efforts are appreciated daily!
Here is what I have found to solve this problem. It is not a bug in the plugin, its simply a lack of explaination of how to setup the config file.
In the config.php file are entries for colors you want to show for various types of messages showing up in your syslog DB.
In the config is the following line:
Code: Select all
$syslog_colors['warn'] = 'FCF0C0';
Code: Select all
$syslog_colors['Local0\.war'] = 'FCF0C0';
Notice the "\" before the "." I believe this is neccessary to escape the ".".
Good luck to all.
And thank you Jimmy for all your work on Cacti/Plugins, your efforts are appreciated daily!
Re: news?
Sorry ....pepj wrote:With the new syslog version (you need 0.8.7 and new architecture also) I do not have e-mail problem anymore (I have no more to adapt the snmp.class and class.phpmailer) . In am using option "SMTP".zorrosam wrote:anyone has news around the mail problem for alerts?
Attention: you need also to install the new "setting-plugin" and check the setting of "Thold" & "Mail / DNS".
but i can't use the last version of syslog with 0.86j version of cacti?
i MUST upgrade to the newer version?
I remeber that i have the problem of mail with alert and removal .... and i can't visualize in the right way the new record even if there are data in db.
sam
Alerts, removals etc. not being displayed
Well I think I found what is causing the alerts and removals not to display, just don't know why...
It seems not to like the include of the global_array...
If you comment out this section begining at line 113 in syslog_remove.php:
Everything appears as it should.
Likewise for syslog_alert.php and syslog_reports.php
It seems not to like the include of the global_array...
If you comment out this section begining at line 113 in syslog_remove.php:
Code: Select all
function display_removals () {
global $colors, $sql_where, $hostfilter, $config, $types;
//if (file_exists("./include/global_arrays.php")) {
// include("./include/global_arrays.php");
//} else {
// include("./include/config_arrays.php");
//}
include('plugins/syslog/config.php');
Likewise for syslog_alert.php and syslog_reports.php
Kurowsky
... not the solution
sorry sir,
thanks for your help and application.
i have applied this settings on my code .... but syslog has the same problems with alert & removal & mail.
... sigh.....
sam
thanks for your help and application.
i have applied this settings on my code .... but syslog has the same problems with alert & removal & mail.
... sigh.....
sam
Sorry, should have posted my set-up:
Cacti Version - 0.8.7
Plugin Architecture - 1.3
Poller Type - Cactid v
Server Info - Linux 2.6.17-2-686
Web Server - Apache
PHP - 5.2.3-1+lenny1
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, mysql, gd, mysqli, PDO, pdo_mysql, snmp
MySQL - 5.0.45-Debian_1-log
RRDTool - 1.2.19
SNMP - 5.2.3
Plugins
- Global Plugin Settings (settings - v0.3)
Host Info (hostinfo - v0.2)
Update Checker (update - v0.4)
ReportIt (ReportIt - v0.5.1)
Real-time statistics (zond - v0.33)
Read-only Devices Tab (devices - v0.4)
Uptime (uptime - v0.3)
Thresholds (thold - v0.3.8)
Network Discovery (discovery - v0.8.2)
Device Tracking (mactrack - v1.1)
Syslog Monitoring (syslog - v0.5.1)
SuperLinks (superlinks - v0.7)
Kurowsky
-
- Posts: 14
- Joined: Thu Aug 31, 2006 9:22 am
Alerts & removals also not displayed
I too had this problem. Alerts and removal rules were indeed in the DB, they were just not being displayed in the Cacti Web interface. I followed kurowsky's suggestion and commented the reference to global_arrays in both syslog_alert.php and syslog_removal.php and all is well again:
function display_alertss () {
global $colors, $sql_where, $hostfilter, $config, $types;
//if (file_exists("./include/global_arrays.php")) {
// include("./include/global_arrays.php");
//} else {
// include("./include/config_arrays.php");
//}
include('plugins/syslog/config.php');
function display_removals () {
global $colors, $sql_where, $hostfilter, $config, $types;
//if (file_exists("./include/global_arrays.php")) {
// include("./include/global_arrays.php");
//} else {
// include("./include/config_arrays.php");
//}
include('plugins/syslog/config.php');
The configured alert and removal rules are now displayed.
function display_alertss () {
global $colors, $sql_where, $hostfilter, $config, $types;
//if (file_exists("./include/global_arrays.php")) {
// include("./include/global_arrays.php");
//} else {
// include("./include/config_arrays.php");
//}
include('plugins/syslog/config.php');
function display_removals () {
global $colors, $sql_where, $hostfilter, $config, $types;
//if (file_exists("./include/global_arrays.php")) {
// include("./include/global_arrays.php");
//} else {
// include("./include/config_arrays.php");
//}
include('plugins/syslog/config.php');
The configured alert and removal rules are now displayed.
problems again
... i hve done the procedure that you talked about .... but any news .... alert and removals are invisible to my cacti web interface ....
i don't understand really why ....
i have tried to upgrade my test server but i have the same problem on the new version of cacti, 0.8.7a and last version of syslog (0.5.2)
help help
i don't understand really why ....
i have tried to upgrade my test server but i have the same problem on the new version of cacti, 0.8.7a and last version of syslog (0.5.2)
help help
Syslog 0.5.2 and cacti 0.8.7a, and plugin arch 1.4.
Syslog is not populating anything.
Cacti is running on Linux Redhat 4 ES. All hosts are sending their syslog data to host no problem....but syslog/cacti is not pulling data into the syslog plugin. Just empty.
syslog db is there...and all tables seem fine.
any ideas? i have no errors in my cacti.log either.
Syslog is not populating anything.
Cacti is running on Linux Redhat 4 ES. All hosts are sending their syslog data to host no problem....but syslog/cacti is not pulling data into the syslog plugin. Just empty.
syslog db is there...and all tables seem fine.
any ideas? i have no errors in my cacti.log either.
If all else fails, rm -rf /
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
Did you edit syslog/config.php file with the correct database information?sebbs wrote:Syslog 0.5.2 and cacti 0.8.7a, and plugin arch 1.4.
Syslog is not populating anything.
Cacti is running on Linux Redhat 4 ES. All hosts are sending their syslog data to host no problem....but syslog/cacti is not pulling data into the syslog plugin. Just empty.
syslog db is there...and all tables seem fine.
any ideas? i have no errors in my cacti.log either.
Was it working before you upgraded to 5.2 or is this a fresh installation?
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
Who is online
Users browsing this forum: No registered users and 1 guest