[Ultrapossum-cvs 246] plugin/snmp 1.1, 1.2, snmppass 1.7, 1.8, update-snmp

Back to archive index

Masato Taruishi taru****@sourc*****
2004年 6月 25日 (金) 02:13:03 JST


===================================================================
RCS file: plugin/snmp/snmppass,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- plugin/snmp/snmppass	2004/06/24 16:55:47	1.1
+++ plugin/snmp/snmppass	2004/06/24 17:13:03	1.2
@@ -28,7 +28,7 @@
     case "$line" in
     get)
       read mib
-      $SNMPPASSSCRIPTSDIR/$mib $mib
+      $SNMPPASSSCRIPTSDIR/$mib $mib || echo "NONE"
       STATE=NONE
       ;;
     getnext)
@@ -45,7 +45,7 @@
       if test "$mib" = "$nextmib"; then
         echo "NONE"
       else
-        $SNMPPASSSCRIPTSDIR/$nextmib $nextmib
+        $SNMPPASSSCRIPTSDIR/$nextmib $nextmib || echo "NONE"
       fi
       STATE=NONE
       ;;
===================================================================
RCS file: plugin/snmp/update-snmp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- plugin/snmp/update-snmp	2004/06/24 14:15:15	1.7
+++ plugin/snmp/update-snmp	2004/06/24 17:13:03	1.8
@@ -32,6 +32,7 @@
       -e "s!#SNMP_COMMUNITY#!$SNMP_COMMUNITY!" \
  					< $SNMPD_CONF_IN >> $tmp
 
+  /bin/rm -rf $SNMPPASSSCRIPTSDIR
   install -d $SNMPPASSSCRIPTSDIR
   /bin/ls $SNMPPASSDIR | while read cmd
   do



Ultrapossum-cvs メーリングリストの案内
Back to archive index