Hello,
First time poster! I am also new to BigFix so forgive me if my logic/wording is not the most correct.
I am having an issue with converting epoc time inside an boolean statement.
This is my original relevance:
(it * second + â01 Jan 1970 00:00:00â as local time) of (following text of first ": " of (line 10 of file â/var/nessus.txtâ) as integer)
This works for 99% of my machines when running an analysis, however if the application is not installed then it will return an error inside the results/bigfix web reports: âSingular expression refers to nonexistent object.â
I believe the issue is if the folder or application cannot be found it has no value to return, so I need to make this a boolean statement. However, it seems I cannot have an integer and a string as apart of the relevancy statement. This is what I have so far and it will not seem to work no matter what I change or change it to:
if exists file â/var/nessus.txtâ then (it * second + â01 Jan 1970 00:00:00â as local time) of (following text of first ": " of line 10 of file â/var/nessus.txtâ as integer) else âConnection Issuesâ
(Since it is linux I have a text file being created with information I need for the Analysis, so line 10 is where the las connection time is located in the txt file.)
Any help will be greatly appreciated!
Thank you so much!
-Bozzy