You are here

Blog

Monitor Multiple Different Services Using the Same Service Check

Think of this scenario. You have multiple common services you wish to monitor, yet you only see one service check. Do you clone this service check and update it with unique arguments? Well,  whilst you could do  that, would you really want to? No. It’s a laborious and cumbersome process which simply doesn’t scale.

Opsview can solve this simple dilemma by utilizing the ‘attributes’ function. 

In the below example we’re going to monitor different mount points all using the same unique service check.

Monitoring different file-systems:

First we’ll create an appropriate service check.  Navigating to SETTINGS > SERVICE CHECKS, then click the + icon in the top left.

We can now complete the service check as per below:

You will have seen in the service check that we’re referencing a variable called ‘DISK’. This is a variable that will allow us to assign different service check arguments to different file systems.

Within SETTINGS > ATTRIBUTES  we can create the ‘DISK’ attribute by clicking the + icon, then completing the box as below:

You will have seen in the service check that we’re referencing a variable called ‘DISK’. This is a variable that will allow us to assign different service check arguments to different file systems.

Within SETTINGS > ATTRIBUTES  we can create the ‘DISK’ attribute by clicking the + icon, then completing the box as below:

With this done, click submit. We’re nearly there, just a couple more steps. 

After you have applied the service check to the host, either manually or via a host template, we can start utilizing the attributes function to create multiple service checks.  By clicking the arrow icon next to the host, we need to ‘edit host configuration’.  

Now selecting the ‘attributes’ tab, we can create multiple service checks. Using the example below, you can see how easy it is to monitor different file partitions!  The file path goes in ‘value’, and the argument to pass to the service check (ie, what sizes to alert on) is option Arg 1. 

Upon submitting these changes, and reloading, you should see something similar to the following:

You can apply the concept described above to any service check that you need to apply multiple service checks to, just come up with appropriate logic referencing the attributes in your service check. Good luck! 

Get unified insight into your IT operations with Opsview Monitor

webteam's picture
by Opsview Team,
Administrator
Opsview is passionately focused on monitoring that enables DevOps teams to deliver smarter business services, faster.

More like this

Jun 19, 2012
Blog
By Opsview Team, Administrator

Introduction

In our example scenario, we are testing against “Oracle Database 11g Express Edition”, however the monitoring should be...

Nov 22, 2016
Blog
By David Chatterton, Customer Success Engineer

A guide in proactive monitoring that shows you how to configure Opsview to restart Windows services. 

Jun 06, 2012
Blog
By Opsview Team, Administrator

This blog post takes a deep-dive into monitoring Microsoft SQL Server 2008 with Opsview V4. In order to monitor SQL server (known hereon as SQL2K8...