Hi,
Im new to Zabbix and have been wrecking my brain with something for a week or two now.
Basically, i want to monitor mounted shares on windows clients. I have 2 pyshical disks and 5 logical. I have a basic vbscript called logicaldisktest.vbs that reports on the drives connected:
However when i run it via an active agent (userp in the .conf file)
UserParameter=LogChk,cscript //Nologo "C:\Zabbix\logicaldisktest.vbs"
it produces the output as follows:
Drive letter C, Drive letter D
However ive got 1 pyshical drive (C), an Cd drive (D) and 5 shared drives mapped to drive letters. When i run the script from the local PC it brings back all the drives (pyshical and logical). Why is it not working when it runs via Zabbix?
I've tried this a few ways now...
-Log item
-using the called script to write to a log file and importing the log file (the log file populates when i run the vbs script locally but when i leave it to the agent it only writes the physically connected drives to the log, even though its calling the same script)
-incresaing/decreasing update interval etc
-running script directly via system.run
-running a bat to run the script to populate a log file and reading from it!!!
but no matter what way i do it it outputs the same result where it doesnt pick up the logical drives when run remotely.
Any ideas?
Im new to Zabbix and have been wrecking my brain with something for a week or two now.
Basically, i want to monitor mounted shares on windows clients. I have 2 pyshical disks and 5 logical. I have a basic vbscript called logicaldisktest.vbs that reports on the drives connected:
Code:
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set colDrives = objFSO.Drives
For Each objDrive in colDrives
Wscript.Echo "Drive letter: " & objDrive.DriveLetter
Next
UserParameter=LogChk,cscript //Nologo "C:\Zabbix\logicaldisktest.vbs"
it produces the output as follows:
Drive letter C, Drive letter D
However ive got 1 pyshical drive (C), an Cd drive (D) and 5 shared drives mapped to drive letters. When i run the script from the local PC it brings back all the drives (pyshical and logical). Why is it not working when it runs via Zabbix?
I've tried this a few ways now...
-Log item
-using the called script to write to a log file and importing the log file (the log file populates when i run the vbs script locally but when i leave it to the agent it only writes the physically connected drives to the log, even though its calling the same script)
-incresaing/decreasing update interval etc
-running script directly via system.run
-running a bat to run the script to populate a log file and reading from it!!!
but no matter what way i do it it outputs the same result where it doesnt pick up the logical drives when run remotely.
Any ideas?
Comment