My goal is to monitor a logfile and to trigger a problem when the string 'Failed to initialize subsystem' appears. I also want the problem to automatically become resolved when the string 'Successfully initialized subsystem' subsequently appears in the logfile.
For this I've created two items:
- logrt["C:\ProgramData\MyApp\log_input","Failed to initialize subsystem",,1,skip,,,]
- logrt["C:\ProgramData\MyApp\log_input","Successfully initialized subsystem",,1,skip,,,]
I've created a trigger with expression:
{ZP file monitoring:logrt["C:\ProgramData\MyApp\log_input","Failed to initialize subsystem",,1,skip,,,].str("Failed to initialize subsystem")}=1
and Recovery:
{ZP file monitoring:logrt["C:\ProgramData\MyApp\log_input","Successfully initialized subsystem",,1,skip,,,].str("Successfully initialized subsystem")}=1
Unfortunately this doesn't work. The problem is created, but the status never goes to resolved when a 'Successfully initialized subsystem' line is added to the logfile.
What could be the problem?
For this I've created two items:
- logrt["C:\ProgramData\MyApp\log_input","Failed to initialize subsystem",,1,skip,,,]
- logrt["C:\ProgramData\MyApp\log_input","Successfully initialized subsystem",,1,skip,,,]
I've created a trigger with expression:
{ZP file monitoring:logrt["C:\ProgramData\MyApp\log_input","Failed to initialize subsystem",,1,skip,,,].str("Failed to initialize subsystem")}=1
and Recovery:
{ZP file monitoring:logrt["C:\ProgramData\MyApp\log_input","Successfully initialized subsystem",,1,skip,,,].str("Successfully initialized subsystem")}=1
Unfortunately this doesn't work. The problem is created, but the status never goes to resolved when a 'Successfully initialized subsystem' line is added to the logfile.
What could be the problem?
Comment