(imported topic written by TJessee)
I am trying to adjust an emailed report that will only email if the following are true.
OS contains AIX, Linux or SUN, has a file at this location
/var/opt/BESClient/tsys_custom/server.properties
which contains the value of MANAGED_BY that equals UNIXTEAM and has not reported in for more than 1 day.
I hope that makes sense. I can get parts of it to come together, but just not able to make the whole thing work.
(imported comment written by TJessee)
I have been able to get 2 of the parts working
((name
of
it
as
lowercase
contains
“AIX”
as
lowercase)
of
operating system)
OR
((name
of
it
as
lowercase
contains
“Linux”
as
lowercase)
of
operating system)
OR
((name
of
it
as
lowercase
contains
“SUN”
as
lowercase)
of
operating system)
AND
(substring after
“%3A”
of
line containing
“MANAGED_BY”
of
file
“/var/opt/BESClient/tsys_custom/server.properties”
is
“UKSRVUNIX”
)
However when I try to get the last report time to come back as greater than 1 day, it doesn’t like any syntax I provide. Any help is greatly appreciated.