Posted this in wrong forum ?
Problem fuzzytime dont work with parameter oter than 0, and
debug logging dosn't work with fuzzytime.
diff -Naur zabbix-1.1.3.orig/src/zabbix_server/evalfunc.c zabbix-1.1.3/src/zabbix_server/evalfunc.c
--- zabbix-1.1.3.orig/src/zabbix_server/evalfunc.c 2006-10-23 13:23:21.000000000 +0200
+++ zabbix-1.1.3/src/zabbix_server/evalfunc.c 2006-11-12 09:30:32.000000000 +0100
@@ -1078,8 +1078,8 @@
else if(strcmp(function,"fuzzytime")==0)
{
now=time(NULL);
- fuzlow=(int)(now+atoi(parameter));
- fuzhig=(int)(now-atoi(parameter));
+ fuzlow=(int)(now-atoi(parameter));
+ fuzhig=(int)(now+atoi(parameter));
if(item->lastvalue_null==1)
{
@@ -1087,7 +1087,6 @@
}
else
{
- zabbix_log( LOG_LEVEL_DEBUG, "In evaluate_FUNCTION() fuzzytime [%s] [%s]",value,item->lastvalue);
if((item->lastvalue>=fuzlow)&&(item->lastvalue<=fuzhig))
{
@@ -1097,6 +1096,9 @@
{
strcpy(value,"0");
}
+
+ zabbix_log( LOG_LEVEL_DEBUG, "In evaluate_FUNCTION() fuzzytime (%s) (%s)",value,item->lastvalue_str);
+
}
}
else if(strcmp(function,"logseverity")==0)
Problem fuzzytime dont work with parameter oter than 0, and
debug logging dosn't work with fuzzytime.
diff -Naur zabbix-1.1.3.orig/src/zabbix_server/evalfunc.c zabbix-1.1.3/src/zabbix_server/evalfunc.c
--- zabbix-1.1.3.orig/src/zabbix_server/evalfunc.c 2006-10-23 13:23:21.000000000 +0200
+++ zabbix-1.1.3/src/zabbix_server/evalfunc.c 2006-11-12 09:30:32.000000000 +0100
@@ -1078,8 +1078,8 @@
else if(strcmp(function,"fuzzytime")==0)
{
now=time(NULL);
- fuzlow=(int)(now+atoi(parameter));
- fuzhig=(int)(now-atoi(parameter));
+ fuzlow=(int)(now-atoi(parameter));
+ fuzhig=(int)(now+atoi(parameter));
if(item->lastvalue_null==1)
{
@@ -1087,7 +1087,6 @@
}
else
{
- zabbix_log( LOG_LEVEL_DEBUG, "In evaluate_FUNCTION() fuzzytime [%s] [%s]",value,item->lastvalue);
if((item->lastvalue>=fuzlow)&&(item->lastvalue<=fuzhig))
{
@@ -1097,6 +1096,9 @@
{
strcpy(value,"0");
}
+
+ zabbix_log( LOG_LEVEL_DEBUG, "In evaluate_FUNCTION() fuzzytime (%s) (%s)",value,item->lastvalue_str);
+
}
}
else if(strcmp(function,"logseverity")==0)
Comment