[Ultrapossum-cvs 836] demo/haviewer/lib/haviewer 1.12, 1.13, ultrapossum.rb

Back to archive index

Masato Taruishi taru****@users*****
2004年 10月 13日 (水) 15:14:49 JST


===================================================================
RCS file: demo/haviewer/lib/haviewer/ultrapossum.rb,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- demo/haviewer/lib/haviewer/ultrapossum.rb	2004/09/23 08:00:51	1.12
+++ demo/haviewer/lib/haviewer/ultrapossum.rb	2004/10/13 06:14:49	1.13
@@ -84,8 +84,10 @@
       pidbuf = nil
       since = @@conf["SNMP_MIB"] + SINCE
       sincebuf = nil
+      fqdn = @host
+      fqdn += "." + @@conf["DOMAIN"] if @@conf["DOMAIN"]
 
-      snmpget = "snmpget -On -v1 -t 3 -c ultrapossum #{@host} #{status} #{pid} #{since}"
+      snmpget = "snmpget -On -v1 -t 3 -c ultrapossum #{fqdn} #{status} #{pid} #{since}"
       $stderr.puts "#{`date`.chomp} #{snmpget}" if $DEBUG
       buf = `#{snmpget}`
       buf.each_line do |line|



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