Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Home
Help
Search
Calendar
Login
Register
Openideas.info
|
Pandora FMS
|
Community general support
|
Advanced troubleshooting and problems
|
"Max and min" filter of Alert templates does not function properly
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: "Max and min" filter of Alert templates does not function properly (Read 771 times)
0 Members and 2 Guests are viewing this topic.
bmcclure
Jr. Member
Karma: 0
Offline
Posts: 13
"Max and min" filter of Alert templates does not function properly
«
on:
October 20, 2009, 12:00:26 AM »
This is regarding the latest 3.0 release on the FTP server in .tar.gz format. I had this same issue with the previous version, and it still exists after upgrading today.
I'm using, for instance, the memfree module to report the free memory on my servers being monitored. It is correctly returning an integer in KB.
I have two alert templates defined for this--Low Memory when the available memory is between 64 and 128 MB, and Very Low Memory when the available memory is below 64 MB.
The Very Low Memory alert presumably works, as it has correctly never fired yet. The Low Memory alert gets tripped every time it is checked, however.
Free memory: 1785488.00 KB
The alert template has these values set for the 'Max and min' type:
Min: 65536.00
Max: 131072.00
The available memory is not within those limits, but the alert is still tripped.
If using only "Min" it works fine... I can set 65536.00 and it does not trip until it actually reaches that low.
Any idea why this is happening? Is it just a bug?
Logged
Sancho Lerena
Administrator
Expert member
Karma: 24
Offline
Posts: 1151
I can see everything... with my glasses :-)
Re: "Max and min" filter of Alert templates does not function properly
«
Reply #1 on:
October 20, 2009, 08:25:01 AM »
Code for this piece of logic is pretty simple and seems to be ok, except for the "matches_value" logic that could be inverted (the checkbox to match the value).
if ($alert->{'type'} eq "max_min") {
if ($alert->{'matches_value'} == 1) {
return $status if ($data <= $alert->{'min_value'} &&
$data >= $alert->{'max_value'});
} else {
return $status if ($data >= $alert->{'min_value'} &&
x $data <= $alert->{'max_value'});
}
}
Can you send us a screenshot of alert template definition ?, this could help us to identify the problem with the inverted logic of the match checkbox.
Thx for reporting.
Logged
-- See you in the other screen.
bmcclure
Jr. Member
Karma: 0
Offline
Posts: 13
Re: "Max and min" filter of Alert templates does not function properly
«
Reply #2 on:
October 20, 2009, 11:32:01 PM »
This is my template definition which seems to trip an alert even though available memory is much higher than that specified.
I will try inverting the checkbox to see if it works correctly and let you know if I find anything out.
Thanks!
Logged
Sancho Lerena
Administrator
Expert member
Karma: 24
Offline
Posts: 1151
I can see everything... with my glasses :-)
Re: "Max and min" filter of Alert templates does not function properly
«
Reply #3 on:
October 20, 2009, 11:42:35 PM »
Can you switch off the checkbox and see if works ?.
Logged
-- See you in the other screen.
bmcclure
Jr. Member
Karma: 0
Offline
Posts: 13
Re: "Max and min" filter of Alert templates does not function properly
«
Reply #4 on:
October 20, 2009, 11:54:25 PM »
I was just posting that it worked, but one minute afterward the alert got fired.
Whether or not I have the box checked, the alert is fired.
Logged
Sancho Lerena
Administrator
Expert member
Karma: 24
Offline
Posts: 1151
I can see everything... with my glasses :-)
Re: "Max and min" filter of Alert templates does not function properly
«
Reply #5 on:
October 21, 2009, 12:36:07 AM »
We will open the bug in the tracker and work on that next days, thanks for reporting.
Logged
-- See you in the other screen.
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Pandora FMS
-----------------------------
=> Announcements and news
=> Suggestions and new feature request
=> F for Flexible... or awesome ideas using Pandora FMS
=> Community general support
===> Español / Spanish forum
===> Help for new users in Pandora FMS
===> Advanced troubleshooting and problems
===> 日本語フォーラム / Japanese forum
===> Development lists (Read only)
-----------------------------
General Category
-----------------------------
=> Epic Tunnelizer
=> Lechuga CMS
=> Sysadmin tools
=> General monitoring discussion
=> Openideas General Forums
===> Linux systems
===> Unix systems
=> Babel Enterprise
=> Integria IMS
=> phpRADmin
Loading...