JP1/ServerConductor/Blade Server Manager系 運用ガイド
Linuxサーバで,HRA Utility,HRN,またはHBAと連携して障害監視をするには,次の2ファイルの設定を変更してください。
設定変更後は,OSを再起動してください。
なお,ここで説明する設定値以外の設定値で動作している場合,アラートが通知できないことがありますのでご注意ください。
/etc/syslog.confの設定変更方法を次に示します。
kern,daemon.info /var/opt/hitachi/system_manager/log/syslogdog
kern.info;daemon.err /var/opt/hitachi/system_manager/log/syslogdog
kern.info /var/opt/hitachi/system_manager/log/syslogdog
/etc/syslog-ng/syslog-ng.confに次の行を追記してください。
filter f_system_manager1 {
level(info) and facility(kern);
};
filter f_system_manager2 {
level(info) and facility(daemon);
};
destination system_manager {
file("/var/opt/hitachi/system_manager/log/syslogdog");
};
log {
source(src);
filter(f_system_manager1);
destination(system_manager);
};
log {
source(src);
filter(f_system_manager2);
destination(system_manager);
};
/etc/logrotate.d/syslogに次の行を追加してください。
/var/opt/hitachi/system_manager/log/syslogdog {
rotate 1
size=1M
create
nocompress
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
All Rights Reserved. Copyright (C) 2010, 2014, Hitachi, Ltd.