haloe alerts and removals not showing

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

lyudell
Posts: 9
Joined: Fri Sep 28, 2007 8:15 am

Post by lyudell »

I tried pepj's suggestion and now see colors; however, I've still got the "Offset not contained in string." error.

Just to clarify how this is supposed work... If I click the "!" next to an entry, what's suppose to happen? Should I be able to see a list of rules that are created?

Thanks to all.
ejensen
Cacti User
Posts: 55
Joined: Mon Jul 12, 2004 11:39 am

Post by ejensen »

@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:

Code: Select all

$syslog_colors['warn']		= 'FCF0C0';
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:

Code: Select all

$syslog_colors['Local0\.war']		= 'FCF0C0';
And voila I have colors :D
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!
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

Re: news?

Post by zorrosam »

pepj wrote:
zorrosam wrote:anyone has news around the mail problem for alerts?
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".

Attention: you need also to install the new "setting-plugin" and check the setting of "Thold" & "Mail / DNS".
Sorry ....

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
kurowsky
Cacti User
Posts: 52
Joined: Wed Feb 04, 2004 4:43 pm
Location: Richmond, VA.

Alerts, removals etc. not being displayed

Post by kurowsky »

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:

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');
Everything appears as it should.

Likewise for syslog_alert.php and syslog_reports.php
Kurowsky
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

... not the solution

Post by zorrosam »

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
kurowsky
Cacti User
Posts: 52
Joined: Wed Feb 04, 2004 4:43 pm
Location: Richmond, VA.

Post by kurowsky »

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
oldsk8trbabe
Posts: 14
Joined: Thu Aug 31, 2006 9:22 am

Alerts & removals also not displayed

Post by oldsk8trbabe »

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.
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

problems again

Post by zorrosam »

... 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
User avatar
sebbs
Cacti User
Posts: 97
Joined: Mon Jan 22, 2007 9:41 am
Location: Ottawa,Canada

Post by sebbs »

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.
If all else fails, rm -rf /
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

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.
Did you edit syslog/config.php file with the correct database information?

Was it working before you upgraded to 5.2 or is this a fresh installation?
User avatar
sebbs
Cacti User
Posts: 97
Joined: Mon Jan 22, 2007 9:41 am
Location: Ottawa,Canada

Post by sebbs »

config.php is good with the db info....
and this is a fresh syslog install.
If all else fails, rm -rf /
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

sebbs wrote:config.php is good with the db info....
and this is a fresh syslog install.
Did you follow all the steps to get Syslog-ng working or did you just drop in the syslog plugin and expect it to work?
User avatar
sebbs
Cacti User
Posts: 97
Joined: Mon Jan 22, 2007 9:41 am
Location: Ottawa,Canada

Post by sebbs »

shiat! i need to install that dont it! and configure Syslog-ng to dump into the syslog db? I did it a year ago...i have forgotten how i got it working.

thanks!
If all else fails, rm -rf /
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

sebbs wrote:shiat! i need to install that dont it! and configure Syslog-ng to dump into the syslog db? I did it a year ago...i have forgotten how i got it working.

thanks!
Yeah, it's a real PITA, I know, I did it from scratch once. I gave up on that and now use CactiEZ.
User avatar
sebbs
Cacti User
Posts: 97
Joined: Mon Jan 22, 2007 9:41 am
Location: Ottawa,Canada

Post by sebbs »

so CactiEZ is a vm iso with all these plugins built in or what?
If all else fails, rm -rf /
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests