Warning running opcmomchk: Pattern string too long (199 Views)
Reply
Occasional Visitor
rxbybee
Posts: 2
Registered: ‎04-11-2013
Message 1 of 3 (199 Views)
Accepted Solution

Warning running opcmomchk: Pattern string too long

When configuring the outage file with a very long TEXT pattern, the opcmomchk throws warnings/errors and fails validation

The MSGTARGETRULE below has a LOT of servers listed in the TEXT field. What is the limit for TEXT?

 

MSGTARGETRULE
DESCRIPTION "SiteScope Alert Suppression"
MSGTARGETRULECONDS
MSGTARGETRULECOND
DESCRIPTION "SiteScope Alert Suppression"
APPLICATION "SiteScope"
TEXT "<*>server1|server2|server3|...<*>"
MSGOPERATIONS
MSGOPERATION
TIMETEMPLATE "mytimetemplate"
LOGONLY 

 

Results in:

Warning opcmomchk(6702) : line 178 "MSGOPERATIONS": Pattern string too long. (OpC20-227)
Warning opcmomchk(6702) : Configuration file '/etc/opt/OV/share/conf/OpC/mgmt_sv/respmgrs/update/outage' contains syntax errors. (OpC20-206)
[VALIDATE]:[ERROR]: Unable to validate /etc/opt/OV/share/conf/OpC/mgmt_sv/respmgrs/update/outage. Exiting!

Honored Contributor
Goran Koruga
Posts: 1,296
Registered: ‎12-05-2002
Message 2 of 3 (185 Views)

Re: Warning running opcmomchk: Pattern string too long

Hello.

 

Max length for a pattern is 2047 characters.

 

Regards,

    Goran

Occasional Visitor
rxbybee
Posts: 2
Registered: ‎04-11-2013
Message 3 of 3 (175 Views)

Re: Warning running opcmomchk: Pattern string too long

That was it, thank you. 2046 is good, 2047 fails.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.