Force Check list of machines through command line



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!!


Here you go: … and_id=128



What Loose said…


Further info on external commands can be found at




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