Its a bit old school the approach I took, but works okay...
Firstly, if you have set up the PMWOGenCron to send you the report when it runs, then if you don't have this report, then the chances are (if you have a lot of data) that it may not have run. A quick check of the last run date will confirm if it has...
Secondly I set up an escalation that runs in the early hours of the morning that looks to see if there are PMs that should have fired the previous evening but have failed to do so - this will email me if there are any - a word of warning though, this may send a lot of emails if there are a lot of failures.. but as an escalation you can send this to as many users as you like - the Cron can only deal with a single email address so needs to be an email group which can be harder to administer.
This was put in place originally as the Cron was running, but the SQL behind it was flawed, so it was only when we looked at what
should have fired we could see that the Cron was missing some out.
As I say it is a bit primitive but has proven to be pretty robust. And it is easy to set up and disable if required.
------------------------------
Brian Williams
Maximo System Administrator
Ineos FPS
------------------------------
Original Message:
Sent: Mon May 24, 2021 09:09 AM
From: Steven Shull
Subject: Get email notification if cron task fails? (PMWoGen)
We try to avoid monitoring Maximo inside Maximo. The processes we define as critical we setup an external monitoring check that makes a REST API call into to Maximo to get the necessary metadata to determine if it's missed executions, if it's running longer than it should, etc. For example, if our email listener takes longer than 5 minutes on an execution it's probably stuck forever and that JVM needs to be restarted.
If we have a problem that prevents cron tasks from running, anything we setup in the Maximo system that could capture it utilizes the same cron task framework and might not run. Scheduled reports, escalations, automation script cron tasks, async jobs, etc. all utilize cron tasks. And we find people are more likely to turn something off inside the Maximo system and forget to turn it back on which wouldn't be good if the thing they forgot to turn back on is the thing monitoring your processes.
------------------------------
Steven Shull
Director of Development
Projetech Inc
Original Message:
Sent: Fri May 21, 2021 07:56 PM
From: User1971
Subject: Get email notification if cron task fails? (PMWoGen)
MAM 7.6.1.2:
I want to monitor for an issue where PMWoGenCronTask gets interrupted:
More info in #5 here: Logic behind scheduled PMs?
Question:
I'm new to cron tasks. Is there a way to get an email notification if a cron task fails?
Thank you.
#AssetandFacilitiesManagement
#Maximo