Hi,
Since I can’t get the openhardwaremonitor stuff working, I’m now trying another approach. From the monitoring agents page, I grabbed “wmic_if.bat” which contains:
···
@echo off
echo ^<^<^<winperf_if:sep^(44^)^>^>^>
wmic path Win32_NetworkAdapter get speed,macaddress,name,netconnectionid,netconnectionstatus /format:csv
I made a copy of that file and named it wmic_disks.bat and edited its contents like so:
@echo off
echo ^<^<^<winperf_disks:sep^(44^)^>^>^>
wmic diskdrive get model,status /format:csv
And I dropped it in the plugins directory. In telnet, I see the output near the end (bolded here):
[mbates@checkmkhost ~]$ telnet theclient 6556
Trying 10.66.1.27…
Connected to theclient.
Escape character is ‘^]’.
<<<check_mk>>>
Version: 1.2.8p11
BuildDate: Jul 5 2016
Architecture: 32bit
AgentOS: windows
Hostname: theclient
WorkingDirectory: C:\WINDOWS\system32
ConfigFile: C:\Program Files\check_mk\check_mk.ini
LocalConfigFile: C:\Program Files\check_mk\check_mk_local.ini
AgentDirectory: C:\Program Files\check_mk
PluginsDirectory: C:\Program Files\check_mk\plugins
StateDirectory: C:\Program Files\check_mk\state
ConfigDirectory: C:\Program Files\check_mk\config
TempDirectory: C:\Program Files\check_mk\temp
LogDirectory: C:\Program Files\check_mk\log
SpoolDirectory: C:\Program Files\check_mk\spool
LocalDirectory: C:\Program Files\check_mk\local
ScriptStatistics: Plugin C:1 E:0 T:0 Local C:0 E:0 T:0
OnlyFrom: 0.0.0.0/0
<<>>
[snipped]
<<>>
[snipped]
<<>>
[snipped]
[snipped]
<<>>
[snipped]
<<<winperf_if>>>
[snipped]
[snipped]
<<>>
[snipped]
<<<dotnet_clrmemory:sep(44)>>>
[snipped]
<<<wmi_cpuload:sep(44)>>>
[snipped]
<<<>>>
<<<winperf_disks:sep(44)>>>
Node,Model,Status
theclient,ST3500413AS,OK
<<<>>>
<<>>
<<>>
<<>>
1477500519
Connection closed by foreign host.
Lovely! But, when I go to add the host in the check_mk web GUI, it does not show. Screenshot here:
http://whoopis.com/misc/where%20is%20the%20plugin%20service%20output.png
What step(s) am I missing? This is check_mk version 1.2.8p13.
Thank you,
– MB
