Today I tried a first update from V0.8.8a to V0.8.8b (using cmd poller). Now I have a problem with my Script/command using UNC Path (data is located on remote server!) starting with double backslashes (\\):
Current Input String within Data Input Methods:
Code: Select all
cscript.exe <path_cacti>/scripts/wmi/wmi_read_memory_V10.vbs //Nologo //T:20 \\cactilogserver/wmi$/log/cacti/test/<hostname>_wmi.log get MemoryTotal,MemoryUsed,MemoryFree
Code: Select all
Script: cscript.exe E:/Cacti/cacti/test/scripts/wmi/wmi_read_cpu_V10.vbs //Nologo //T:20 \\\\cactilogserver/wmi$/log/cacti/test/defrsrv722_wmi.log get CPU0,CPU1,CPU2,CPU3,CPU4,CPU5,CPU6,CPU7,CPUTotal
RRD: E:\Cacti\cacti\test\rra\defrsrv722_-_w2k8_r2_vm_cpu0_2775.rrd
The result after rebuilding the poller cache is of course no more data!
Update 04.09.2013:
Problem seems to be the "rebuild of the poller cache". Each defined Input String form the Data Input Methods or Data Queries that contains a backslash (\) turns twice after a poller cache rebuild! That's new in version 0.8.8b.
In my opinion it's a bug!
Update 06.09.2013:
Found a new bug within [Data Queries] and Rebuilding Poller Cache function.
In my XML-file in section <script_path> I have only defined slashes (/) for the folder path:
Code: Select all
<interface>
<name>Get physik. Disk Info</name>
<description>Queries the Win32_PerfRawData_PerfDisk_LogicalDisk class of a W32 host using WMI.</description>
<script_path>cscript.exe |path_cacti|/scripts/wmi/wmi_read_hdd_V10.vbs</script_path>
<arg_prepend>//NOLOGO //T:20 \\cactiserver.mydomain.com/wmi$/log/cacti/test/|host_hostname|_wmi.log</arg_prepend>
<arg_index>index</arg_index>
a) all single slashes from the xml-file turns to a double backslash for the executable script
b) all double backslashes (necessary to connect to remote server) turns into four backslashes
(Details from [View poller Cache]):
Code: Select all
Script: cscript.exe E:\\Cacti\\cacti\\test\\scripts\\wmi\\wmi_read_hdd_V10.vbs //NOLOGO //T:20 \\\\defrwft032dws86.sbc.dws.eur.deuba.com/wmi$/log/cacti/test/defrvat722dws36_wmi.log get freembytes C:
Windows 2008 R2
Apache 2.2.21 (WIN32)
PHP 5.2.17
MYSQL 5.5.20 (X64)
cmd.php poller