Bug #42684 Windows's agent-run-os-tests reports unknown error, but some are available.
Submitted: 9 Feb 2009 8:39 Modified: 9 Jan 2015 14:37
Reporter: Meiji KIMURA Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Enterprise Monitor: Agent Severity:S3 (Non-critical)
Version:2.0.2 OS:Windows (XP, Vista)
Assigned to: Jan Kneschke CPU Architecture:Any

[9 Feb 2009 8:39] Meiji KIMURA
Description:
We can use 'agent-run-os-tests' option for agents in order to check which item we can use. A result of output report 'Unknown error', but some of them are reported by agent actually.

[A result of 'agent-run-os-tests']
C:\cygwin\home\mysqldev\bs\merlin\agent-2.0\src\mysql-proxy-0.7.0r1185\plugins\agent\sigar-test-all.c.485: 

sigar_disk_usage_get() failed with: Unknown error (10035) 

C:\cygwin\home\mysqldev\bs\merlin\agent-2.0\src\mysql-proxy-0.7.0r1185\plugins\agent\sigar-test-all.c.447: 

sigar_file_system_usage_get() failed with: Unknown error (10035) 

C:\cygwin\home\mysqldev\bs\merlin\agent-2.0\src\mysql-proxy-0.7.0r1185\plugins\agent\sigar-test-all.c.447: 

sigar_file_system_usage_get() failed with: Unknown error (10035) 

C:\cygwin\home\mysqldev\bs\merlin\agent-2.0\src\mysql-proxy-0.7.0r1185\plugins\agent\sigar-test-all.c.538 (test_sigar_sys_info_get): 

[debug-log output of Windows' agent]
os:disk:disk_bytes_read: OK
os:disk:disk_bytes_written: OK
os:disk:disk_queue: OK
os:disk:disk_reads: OK
os:disk:disk_rtime: OK
os:disk:disk_servicetime: NG
os:disk:disk_snaptime: OK
os:disk:disk_time: OK
os:disk:disk_writes: OK
os:disk:disk_wrime: OK

How to repeat:
Run mysql-monitor-agent.exe --agent-run-os-tests on Windows platform.

Suggested fix:
[Workaround]
N/A

[Suggested fix:]
I hope that valid items equal to a result of --agent-run-os-tests.
[19 Feb 2009 17:50] Gary Whizin
Bill can reproduce on Vista with SP1.
[23 Feb 2009 5:01] Meiji KIMURA
I could reproduce this behavior on Windows XP(SP3), Vista(SP1).
[4 Aug 2009 23:23] Enterprise Tools JIRA Robot
Gary Whizin writes: 
didn't make final beta release, moving to gamma
[7 Aug 2009 21:22] Enterprise Tools JIRA Robot
Jan Kneschke writes: 
revno: 1481
committer: jan@mysql.com
branch nick: trunk
timestamp: Fri 2009-08-07 23:18:12 +0200
message:
  replaced strerror() by sigar_sterror() which maps win32 errors nicely (fixes #42684)
[10 Aug 2009 11:42] Jan Kneschke
WSAEWOULDBLOCK
10035 (0x2733)

To check if this bug is fix, the same setup has to be used to actually trigger this error again. Based on the error-msg it may need some unmounted network drives (webdav/http, smb, ...)

We log the dev/dir-name the error happens against and the proper windows error-msg.
[11 Aug 2009 1:12] Enterprise Tools JIRA Robot
Keith Russell writes: 
Patch installed in versions => 2.1.0.1092.
[12 Aug 2009 22:13] Enterprise Tools JIRA Robot
Bill Weber writes: 
using 2.1.0.1093 agent on same boxes (Windows 2003 and Windows Vista), get following:

G:\bs\bs\merlin\agent-2.0\src\mysql-proxy-0.7.0r1489_20090811_1738\plugins\agent\sigar-test-all.c.501: 

sigar_disk_usage_get() failed with: The system cannot find the file specified.

G:\bs\bs\merlin\agent-2.0\src\mysql-proxy-0.7.0r1489_20090811_1738\plugins\agent\sigar-test-all.c.463: 

sigar_file_system_usage_get() failed with: The system cannot find the path specified.