Force Check list of machines through command line


#1

Hello,

Is there a way to “force check” a list of machines (csv or one per line in file) through command line?

By force check i mean “Re-schedule the next check of this host” (right navigation menu for a host)

I tried cmd.cgi through command line but even after setting environment variables i am unable to do so.

I have a large number of machines which are stuck with old state and i would like to force check them to present state.

Restarting/Reloading nagios didn’t help either.

Note:I am running version 2.9

Thank you!!


#2

Here you go:
nagios.org/developerinfo/ext … and_id=128

:slight_smile:


#3

What Loose said…

in particular… “SCHEDULE_FORCED_HOST_SVC_CHECKS”

Further info on external commands can be found at nagios.sourceforge.net/docs/3_0/extcommands.html

HTH

/S


#4

That worked just perfect!
Thanks a lot Loose & Strides for your quick responses!