Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2878

Re: Log file monitoring troubles

$
0
0

Hi Roland,

 

We are monitoring  file1.txt on a windows server named "server1". The file1.txt is located on the E-disk > folder1 > folder11 > file1.txt

and the pattern we are searching for is *ERROR* somewhere in the file1.txt.

 

The template we are using in technical monitoring is a copy of the windows template and is assigned to "server1".

 

I've added in the SAPCCMSR.INI file for the host agent following line:

LogFile \\Server1\E$\folder1\folder11

 

then I have restarted the host agent.

 

The metric we created is a File Text Pattern Search with following settings:

 

DATEPATTERN: yyyy-MM-dd

DELTA_READ: True

ENCODING: UTF-8

FILEPATTERN: \Q*file*\E

FOLDER: \Q\\Server1\E$\folder1\folder11\E

MONITOR_NEWEST_FILES: 20

SEARCHPATTERN: *error*

SHOW_MATCHES: yes

The metric is checked every minute and has to be "red" if there is "1" ERROR

I assigned the metric to the existing alert "logfile monitoring"

 

After that, I just saved and reactivated the assignment for the windows template to "server1".

 

Could you maybe help us out with this information?

 

Best regards,

Kenny


Viewing all articles
Browse latest Browse all 2878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>