haloe alerts and removals not showing

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

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:so CactiEZ is a vm iso with all these plugins built in or what?
It's an installable ISO, I guess you could run it as a VM. It's CentOS 4.5 so if you're used to RedHat, you should pick right up on it.
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

Re: Alerts & removals also not displayed

Post by zorrosam »

oldsk8trbabe wrote: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.
The code of the last version of syslog, 5.2 is not this.

the rows that should be commented are not in the function but in another position ....

in my apache log i obtain this warning when i try to display alert and removal ...

when i comment out these lines i have no positive results, no removals and alerts displayed

PHP Warning: Division by zero in /var/www/cacti/plugins/syslog/functions.php on line 230, referer: https://xxxxx/cacti/plugins/syslog/syslog.php

please help me!

sam
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

help help

Post by zorrosam »

please anyone of our great community have another idea to solve this my problem?
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests