[mrtg] External Monitoring Scripts - WMI returns "32"?
dan foxley
dfoxley at pacificdatavision.com
Tue Jul 6 21:08:47 MEST 2004
On Win2k SP4, Perl 5.8.0.806 & MRTG 2.10.14. I have a WMI script the graph's
out to 32 only.
With the following .cfg (target snip),
Target[localhost.cpuLoad]: `cscript //nologo cpuLoad.wsf
192.168.10.132`
I get the proper results via command line:
C:\mrtg\bin>cscript //nologo cpuload.wsf 192.168.10.132
10
10
1
192.168.10.132
When looking at the .log file for the Target I get:
1089140603 32 -1
1089140603 32 1 32 1
1089140543 32 1 32 1
1089140400 32 1 32 1
The mrtg.log also shows the following:
2004-07-06 04:39:17 -- ERROR: Target[localhost.cpuload][_OUT_] '
$target->[0]{$mode} ' did not eval into defined data
2004-07-06 04:40:17 -- Started mrtg
2004-07-06 04:40:17 -- WARNING: Problem with External get 'cscript
//nologo cpuLoad.wsf 192.168.10.132':
Expected a Number for 'out' but nothing'
Any pointers to why this External Monitoring Scipt is not graphing out
properly?
Thanks,
Dan Foxley
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list