237.5. 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 を使用した CamelContext の高度な設定。