cancel
Showing results for 
Search instead for 
Did you mean: 

Logfile Monitoring (sapccm4x Agent) doesn't generate alerts

Former Member
0 Kudos

Hi All,

I've following error, maybe someone know this problem and can help me.

I've setup a logfile monitoring with the sapccm4x agent running on i5/os.

The Logfile Template:


LOGFILE_TEMPLATE
FILENAME="dev_jcontrol"
#RESCANFROMBEGIN=0
MTE_CLASS="Logs"
#MONITOR_CONTEXT="My monitoring tree"
#MONITOR_LAST_FILEMODIF=1
DIRECTORY="/usr/sap/<sid>/DVEBMGSxx/work"
#MONITORNEWESTFILE=1

PATTERN_0="(exitcode = 66)"
VALUE_0=RED
PATTERN_1="(exitcode = 666)"
VALUE_1=YELLOW
PATTERN_2="(exitcode = -1)"
VALUE_2=YELLOW
.

Now when I insert the line "exitcode = 66" in the file dev_jcontrol, this pattern is found in rz20 in the logfile monitoring tree.

So everything seems to be good, but the this tree object "lines found for pattern" doesn't become red.

Can someone help me? Why isn't there a red alert?

Regards

Tobias

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Tobias,

Have u checked in RZ21 -> Topology -> Agents for Remote Systems -> Select the system ->check Agent working directory

-> check sapccm4x.log file -> it will brief error.

Kinldy post the log error.Some time logfile monitoring path not able to open.

Kinldy check it.

Regards,

Karthik

Former Member
0 Kudos

Hi Karthik,

thanks for helping. I've also checekd the sapccm4x.log. Sorry that I doesn't post it here.

There are following errors. But I don't know if the are relevant.

What do you think?


Wed Jun 30 15:07:51 2010
ERROR-250 WARNING: Logfile Monitoring: [30 times] could not open /usr/sap/<sid>/work/dev_jcontrol
Wed Jun 30 15:33:01 2010
ERROR-250 WARNING: Logfile Monitoring: [60 times] could not open /usr/sap/<sid>/work/dev_jcontrol

I think these entries are not relevant, because they are old and doesn't occured again.

Now the User have access to the logfile.


[Thr 1029]
Mon Jul  5 04:14:33 2010
CCMCTLIB: ERROR: csm_show_file: no permission to read /usr/sap/<sid>/SYS/profile/<profile>
CCMCTLIB: ERROR: csm_show_file: Please check sapccmsr.ini 

I don't knwo why the sapccm4x wants to read the sapccmsr.ini. Because I configured sapccm4x and not sapccmsr


Mon Jul  5 04:14:35 2010
CCMCTLIB: ERROR: csm_show_file: no permission to read /usr/sap/ccms/<sid>_<nr>/sapccmsr/sapccmsr.ini
CCMCTLIB: ERROR: csm_show_file: Please check sapccmsr.ini 
CCMCTLIB: ERROR: csm_show_file: no permission to read /usr/sap/<sid>/SYS/global/connect.ini
CCMCTLIB: ERROR: csm_show_file: Please check sapccmsr.ini 
CCMCTLIB: ERROR: csm_show_file: no permission to read /usr/sap/<sid>/SYS/profile/<profile>
CCMCTLIB: ERROR: csm_show_file: Please check sapccmsr.ini 
CCMCTLIB: ERROR: csm_show_file: no permission to read /usr/sap/<sid>/SYS/profile/<profile>
CCMCTLIB: ERROR: csm_show_file: Please check sapccmsr.ini 

Mon Jul  5 04:14:36 2010
CCMCTLIB: ERROR: csm_show_file: no permission to read /usr/sap/ccms/<sid>_<nr>/sapccmsr/sapccmsr.log
CCMCTLIB: ERROR: csm_show_file: Please check sapccmsr.ini 

Mon Jul  5 04:14:37 2010
CCMCTLIB: ERROR: csm_show_file: no permission to read /usr/sap/ccms/<sid>_<nr>/sapccmsr/sapccmsr_1st.log
CCMCTLIB: ERROR: csm_show_file: Please check sapccmsr.ini 

Again, sapccmsr.ini

It would be great If you have any suggestions.

The user, which runs sapccms4x have permissions to read dev_jcontrol

Best regards

Tobias

Former Member
0 Kudos

Hi Tobias,

you want to monitor file dev_jcontrol. It is from an Web As Java, isn*t it? If so, you cannot use agent sapccm4x. sapccm4x is for ABAP systems only.

If your AS is Java, take sapccmsr instead.

If your AS is ABAP, then the agent needs to be started with option pf=<instance profile>. This is the reason for the entries in agent logfile.

And don't mind: sapccmsr and sapccm4x they both use the same (same named) ini-file sapccmsr.ini.

Feel free to call back...

Regards,

Dirk

Former Member
0 Kudos

Hi Dirk,

thanks for your reply. Yes you're right the logfile is from an WEB AS Java.

Hmmm... I did know that sapccmsr is for java and sapccm4x is for abap.

But I thought this could work because the logfile dev_jcontrol is in the same directory as the files of the abap server...

But I will try to monitor a abap logfile, and give you some feedback.

If your AS is ABAP, then the agent needs to be started with option pf=<instance profile>. This is the reason for the entries in agent logfile.

Yes, my agent is started with the instance profile. I think this could not be the problem.

And don't mind: sapccmsr and sapccm4x they both use the same (same named) ini-file sapccmsr.ini.

Are you sure of this?

Because I add my configuration in the sapccm4x.ini...

Best regards

Tobias

Answers (1)

Answers (1)

Former Member
0 Kudos

Ok you're right.

When I monitor "ABAP Logfiles" like dev_w* the alerts occur.

Thanks for your help.

Best regards

Tobias