Hacks &MRTG &Network Monitoring &Scripting &Servers &SNMP Jl. on 17 Dec 2009 05:26 pm
MRTG: Search pattern not terminated
Loaded MRTG, followed as many how-tos as I could get my hands on, configured a WMI script, and all I get was:
C:\Program Files\mrtg-2.16.0\bin>perl mrtg mrtgwmi.cfg
Daemonizing MRTG …
Do Not close this window. Or MRTG will die
2009-12-17 13:06:38: ERROR: Target[my.monitor][_IN_] ‘cscript //nologo mymonitor.vbs myserver’ (kill): Search pattern not terminated at (eval 18) line 1.
2009-12-17 13:06:38: ERROR: Target[my.monitor][_OUT_] ‘cscript //nologo mymonitor.vbs myserver’ (kill): Search pattern not terminated at (eval 19) line 1.
Terminating on signal SIGINT(2)
Turns out in my config, the line calling the script:
cscript //nologo “c:\program files\mrtg-2.16.0\scripts\mymonitor.vbs” myserver
I wasn’t wrapping it in the right apostrophe. The line should read:
Target[my.monitor]: `cscript //nologo “c:\program files\mrtg-2.16.0\scripts\mymonitor.vbs” myserver`
Using the apostrophe left of the 1 (`) and NOT the apostrophe next to the return key (‘) . I love perl, really.
Last 5 posts by Jl.
- Viewing IE and Mozilla/Firefox history from Profile Directories - November 9th, 2010
- Configure an Aironet 1200 (1231) for WPA-PSK - November 7th, 2010
- The FBD Link To The Following DIMM Failed To Train - March 26th, 2010
- Calculating flops per second per core, from Gigaflops - January 28th, 2010
- Barracuda SNMP MIBs - January 11th, 2010