ericko
07-10-2010, 04:11
Hey Guys,
I was wondering if somebody can advise as to what I'm doing wrong with one of my triggers.
I am currently using this trigger:
{{HOSTNAME}:net.tcp.service[smtp].last(0)}<1
Which is fine by itself. What I want to accomplish is this, I want this alarm to trigger only at specific times of the day, say all day except for 15:00 to 15:10.
So I modified the same trigger to be:
{{HOSTNAME}:net.tcp.service[smtp].last(0)}<1& {{HOSTNAME}:net.tcp.service[smtp].time(0)}>000000&
{{HOSTNAME}:net.tcp.service[smtp].time(0)}<145900&
{{HOSTNAME}:net.tcp.service[smtp].time(0)}>151059&
{{HOSTNAME}:net.tcp.service[smtp].time(0)}<235959
However, after I made this change, I notice log file is reporting the following:
Expression [{100100000028848}<1&{100100000028849}>000000&{100100000028849}<145900&{100100000028849}>1510059&{100100000028849}<235959] cannot be evaluated: Evaluation failed for function: last
I was wondering if anyone can advise whether I have the correct expression or not. If not, can you advise what exactly I'm doing wrong? I've spent sometime on this and can't seem to get it going.
Any help would be appreciated.
I was wondering if somebody can advise as to what I'm doing wrong with one of my triggers.
I am currently using this trigger:
{{HOSTNAME}:net.tcp.service[smtp].last(0)}<1
Which is fine by itself. What I want to accomplish is this, I want this alarm to trigger only at specific times of the day, say all day except for 15:00 to 15:10.
So I modified the same trigger to be:
{{HOSTNAME}:net.tcp.service[smtp].last(0)}<1& {{HOSTNAME}:net.tcp.service[smtp].time(0)}>000000&
{{HOSTNAME}:net.tcp.service[smtp].time(0)}<145900&
{{HOSTNAME}:net.tcp.service[smtp].time(0)}>151059&
{{HOSTNAME}:net.tcp.service[smtp].time(0)}<235959
However, after I made this change, I notice log file is reporting the following:
Expression [{100100000028848}<1&{100100000028849}>000000&{100100000028849}<145900&{100100000028849}>1510059&{100100000028849}<235959] cannot be evaluated: Evaluation failed for function: last
I was wondering if anyone can advise whether I have the correct expression or not. If not, can you advise what exactly I'm doing wrong? I've spent sometime on this and can't seem to get it going.
Any help would be appreciated.