SAP job monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dLans
Posts: 40
Joined: Tue May 27, 2014 1:54 am

SAP job monitoring

Post by dLans »

Hello guys,

I’m currently trying to implement a better and deeper monitoring environment for our SAP systems. We use Nagios for monitoring our servers, switches and other equipment. We run basic checks on our SAP servers that check if the server is available and if there is enough free space in the database. We want to implement job monitoring so we can check each separate job if it has run and if so what the exit code is. This is not an issue with Nagios (it runs just perfectly) but I am hoping someone here has experience with monitoring SAP. If questions like this are not allowed on the forum, would you perhaps direct me to a place where I could ask this? :)

I’ve tried using the CCMS plugin (https://exchange.nagios.org/directory/P ... ns/details). It was rather difficult to set that up due to the lack of documentation found, but I’ve managed to do this:

RZ20 transaction in SAP:
Image

Created a template:
Image

Ran the template and got a result:
Image


But there are many more jobs with a status ‘cancelled’. I want to be able to monitor every job on its own to check the last run time:
Image


So my question is, has anyone any experience with using Nagios for monitoring jobs? Did you use the CCMS plugin or any other method (nsca, nrdp, other plugin)? We have a SAP Solutions Manager, would that be useful in combination with Nagios? Any information or help would be greatly appreciated!

Kind regards,
Dennis Lans
dLans
Posts: 40
Joined: Tue May 27, 2014 1:54 am

Re: SAP job monitoring

Post by dLans »

Okay after alot of frustration I've managed to change a configuration within SAP itself to allow for a single job to be monitored. If you are interested I can make a manual for that (PM). I've changed the CCMS configuration accordingly:

[TEMPLATE_job_eu_put]
DESCRIPTION="JOB EU_PUT STATUS"
MONI_SET_NAME="SAP CCMS Technical Expert Monitors"
MONI_NAME="All Contexts on Local Application Server"
MAX_TREE_DEPTH=0
PATTERN_0="DEV\Background\EU_PUT\History"

I get the results back nicely:
./check_sap job_eu_put lnx
EU_PUT History = EU_PUT | 16093600 | Afgebroken |, started at 2016-10-19,16:09:55 terminated at 2016-10-19,16:09:55


Now I need to figure out a way for it actually to generate an error in Nagios. If the history shows anything other than succes it would need to be shown as an warning. What would be the best practice for that? The word I highlighted "Afgebroken" is the status of the last job run (meaning aborted). Does anyone have a script that checks for certain words? I'd love to modify and try it on our server.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: SAP job monitoring

Post by tmcdonald »

dLans wrote:This is not an issue with Nagios (it runs just perfectly) but I am hoping someone here has experience with monitoring SAP. If questions like this are not allowed on the forum, would you perhaps direct me to a place where I could ask this? :)
They aren't really forbidden strictly speaking, but this probably is not the best place to ask since it is not a SAP-centric forum. We can definitely help with the Nagios side of things, but anything application-specific would probably be best asked of the experts in that field.
Former Nagios employee
Locked