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.
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 {‘min_value’} &&
$data >= $alert->{‘max_value’});
} else {
return $status if ($data >= $alert->{‘min_value’} &&
x $data {‘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.
We use technologies like cookies to store and/or access device information. We do this to improve browsing experience and to show (non-) personalized ads. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Siempre activo
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Siempre activo
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.