Topic
2 replies Latest Post - ‏2013-11-27T08:58:51Z by DominikaLuszczuk
BrightBlueRay
BrightBlueRay
7 Posts
ACCEPTED ANSWER

Pinned topic Storage Sensor bug in Beta Drop 2

‏2013-10-17T18:19:07Z |

Storage sensor is failing parsing the following output:

[root@openfiler11 ~]# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdc1[0] sde1[4] sdb1[2] sdd1[1]
      11178056064 blocks super 1.2 level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
 
unused devices: <none>
 

In the logs:

2013-10-17 14:09:01,938 DiscoverManager [DiscoverWorker-3] StorageSensor-172.16.17.11 DEBUG session.SshSessionClient - Command [PATH=$PATH:/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin:/usr/X11R6/bin;cat /proc/mdstat] succeeded in session ssh2:/HostAuthcom.collation.platform.security.auth.HostAuth[root][XXXXX]/null@172.16.17.11
2013-10-17 14:09:01,939 DiscoverManager [DiscoverWorker-3] StorageSensor-172.16.17.11 DEBUG session.SshSessionClient - Spent 0.067 seconds in executeCommand
2013-10-17 14:09:01,939 DiscoverManager [DiscoverWorker-3] StorageSensor-172.16.17.11 DEBUG linux.MDStatParselet - Pattern matched 4 groups
2013-10-17 14:09:01,939 DiscoverManager [DiscoverWorker-3] StorageSensor-172.16.17.11 DEBUG linux.MDStatParselet - md device: md0
2013-10-17 14:09:01,939 DiscoverManager [DiscoverWorker-3] StorageSensor-172.16.17.11 DEBUG linux.MDStatParselet - raid: raid5
2013-10-17 14:09:01,939 DiscoverManager [DiscoverWorker-3] StorageSensor-172.16.17.11 DEBUG linux.MDStatParselet - tail:  sdc1[0] sde1[4] sdb1[2] sdd1[1]
2013-10-17 14:09:01,939 DiscoverManager [DiscoverWorker-3] StorageSensor-172.16.17.11 DEBUG linux.MDStatParselet - blocks: 11178056064
2013-10-17 14:09:01,939 DiscoverManager [DiscoverWorker-3] StorageSensor-172.16.17.11 DEBUG linux.MDStatParselet - device: sdc1
2013-10-17 14:09:01,939 DiscoverManager [DiscoverWorker-3] StorageSensor-172.16.17.11 DEBUG linux.MDStatParselet - device: sde1
2013-10-17 14:09:01,939 DiscoverManager [DiscoverWorker-3] StorageSensor-172.16.17.11 DEBUG linux.MDStatParselet - device: sdb1
2013-10-17 14:09:01,940 DiscoverManager [DiscoverWorker-3] StorageSensor-172.16.17.11 DEBUG linux.MDStatParselet - device: sdd1
2013-10-17 14:09:01,940 DiscoverManager [DiscoverWorker-3] StorageSensor-172.16.17.11 WARN engine.AgentRunner - [AgentRunner.W.3] Unexpected exception thrown in agent
java.lang.NumberFormatException: For input string: "11178056064"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:495)
        at java.lang.Integer.parseInt(Integer.java:527)
        at com.collation.platform.os.storage.linux.MDStatParselet.parse(MDStatParselet.java:89)
        at com.collation.platform.os.storage.VolumeParser.parse(VolumeParser.java:96)
        at com.collation.platform.os.storage.VolumeModeler.extractVolumeInfo(VolumeModeler.java:81)
        at com.collation.platform.os.LinuxStorage.getStorageVolumes(LinuxStorage.java:432)
        at com.collation.platform.os.LinuxOs.getStorageVolumes(LinuxOs.java:2013)
        at com.ibm.cdb.discover.sensor.dev.storage.StorageSensor.discoverStorage(StorageSensor.java:170)
        at com.ibm.cdb.discover.sensor.dev.storage.StorageSensor.discover(StorageSensor.java:94)
        at com.collation.discover.engine.AgentRunner.doRegularDiscovery(AgentRunner.java:340)
        at com.collation.discover.engine.AgentRunner.run(AgentRunner.java:262)
        at com.collation.discover.engine.DiscoverEngine.processWorkItem(DiscoverEngine.java:728)
        at com.collation.discover.engine.worker.DiscoverWorker.processWorkItemWithMetrics(DiscoverWorker.java:96)
        at com.collation.discover.engine.worker.DiscoverWorker.run(DiscoverWorker.java:142)
2013-10-17 14:09:01,941 DiscoverManager [DiscoverWorker-3] StorageSensor-172.16.17.11 ERROR cdb.TivoliStdMsgLogger - CTJTD3028E Sensor StorageSensor encountered an error, Seed: 172.16.17.11, Run ID: 2013101714083361.