225.4. Using NagiosEventNotifer
Nagios コンポーネントは、イベントを Nagios に送信するのに使用できる EventNotifer も提供します。たとえば、以下のように Java からこれを有効にします。
NagiosEventNotifier notifier = new NagiosEventNotifier();
notifier.getConfiguration().setHost("localhost");
notifier.getConfiguration().setPort(5667);
notifier.getConfiguration().setPassword("password");
CamelContext context = ...
context.getManagementStrategy().addEventNotifier(notifier);
return context;
Spring XML では、EventNotifier タイプで Spring Bean を定義することや、Camel はこれを記載どおりに選択します。Spring XML では、Spring を使用した CamelContext の高度な設定 です。