Page 1 of 1

update check_command value in bulk

Posted: Wed Dec 10, 2014 7:02 am
by sureshkraj2012
Hello,

I would like to update / change threshold value for particular service check on different server (but with same check_command value)?
I don't find an option in bulk modification. Please let me know if there is an option to get it done.

Here is the scenario:

We have C:\ drive service check across windows environment with same check_command value.

check_command check_xi_service_nsclient!nsclientpassw0rdabc!USEDDISKSPACE!-l C -w 80 -c 95!!!!!

I would like to change -w 80 -c 95 to -w 90 -c 98 across all windows servers in bulk. Is it possible?

Re: update check_command value in bulk

Posted: Wed Dec 10, 2014 1:50 pm
by slansing
Unfortunately there is no way to make this change en masse. You could however, hardcode the check command to have those values, that would get you part of the way there, but remove the flexibility of using an argument to define specific values on that check_command.

Re: update check_command value in bulk

Posted: Wed Dec 10, 2014 6:57 pm
by Box293
To offer an alternate solution, perhaps now might be an opportune time to use a common service that is assigned to a hostgroup.

This way you only need to update the service once and all the hosts get the updated service.