ServiceNow is a powerful ITSM solution with some powerful features to track incidents and events that can occur in your environment. One of the features of ServiceNow is event tracking.
But how does event tracking differ from incidents?
Incidents are usually reported by users or detected by service desk personnel through user complaints. Events, on the other hand, are often detected automatically by monitoring tools. ControlUp being a monitoring tool can be leveraged to track events in ServiceNow!
One of the most common events used for tracking in ServiceNow is the amount of free space on a disk. When a disk drops below a certain free space threshold it should create an event and when it exceeds that threshold it should resolve the event.
ControlUp for VDI 9.0’s new metrics for Logical Disks is the perfect metric to monitor and execute this event tracking.
Events within ServiceNow are handled by the ServiceNow Event Management feature. Once activated in your ServiceNow environment, ControlUp can leverage the ServiceNow Rest API to execute updates.
An example of a low disk space event generated and cleared by ControlUp looks like this within ServiceNow:
We can see ControlUp puts in a good amount of information to track this event. The machine is identified, the specific drive letter and how much drive space was reduced or freed. The ControlUp trigger mechanism allows for the monitoring of specific drive letters, all drive letters or you can just exclude a specific drive letter.
These triggers are available from the community trigger pack. Download them and add them to your ControlUp for VDI environment!
I’ll describe the trigger configuration and how it operates.
The “resolved” trigger has the exact same parameters except the “From this state” and “To this state” are reversed:
The script action to configure is “ServiceNow Events Management – Free Space”
This action requires some minor modification to make it work in your environment. In the Script Actions pane, select it and click “Modify”
Select the “Arguments” header and then click the “Edit” icon next to “AuthenticationHeader”
Replace the value in “Default” with the Base64 authentication header data for your ServiceNow environment. Powershell can generate the value for you with this code:
# Set the credentials
$User = 'admin'
$Pass = 'ThisIsAComplexPassword'
$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $User, $Pass)))
Write-Host "$base64AuthInfo"
For the ServiceNow Endpoint, update it with your ServiceNow Events Management API endpoint URL. It should look similar to this:
>https://dev142496.service-now.com/api/global/em/jsonv2When testing the functionality, ControlUp’s Audit Log will report on the success or failure of the automation.
Example (Success) — Note the State is “Completed” and there is an “Output” from the script:
As we wrap up our exploration of ControlUp’s seamless integration with ServiceNow’s Event Management Database feature, it’s clear that this powerful collaboration is more than just a technical convergence. It represents a significant leap forward in how IT departments can streamline their operations, enhance system reliability, and elevate the end-user experience. By harnessing the combined strengths of ControlUp and ServiceNow, organizations are equipped to not only react swiftly to issues as they arise but also to anticipate and mitigate potential problems before they impact productivity.
This integration empowers IT teams with real-time insights and automated workflows, transforming the way they manage and resolve incidents. The result? A more resilient, efficient, and user-centric IT environment. As we move forward in an era where digital infrastructure is increasingly complex and critical to business success, partnerships like that of ControlUp and ServiceNow are paving the way for a new standard in IT operations and service excellence.