output_interface file,nagios
,增加nagios輸出
然后配置nagios服務器和端口,以及發(fā)送的間隔時間
####The IP address or the host running the NSCA daemonserver_addr nagios.server.com####The port> 由于是nagios的被動監(jiān)控模式,需要指定nsca的位置和配置文件位置####nsca client programsend_nsca_cmd /usr/bin/send_nscasend_nsca_conf /home/a/conf/amon/send_nsca.conf
接下來指定哪些模塊和字段需要進行監(jiān)控,一共四個閥值對應nagios中的不同報警級別
####tsar mod alert config file####threshold [hostname.]servicename.key;w-min;w-max;c-min;cmax;threshold cpu.util;50;60;70;80;