MCPcopy Create free account
hub / github.com/Icinga/icinga2 / DisableNotifications

Method DisableNotifications

lib/icinga/externalcommandprocessor.cpp:1762–1767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1760}
1761
1762void ExternalCommandProcessor::DisableNotifications(double, const std::vector<String>&)
1763{
1764 Log(LogNotice, "ExternalCommandProcessor", "Globally disabling notifications.");
1765
1766 IcingaApplication::GetInstance()->ModifyAttribute("enable_notifications", false);
1767}
1768
1769void ExternalCommandProcessor::EnableFlapDetection(double, const std::vector<String>&)
1770{

Callers

nothing calls this directly

Calls 2

LogClass · 0.85
ModifyAttributeMethod · 0.80

Tested by

no test coverage detected