Bug #42684 Windows's agent-run-os-tests reports unknown error, but some are available.
Submitted: 9 Feb 9:39 Modified: 11 Aug 3:12
Reporter: Meiji KIMURA
Status: QA testing
Category:Monitoring: Agent Severity:S3 (Non-critical)
Version:2.0.2 OS:Microsoft Windows (XP, Vista)
Assigned to: Jan Kneschke Target Version:

[9 Feb 9: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 18:50] Gary Whizin
Bill can reproduce on Vista with SP1.
[23 Feb 6:01] Meiji KIMURA
I could reproduce this behavior on Windows XP(SP3), Vista(SP1).
[5 Aug 1:23] Enterprise Tools JIRA Robot
Gary Whizin writes: 
didn't make final beta release, moving to gamma
[7 Aug 23: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 13: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 3:12] Enterprise Tools JIRA Robot
Keith Russell writes: 
Patch installed in versions => 2.1.0.1092.
[13 Aug 0: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.