How to create your own monitoring templates in Powershell - Global-PS-Statut?


Do you need help?

ServiceNav offers several solutions to allow you to create your own service model in Powershell: GLOBAL-PS-STATUT and GLOBAL-PS-Values.

We will focus here on the GLOBAL-PS-STATUT model.

Using the GLOBAL-PS-STATUT model

This template allows the launch of a Powershell command returning one or more objects.

For each of the returned objects, it checks the value of a property (specified in parameter) and changes state according to this value.

The mapping between the value and the state of the control is configurable. It is possible to restrict the objects to be controlled via a whitelist/blacklist applying to a second property which is also configurable.

Configuration requirements :

Windows supervisor account with the right to run the command.

Model parameter :

- The PowerShell command,
- A property corresponding to the name of the object,
- A property corresponding to the checked value,
- A property on which the filters, whitelist, blacklist are applied,
- The value/status mapping,
- The text to be displayed when all objects are OK,
- The type of remote connection to use (winrm or RPC).

Use Case - Check if an Exchange database is mounted

From your Exchange server

In your Exchange console, check your order.

The result is this.

Now we just need to implement it in a ServiceNav service model.

From ServiceNav

Create a new template MS-Exchange-Mounted-Database-Status.
In the configuration module / Services menu / Models

Click on Add

Remark: It is best to create your new template at the highest level of the tree to allow inheritance across all your clients or sites.

1) Complete the general information

2) Add availability information

3) In the "Analysis properties" section, select the verification command check_ps_status

Then fill in the fields to create your own service template

Note Some PowerShell scripts need a console to run. In our case of use, we have to fill in the PS Console field with the Exchange console

Note Do not put " ; "at the end of the Powershell command

Once the fields are filled in, click on the button Validate.

Implementation of this new model in supervision

Now that the template is created, it can be used in your ServiceNav monitoring tool.
Configuration module / Services menu / Lists

Click on the button Add

Choose the Service Model

Instantiate the fields if necessary

Add this service on your Exchange server in the relationship tab

Click on Vhelp and reload your configuration.

Verification of this new model in supervision

Supervision / Technical Operation Module

Find your control point and check its operation.

You may also be interested in

Map 4

Application Mapping

Representing application monitoring Monitoring applications can pose problems of information readability, dependencies and alerts,

Read More "

Our next events

Our upcoming webinars

Our Previous Webinars

Welcome to ServiceNav!

Do you need some help? More information about our products? Write to us!
We will never sell or share your personal data with third parties. You have taken note of our privacy policy.
We use cookies to ensure the best experience on our site. If you continue to use this site, we will assume that you are satisfied with it.

Reserve your place

We will never sell or share your personal data with third parties. You have taken note of our privacy policy.