Masato Taruishi
taru****@users*****
2004年 9月 12日 (日) 00:31:13 JST
=================================================================== RCS file: demo/haviewer/lib/haviewer/ultrapossum.rb,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- demo/haviewer/lib/haviewer/ultrapossum.rb 2004/09/11 14:52:16 1.1 +++ demo/haviewer/lib/haviewer/ultrapossum.rb 2004/09/11 15:31:13 1.2 @@ -227,13 +227,17 @@ def entry_update open("|ldapmodify -x -h #{Conf["LDAPMASTER"]} -D #{Conf["ROOTDN"]} -w #{Conf["ROOTPW"]} > /dev/null", "w") { |io| date=`sh -c 'LANG=C date'` - io.puts <<EOF + begin + io.puts <<EOF dn: #{UltraPossumHost::monitored_entry} changetype: modify replace: description description: #{date} EOF + rescue + end } + $stderr.puts "error" if $? != 0 UltraPossumHost.update_latest_entryCSN UltraPossumHosts.each do |host| # host.monitor_entry