Related Posts Plugin for WordPress, Blogger...

2010年6月23日

nagios 安裝備忘

檢查nagios的語法是不是正確
sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

用其他smtp發信
sudo apt-get install sendemail
sudo vi /usr/local/nagios/etc/objects/commands.cfg

把notify-host-by-email' command definition部份指令替換掉

舊的

/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$



新的
/usr/bin/sendemail -f [email protected] -t $CONTACTEMAIL$ –s mail.mos.com.tw -o message-charset=utf-8 –u "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is 
$HOSTSTATE$ **"
Categories:

0 意見: