You are here

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

Choosing between on premises and off premises
Blog
By Opsview Team, Administrator

This blog post will get you started with creating service checks on your hosts.

To register a new client into Opsview, you need to have...

By Bundesarchiv, Bild 102-09312 / CC-BY-SA 3.0, CC BY-SA 3.0 de, https://commons.wikimedia.org/w/index.php?curid=5414490
Blog
By Opsview Team, Administrator

In order to monitor VMware ESX and VM’s running on ESX, we will need to download and install a few items of software listed below, namely the...

Downsides of Nagios Open Source
Blog
By Opsview Team, Administrator

Hello all!
This is a brief blog post to explain how I quickly integrated my existing Opsview server with my existing ELK deployment.