How to implement Autosys integration with ServiceNow to monitor Job failure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2025 04:49 AM
Hi,
want to implement Autosys integration with ServiceNow to monitor Job failure, once job is failed at autosys event should be created in ServiceNow, please help with steps
Thank you in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2025 08:20 AM
Hi @jack33 ,
1. Understand the Goal
You want:
* Autosys detects a job failure.
* Failure triggers ServiceNow Event (via Event Management) or Incident creation.
* Ideally no manual intervention.
2. OOB ServiceNow Capabilities
ServiceNow does not have an out-of-the-box native Autosys connector, but it supports:
* REST API ingestion
* MID Server event ingestion
* Email-based integration
* IntegrationHub custom spokes
So we have to choose one of these approaches.
3. Integration Approaches
Option A — REST API Direct from Autosys (Recommended)
1. Enable REST API in ServiceNow
* Use the Event table (em_event) to create events programmatically.
* Or call incident table API if you want direct incident creation.
2. Autosys Job Failure Hook
* Use autorep/autosyslog with a job failure notification script (in shell or PowerShell).
* Script makes a REST POST to ServiceNow API endpoint:
POST https://<instance>.service-now.com/api/global/em_event
Headers: Authorization: Basic <base64-encoded creds>
Body:
{
"source": "Autosys",
"node": "<Job/Server Name>",
"type": "Job Failure",
"resource": "<Job Name>",
"severity": 3,
"description": "Autosys job <Job Name> failed with status <Status>"
}
3. ServiceNow Event Rules
* Create Event Rule to match source = Autosys and type = Job Failure.
* Trigger an Alert and Incident automatically
.
Option B — Email Parsing
1. Configure Autosys job failure email notification.
2. Send these failure emails to a monitored ServiceNow inbound email address (like servicenow@company.com).
3. Use Inbound Email Actions to:
* Parse subject/body for job name, failure reason.
* Create an Event or Incident.
4. Simpler to implement, but less real-time and harder to maintain parsing logic.
Option C — IntegrationHub / MID Server Script
1. Use MID Server and a scheduled script to query Autosys job status via:
* autosyslog
* REST API (if your Autosys version supports it)
2. On detecting failures, send Events to ServiceNow using MID Server Scripted REST calls or em_event table insert.
3. Works well if network/security restricts Autosys direct REST calls to ServiceNow.
4. Detailed Steps for REST API Method
ServiceNow Setup
1. Create Integration User in ServiceNow (with evt_mgmt_integration or event_integration role, plus rest_service access).
2. Test API Authentication with:
curl -u 'user:pass' "https://<instance>.service-now.com/api/now/table/em_event?sysparm_limit=1"
4. Define Event Rules:
* Condition: source = Autosys AND type = Job Failure
* Action: Create Alert → Correlate → Incident (as per policy).
Autosys Setup
1. Create a Job Failure Notification Command:
* In Autosys job definition, add:
alarm_if_fail: 1
send_notification: 1
notification_cmd: /path/to/notify_servicenow.sh
2. In notify_servicenow.sh, call:
#!/bin/bash
3. JOB_NAME=$1
4. STATUS=$2
5. curl -s -u "sn_user:sn_pass" \
6. -H "Content-Type: application/json" \
7. -X POST \
8. https://<instance>.service-now.com/api/global/em_event \
9. -d '{
10. "source": "Autosys",
11. "node": "'$HOSTNAME'",
12. "type": "Job Failure",
13. "resource": "'$JOB_NAME'",
14. "severity": 3,
15. "description": "Autosys job '$JOB_NAME' failed with status '$STATUS'"
16. }'
5. Testing
* Simulate job failure in Autosys.
* Verify ServiceNow received the Event.
* Confirm Event Rules trigger an Incident.
6. Security & Maintenance
* Use OAuth or Basic Auth over HTTPS for API calls.
* Document integration logic so Autosys/ServiceNow admins can maintain it.
* Monitor logs in both systems for failed deliveries.
Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.
Thank You
AJ - TechTrek with AJ - ITOM Trainer
LinkedIn:- https://www.linkedin.com/in/ajay-kumar-66a91385/
YouTube:- https://www.youtube.com/@learnitomwithaj
Topmate:- https://topmate.io/aj_techtrekwithaj (Connect for 1-1 Session)
ServiceNow Community MVP 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2025 08:28 AM
Did you go through this link that explains in detail how to setup Autosys integration with ServiceNow,
Thanks,
Bhuvan