VMware Cloud Community
bharathhyperic
Contributor
Contributor

Metrics not returned- looks like a faulty autodiscovery

Hi,

One of the agents was not returning data to the server. We removed that platform from the server. The server log gave us the following on deletion:


2008-11-24 16:32:42,562 ERROR [http-0.0.0.0-7080-29] [org.hyperic.hq.bizapp.server.session.AppdefBossEJBImpl] Invalid entity still in resource table: 1:10313
2008-11-24 16:32:46,676 ERROR [http-0.0.0.0-7080-29] [org.hyperic.hq.ui.action.resource.hub.RemoveResourceAction] Removing resource 1:10518failed.
2008-11-24 16:32:46,684 ERROR [http-0.0.0.0-7080-29] [org.hyperic.hq.bizapp.server.session.AppdefBossEJBImpl] Invalid entity still in resource table: 1:10313


Autodiscovery output in the server log:


2008-11-24 17:08:01,925 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Merging platform into appdef: 172.17.2.108
2008-11-24 17:08:01,929 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Merging Server into inventory: name: SUINORA00001 Win32 ProcessServer AIIdentifier: 172.17.2.108 Win32 ProcessServer
2008-11-24 17:08:01,930 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Found existing server: SUINORA00001 Win32 ProcessServer as match for: 172.17.2.108 Win32 ProcessServer
2008-11-24 17:08:01,930 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Updating server: SUINORA00001 Win32 ProcessServer
2008-11-24 17:08:01,931 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Updating services for server: SUINORA00001 Win32 ProcessServer
2008-11-24 17:08:01,940 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Completed merging server: SUINORA00001 Win32 ProcessServer into inventory
2008-11-24 17:08:01,945 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Completed Merging platform into appdef: 172.17.2.108
2008-11-24 17:08:01,945 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Merging platforms (platform count=1, reported by serverId=10957) into appdef...
2008-11-24 17:08:01,945 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Merging platform into appdef: 172.17.2.108
2008-11-24 17:08:01,948 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Merging Server into inventory: name: null AIIdentifier: null
2008-11-24 17:08:01,949 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Found existing server: 172.17.2.108 Net Services as match for: null
2008-11-24 17:08:01,949 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Setting AIID to existing=172.17.2.108 Net Services
2008-11-24 17:08:01,949 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Updating server: 172.17.2.108 Net Services
2008-11-24 17:08:01,950 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Updating services for server: 172.17.2.108 Net Services
2008-11-24 17:08:01,956 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Completed merging server: 172.17.2.108 Net Services into inventory
2008-11-24 17:08:01,960 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Completed Merging platform into appdef: 172.17.2.108
2008-11-24 17:08:01,961 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Merging platforms (platform count=1, reported by serverId=10953) into appdef...
2008-11-24 17:08:01,961 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Merging platform into appdef: 172.17.2.108
2008-11-24 17:08:01,964 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Merging Server into inventory: name: SUINORA00001 Win32 WindowsServer AIIdentifier: 172.17.2.108 Win32 WindowsServer
2008-11-24 17:08:01,964 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Found existing server: SUINORA00001 Win32 WindowsServer as match for: 172.17.2.108 Win32 WindowsServer
2008-11-24 17:08:01,964 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Updating server: SUINORA00001 Win32 WindowsServer
2008-11-24 17:08:01,966 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Updating services for server: SUINORA00001 Win32 WindowsServer
2008-11-24 17:08:01,972 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Completed merging server: SUINORA00001 Win32 WindowsServer into inventory
2008-11-24 17:08:01,977 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Completed Merging platform into appdef: 172.17.2.108
2008-11-24 17:08:01,977 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Merging platforms (platform count=1, reported by serverId=10954) into appdef...
2008-11-24 17:08:01,977 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Merging platform into appdef: 172.17.2.108
2008-11-24 17:08:01,980 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Merging Server into inventory: name: SUINORA00001 Win32 NetworkServer AIIdentifier: 172.17.2.108 Win32 NetworkServer
2008-11-24 17:08:01,981 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Found existing server: SUINORA00001 Win32 NetworkServer as match for: 172.17.2.108 Win32 NetworkServer
2008-11-24 17:08:01,981 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Updating server: SUINORA00001 Win32 NetworkServer
2008-11-24 17:08:01,982 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Updating services for server: SUINORA00001 Win32 NetworkServer
2008-11-24 17:08:01,990 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Completed merging server: SUINORA00001 Win32 NetworkServer into inventory
2008-11-24 17:08:01,994 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Completed Merging platform into appdef: 172.17.2.108
2008-11-24 17:08:01,994 INFO [Thread-117395] [org.hyperic.hq.autoinventory.server.session.RuntimeReportProcessor] Completed processing Runtime AI report in: 0 seconds.
2008-11-24 17:08:02,037 INFO [RuntimeAIServiceMerger1] [org.hyperic.hq.autoinventory.server.session.AutoinventoryManagerEJBImpl] Creating new service: SUINORA00001 Win32 CPU 1 (2493Mhz Intel Xeon)
2008-11-24 17:08:02,059 WARN [MeasurementEnabler1] [org.hyperic.hq.measurement.server.session.DerivedMeasurementManagerEJBImpl] Error turning on default metrics, configuration ({platform.id=10610, iishost=_Total, service_name=W3SVC, platform.log_track.level=Warn, platform.ip=172.17.2.108, platform.name=SUINORA00001, platform.config_track.enable=true, platform.log_track.enable=true, platform.fqdn=172.17.2.108, installpath=C:\WINDOWS\system32, platform.type=Win32, platform.log_track.eventlogs=System}) couldn't be validated

To me it looks like:

Something happened and the DB got corrupted. When we delete the platform it is not deleting properly and the bad data does not go away. When we do an autodiscovery, it reuses this bad data, which causes an invalid configuration, which is the reason why the metrics are not returned. But I could be wrong.

Does anyone know how to fix this?
0 Kudos
5 Replies
admin
Immortal
Immortal

Does the platform still appear in Browse Resources? You might want to
just stop the agent, remove its data directory and restart it.

Charles


0 Kudos
bharathhyperic
Contributor
Contributor

> Does the platform still appear in Browse Resources?

Yes it does
> You might want to
> ust stop the agent, remove its data directory and
> restart it.
We have tried that and it did not fix the problem
>
> Charles
>
>
0 Kudos
admin
Immortal
Immortal

So do you get an error when you try to delete the platfrom from Browse
Resources?

Charles


0 Kudos
bharathhyperic
Contributor
Contributor

Yes. I have this in my first post. I'll paste it again:

008-11-24 16:32:42,562 ERROR [http-0.0.0.0-7080-29] [org.hyperic.hq.bizapp.server.session.AppdefBossEJBImpl] Invalid entity still in resource table: 1:10313
2008-11-24 16:32:46,676 ERROR [http-0.0.0.0-7080-29] [org.hyperic.hq.ui.action.resource.hub.RemoveResourceAction] Removing resource 1:10518failed.
2008-11-24 16:32:46,684 ERROR [http-0.0.0.0-7080-29] [org.hyperic.hq.bizapp.server.session.AppdefBossEJBImpl] Invalid entity still in resource table: 1:10313


This is from the server log when we tried deleting that platform.
0 Kudos
bharathhyperic
Contributor
Contributor

I'd like to correct my previous post. After deletion the platform does not appear in the browse resources
0 Kudos