2014年6月30日 星期一

If host is DOWN, Nagios desable notification for all services

http://forum.centreon.com/showthread.php/10820-howto-define-relations-no-notifaction-for-each-service-if-host-is-down

在測試nagios監控服務時發現,service告警信一直無法驅動,明明狀態就顯示critical/warning,

原來,當host down,service的告警就會停掉,因為它認為主機既然掛了,
服務當然也不會存活,不過這就困擾我了,因為它預設判斷主機的方式是用ping,
偏偏欲監控的主機例如他只開http服務,可是他檔ping,就會造成host down,service up,
會一直寄host down告警信,有沒有關掉host 告警都沒差,因為它認為host down,
所以假設service down他也不會寄告警,最快的解決方式就是要求被監控的主機
開放監控方icmp,但是,還是想想看其他方式,終於,就是改掉host alive的檢查方式,
改用他開放的服務去當作host alive的檢查方式,
缺點就是,當有一台新機器一樣檔icmp開放特定服務時,
又要手動增加一個host alive的檢查方式...

2014年6月11日 星期三

What IOS command will show the TCP ports that are listening on a device?

https://supportforums.cisco.com/discussion/11255361/what-ios-command-will-show-tcp-ports-are-listening-device

 show control-plane host open-ports

nagios: Unable to get process status, You don’t have permission to access /nagios on this server


  • Unable to get process status

http://www.linuxquestions.org/questions/linux-newbie-8/nagios-internal-server-error-903798/
chcon -R -t httpd_sys_content_t /usr/local/nagios
  • You don’t have permission to access /nagios on this server
 yum install php