svnno****@sourc*****
svnno****@sourc*****
2009年 11月 27日 (金) 18:37:09 JST
Revision: 45 http://sourceforge.jp/projects/ngms/svn/view?view=rev&revision=45 Author: tatsuro Date: 2009-11-27 18:37:09 +0900 (Fri, 27 Nov 2009) Log Message: ----------- comment out を外しました。 Modified Paths: -------------- trunk/source/NMNetWalker/src/info/ngms/nmnetwalker/NagiosConfig.scala Modified: trunk/source/NMNetWalker/src/info/ngms/nmnetwalker/NagiosConfig.scala =================================================================== --- trunk/source/NMNetWalker/src/info/ngms/nmnetwalker/NagiosConfig.scala 2009-11-27 09:32:39 UTC (rev 44) +++ trunk/source/NMNetWalker/src/info/ngms/nmnetwalker/NagiosConfig.scala 2009-11-27 09:37:09 UTC (rev 45) @@ -31,10 +31,10 @@ } """ printf(fmt, hostname, hostname, addr, hostname) - //val filename = "%s/etc/NGMS/%s.cfg".format(NagiosDir, hostname) - //val file = new java.io.FileWriter(filename) - //file.write(fmt.format(hostname, hostname, addr, hostname)) - //file.close + val filename = "%s/etc/NGMS/%s.cfg".format(NagiosDir, hostname) + val file = new java.io.FileWriter(filename) + file.write(fmt.format(hostname, hostname, addr, hostname)) + file.close } def sendHUP = { @@ -42,8 +42,8 @@ val pid = Source.fromFile(lockFile).getLines.mkString.trim val cmd = "kill -1 %s".format(pid) printf("send HUP signal to Nagios: %s\n",cmd) - //val proc = execCmd(cmd) - // proc.exec + val proc = execCmd(cmd) + proc.exec } }