Scheduling Service check sequentially with delay

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Scheduling Service check sequentially with delay

Post by rajasegar »

Nagios XI 2012R2.9
RHEL 6.5 x64
Manual Install

I have 6 MQ service checks for a host. Currently all is getting triggered around the same time and java process is causing a CPU spike in the client machine.

Question
1) How to configure Nagios to check 1 service after another just for the MQ checks
2) The checks should be 30 seconds apart.

Thanks
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Scheduling Service check sequentially with delay

Post by lmiltchev »

I don't think you can make this work with active checks. The only way you could do this, in my opinion, is via passive checks. You can set up your checks to run on a cron job at certain times.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Scheduling Service check sequentially with delay

Post by rajasegar »

We are using active checks only.
So how do we solve this problem? This could potentially cause lots of problems.

Ideally there should be a parameter for the host to define the service check delay.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Scheduling Service check sequentially with delay

Post by tmcdonald »

That would be a Core feature that would need to be discussed. As it stands right now the only way to achieve something like that within the capabilities of Nagios would be as lmiltchev suggested and using scheduled passive checks. You might be able to write a custom scheduler that keeps track of the jobs and kicks them off as necessary, possibly using cron, and then have them write their results in the external command file.
Former Nagios employee
Locked