| 1837 | } |
| 1838 | |
| 1839 | void ExternalCommandProcessor::ChangeNormalSvcCheckInterval(double, const std::vector<String>& arguments) |
| 1840 | { |
| 1841 | Service::Ptr service = Service::GetByNamePair(arguments[0], arguments[1]); |
| 1842 | |
| 1843 | if (!service) |
| 1844 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot update check interval for non-existent service '" + arguments[1] + "' on host '" + arguments[0] + "'")); |
| 1845 | |
| 1846 | double interval = Convert::ToDouble(arguments[2]); |
| 1847 | |
| 1848 | Log(LogNotice, "ExternalCommandProcessor") |
| 1849 | << "Updating check interval for service '" << arguments[1] << "'"; |
| 1850 | |
| 1851 | service->ModifyAttribute("check_interval", interval * 60); |
| 1852 | } |
| 1853 | |
| 1854 | void ExternalCommandProcessor::ChangeNormalHostCheckInterval(double, const std::vector<String>& arguments) |
| 1855 | { |
nothing calls this directly
no test coverage detected