Systems Management (OpenView-OP Mgmt) Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Warning running opcmomchk: Pattern string too long

SOLVED
Go to Solution
Highlighted
Occasional Visitor

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!

1 ACCEPTED SOLUTION
Honored Contributor Honored Contributor

Re: Warning running opcmomchk: Pattern string too long

Hello.

 

Max length for a pattern is 2047 characters.

 

Regards,

    Goran

2 REPLIES
Honored Contributor Honored Contributor

Re: Warning running opcmomchk: Pattern string too long

Hello.

 

Max length for a pattern is 2047 characters.

 

Regards,

    Goran

Occasional Visitor

Re: Warning running opcmomchk: Pattern string too long

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