Application Health Service Dashboard

Suve3
Tera Contributor

Hi All,

 

We are looking some OOB feature which shows the information about the uptime of an Application Services. We wanted to know for how long the service is up or down. Please share your inputs. 

3 REPLIES 3

Hi @Rahul Priyadars 

The community post is about the usage time of application services. We want the system to tell how long  a  particular service is up/down

Amit Gujarathi
Giga Sage
Giga Sage

Hi @Suve3 ,
I trust you are doing great.

To implement this solution, we need to perform the following steps:

  1. Set up Service Monitoring in ServiceNow: a. Go to the ServiceNow instance. b. Navigate to Service Administration > Service Monitoring. c. Create a new Service Monitoring profile and specify the name and URL of the application service you want to monitor.

  2. Configure monitoring settings: a. Specify the frequency at which the system should check the service availability. b. Set the response time threshold to determine when the service is considered down. c. Configure additional settings based on your requirements.

  3. Create a ServiceNow scheduled job: a. Go to System Scheduler > Scheduled Jobs in ServiceNow. b. Create a new scheduled job with a script that queries the Service Monitoring data and retrieves the uptime information.

 

// Query the Service Monitoring data
var serviceMonitors = new GlideRecord('service_monitor');
serviceMonitors.addQuery('name', '<service_name>'); // Replace <service_name> with the name of the application service
serviceMonitors.query();

// Check if any records match the query
if (serviceMonitors.next()) {
  var uptime = serviceMonitors.u_uptime;
  gs.info('Uptime of the service: ' + uptime);
} else {
  gs.info('No uptime information found for the service.');
}

 

  1. Schedule the job: a. Specify the desired schedule for the job, such as running it every hour or day. b. Save the scheduled job.

Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi