Hi,
I received the following error:
Quote:
awk: The string THRESHOLD cannot contain a newline character.
The source line is 2.
The error context is
;next} if(/HELP/){flg=0;print;next}if(/THRESHOLD / || /RESET /){gsub("THRESHOLD >>>
<<<
syntax error The source line is 3.
awk: The statement cannot be correctly parsed.
The source line is 3.
awk: There are 2 missing } characters.
awk: There is a missing ) character.
Thanks,
Ant-one
---------- Post updated at 08:21 AM ---------- Previous update was at 07:44 AM ----------
Hi,
first of all many thanks.
It worked fine for the major part, this is the ouput of your command:
Quote:
SYNTAX_VERSION 5,
,
,
,
MONITOR ,NAME_TEMPLATES
DESCRIPTION ,Monitors for contents of error
INTERVAL ,1m
MONPROG ,script.sh NAME_TEMPLATES
MAXTHRESHOLD,
GEN_BELOW_RESET,
SEVERITY Major,
APPLICATION ,script.sh
MSGGRP ,MSG
MSGCONDITIONS,
DESCRIPTION ,Has NEW errors
CONDITION_ID ,00000-34dc-25e0-1cfe-0a088b060000
CONDITION,
OBJECT ,<#>diff<*.folder>
THRESHOLD,0.500000
RESET,0.500000
SET,
OBJECT ,<$OPTION(area)>
TEXT ,There have been new failures Processing the <$OPTION(area)>
,
file on Central.,
AUTOACTION ,ls <folder>
HELPTEXT "OPS========= Please call support team" HELP "0d152f3c-59dc-71e0-1cfe-0a034b060000"
DESCRIPTION ,Has ANY errors
CONDITION_ID ,d26dda06-55f2-71e0-0025-0a034b060000
CONDITION,
OBJECT ,<*.folder>
THRESHOLD,0.500000
RESET,0.500000
SET,
OBJECT ,<$OPTION(area)>
TEXT ,There has been a failure Processing the <$OPTION(area)> file
,
HELPTEXT "OPS========= Please call out the support team" others instruction others instruction
Is it possible to split SEVERITY Major in 2 fields, please?
The text shoul be in 2 part:
TEXT ,There have been new failures Processing the <$OPTION(area)> file on Central.
Instead:
Quote:
TEXT ,There have been new failures Processing the <$OPTION(area)>
,
file on Central.,
And the last part
Quote:
HELPTEXT "OPS========= Please call support team" HELP "0d152f3c-59dc-71e0-1cfe-0a034b060000"
Should be without the part HELP "0d152f3c-59dc-71e0-1cfe-0a034b060000" as follow:
Quote:
HELPTEXT "OPS========= Please call support team"
Thanks in advance for any suggestion.
Ant-one