【问题标题】:force linux to generate snmp traps automatically强制linux自动生成snmp陷阱
【发布时间】:2013-11-05 10:45:40
【问题描述】:

我想在服务器上的任何服务出现故障时自动生成一个陷阱。我必须为此做些什么。是不是我必须为此修改一个脚本,因为我们必须配置 snmptrapd.conf 所以请让我知道一些这样做的例子。

-- 谢谢

法鲁克·侯赛因

【问题讨论】:

    标签: snmp snmptrapd


    【解决方案1】:

    引用 NETSNMP 文档http://net-snmp.sourceforge.net/docs/man/snmpd.examples.html#lbAP

    Process Monitoring
    
     The list of services running on a system can be monitored (and provision made for correcting any problems), using:
    # At least one web server process must be running at all times
    proc    httpd
    procfix httpd  /etc/rc.d/init.d/httpd restart
    
    # There should never be more than 10 mail processes running
    #    (more implies a probable mail storm, so shut down the mail system)
    proc    sendmail   10
    procfix sendmail  /etc/rc.d/init.d/sendmail stop
    
    # There should be a single network management agent running
    #   ("There can be only one")
    proc    snmpd    1  1
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-08
      • 1970-01-01
      相关资源
      最近更新 更多