{"id":194,"date":"2011-04-15T09:16:00","date_gmt":"2011-04-15T09:16:00","guid":{"rendered":"https:\/\/www.shaopin.link\/wordpress\/index.php\/2011\/04\/15\/aix%e4%b8%8a%e4%bd%bf%e7%94%a8nagios%e7%9b%a3%e6%8e%a7%e8%bb%9f%e9%ab%94%e6%8e%a5%e6%94%b6snmp%e7%9a%84%e8%a8%8a%e6%81%af%e4%bb%a5ibm-ts3100%e7%82%ba%e4%be%8b\/"},"modified":"2021-03-19T06:20:06","modified_gmt":"2021-03-19T06:20:06","slug":"aix-use-nagios-snmp-ibm-ts3100","status":"publish","type":"post","link":"https:\/\/www.shaopin.link\/wordpress\/index.php\/aix-use-nagios-snmp-ibm-ts3100\/","title":{"rendered":"AIX\u4e0a\u4f7f\u7528Nagios\u76e3\u63a7\u8edf\u9ad4\u63a5\u6536SNMP\u7684\u8a0a\u606f,\u4ee5IBM TS3100\u70ba\u4f8b"},"content":{"rendered":"<p>1.\u5728AIX\u7de8\u8b6f SNMP 5.5  \u6216\u662f\u53bb\u627erpm\u5b89\u88dd<br \/>\n.\/configure &#8211;disable-embedded-perl &#8211;without-kmem-usage<\/p>\n<p>2.\u5b89\u88ddSNMP (snmpd snmptrapd)<br \/>\n(1).\u5b89\u88dd\u5f8c\u8a2d\u5b9a\u8a2d\u5b9a\u6a94 .\/snmpconf -i<br \/>\n(2).IBM TS3100\u78c1\u5e36\u9928\u9810\u8a2dsnmp community\u662f public (initial),<\/p>\n<p>3.\u5b89\u88ddsnmptt \u4ee5\u8655\u7406Trap\u5f8c\u7684Log<br \/>\n(1).snmptrapd.conf\u8981\u52a0\u6b0a\u9650,\u4e26\u8b93snmptt\u7684Stand along\u548cDaemon mod\u90fd\u80fd\u8655\u7406snmptrap\u7684\u8a0a\u606f<br \/>\nauthCommunity   log,execute,net public<br \/>\ntraphandle default \/usr\/sbin\/snmptthandler<br \/>\ntraphandle default \/usr\/sbin\/snmptt<br \/>\n\u91cd\u555fsnmpd\u53casnmptrapd<br \/>\n(2).snmptt \u5c0e\u5165\u8981\u76e3\u63a7\u7684mib\u6a94<br \/>\n.\/snmpttconvertmib &#8211;in=\/usr\/share\/snmp\/mibs\/powernet361.mib &#8211;out=\/etc\/snmp\/snmptt.ibm.conf<br \/>\n(3).vi snmptt.ini \u5c07 snmptt.ibm.conf \u52a0\u5165<br \/>\n(4).\u8981\u9001\u8a0a\u606f\u7684\u90e8\u4efd\u52a0\u5165submit_check_result HOSTNAME SERVICENAME CODE MESSAGE,\u7bc4\u4f8b\u5982\u4e0b<br \/>\nEVENT eventDoorOpen .1.3.6.1.4.1.2.6.210.4.2 &#8220;Status Events&#8221; INFORMATIONAL<br \/>\nFORMAT Library Door Opened: The library $1 (Serial Number $2) door has been opened.<br \/>\nEXEC \/usr\/local\/nagios\/libexec\/eventhandlers\/submit_check_result AS400-B0000 TS3100 1 &#8220;The library $1 (Serial Number $2) door has been opened&#8221;<br \/>\nSDESC<br \/>\nThe library door has been opened.<br \/>\nVariables:<br \/>\nEDESC<br \/>\n(5).\u91cd\u555fsnmptt\u670d\u52d9,\u67e5log\u662f\u5426\u6b63\u78ba<br \/>\n(6).\u958bTS 3100\u7684Door\u6216\u662fLogin\/Logout Web\u5e33\u865f\u505a\u6e2c\u8a66.<\/p>\n<p>Debug<br \/>\n1.\u6709\u554f\u7684\u7684\u8a71\u6539snmpd.conf snmptrapd.conf snmptt.ini(debug=2),\u8f38\u51falog<br \/>\n2.AIX \u958bIIP trace,\u770b\u8a72\u8a2d\u5099\u6709\u6c92\u6709\u8a0a\u606f\u5230AIX<br \/>\n\/usr\/bin\/startsrc -s iptrace -a &#8220;-a -b -d x.x.x.x -i en0 \/var\/log\/snmptt\/iptrace.cap&#8221; &gt;\/dev\/null 2&gt;&amp;1<br \/>\n\/usr\/bin\/stopsrc -s iptrace &gt;\/dev\/null 2&gt;&amp;1<br \/>\n\u770btrace log<br \/>\nipreport -srn \/var\/log\/snmptt\/iptrace.cap<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5728AIX\u7de8\u8b6f SNMP 5.5 \u6216\u662f &hellip; <a href=\"https:\/\/www.shaopin.link\/wordpress\/index.php\/aix-use-nagios-snmp-ibm-ts3100\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">AIX\u4e0a\u4f7f\u7528Nagios\u76e3\u63a7\u8edf\u9ad4\u63a5\u6536SNMP\u7684\u8a0a\u606f,\u4ee5IBM TS3100\u70ba\u4f8b<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,42],"tags":[],"class_list":["post-194","post","type-post","status-publish","format-standard","hentry","category-aix","category-nagios"],"_links":{"self":[{"href":"https:\/\/www.shaopin.link\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shaopin.link\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shaopin.link\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shaopin.link\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shaopin.link\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":1,"href":"https:\/\/www.shaopin.link\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/194\/revisions"}],"predecessor-version":[{"id":432,"href":"https:\/\/www.shaopin.link\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/194\/revisions\/432"}],"wp:attachment":[{"href":"https:\/\/www.shaopin.link\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shaopin.link\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shaopin.link\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}