F5 Monitoring Agent Issues

I cannot get the Monitoring agent to run correctly

I am using SCOM 2007 R2, on Windows 2008, with a SQL 2008 server.

The install failed with similar issues

<04-01-2010 11:19:18> FatalError: The F5 Monitoring Service did not start within the timeout period.

<04-01-2010 11:19:18> FatalError: There was a problem attempting to make calls into the F5 Monitoring Service. Check the Windows Event Log and trace logs for the reason and try starting the service again manually.

F5Networks.F5Exception: Unable to connect to data source: The PerformanceDataSourceConnector connection to Operations Manager Health Service host HPVCPSCOM01 could not be established: Failed to connect to an IPC Port: The system cannot find the file specified.

: HPVCPSCOM01 ---> F5Networks.ManagementPack.DataAccess.ManagedConnections.ConnectionFailedException: The PerformanceDataSourceConnector connection to Operations Manager Health Service host HPVCPSCOM01 could not be established: Failed to connect to an IPC Port: The system cannot find the file specified.

More info, I get errors in the F5 Management Event Log about - Requested registry access is not allowed.

All the accounts have the admin access they need. The database is created in SQL, the account the F5 agent is running under is an admin for SCOM, SQL and the machine.

Any ideas?

Hello,

Can you provide the full message in the F5 Management Pack event log that said: “Requested registry access is not allowed”?

Thank you,

Stephen Fisher

F5 Networks

Here is the whole dump of the event log entry

Log Name: F5 Monitoring Log

Source: F5 Events

Date: 4/1/2010 1:27:59 PM

Event ID: 450

Task Category: None

Level: Error

Keywords: Classic

User: N/A

Computer: HPVCPSCOM01.bob.com

Description:

Requested registry access is not allowed.

Event Xml:

450

2

0

0x80000000000000

2547

F5 Monitoring Log

HPVCPSCOM01.bob.com

Requested registry access is not allowed.

Thank you for the info.

Can you also provide the diagnostic system and product information described at this page?

http://devcentral.f5.com/wiki/default.aspx/MgmtPack/GeneralTroubleshooting.html

The F5 monitoring service log will also be helpful to determine why this happened. Once you enable verbose service logging, you may need to restart the F5 Monitoring service. Even though the service may fail to start, the log should hopefully be generated with more detailed diagnostic information.

Thank you,

Stephen Fisher

F5 Networks

Logs files

Hello,

Thanks for your patience with this issue.

It looks like one of the F5 modules is failing to load inside of the Operations Manager Health Service. I expect you may also see an exception in your Operations Manager event log related to a ConditionDetection module.

Specifically, the F5 module is attempting to access the registry on the Health Service’s host machine. The key is HKLM\Software\F5Networks\ManagementPack, and write-access is requested.

Can you verify that your OpsMgr Health Service is running as an account which has local administrator privileges on the machine in question?

The error message isn’t very clear, and we’re looking at improving that in a subsequent release, and we’ll see if we can change this to a simple key read-request.

Thank you,

Stephen Fisher

F5 Networks

As far as I can tell all the permissions should be right. The Health Agent is running under Local System, all the other pieces of ops manager are running under domain or local admin accounts.

Can you look at the permissions on the above registry key?

If you can temporarily change the key permissions to Allow Everyone write-access, and retry HealthService, that would help determine if the permissions are indeed the culprit.

Also, you could you log into the Management Server with the Health Service as the specified action account, and attempt to create a new value within the above registry key section.

Thanks,

Stephen Fisher

F5 Networks

Ok I set the regkey to everyone full control and got a different error

Log Name: F5 Monitoring Log

Source: F5 Events

Date: 4/5/2010 2:29:28 PM

Event ID: 201

Task Category: None

Level: Error

Keywords: Classic

User: N/A

Computer: HPVCPSCOM01.bob.com

Description:

Unable to connect to data source: The PerformanceDataSourceConnector connection to Operations Manager Health Service host HPVCPSCOM01 could not be established: Failed to connect to an IPC Port: The system cannot find the file specified.

: HPVCPSCOM01

Detailed Exception Information:

F5Networks.F5Exception: Unable to connect to data source: The PerformanceDataSourceConnector connection to Operations Manager Health Service host HPVCPSCOM01 could not be established: Failed to connect to an IPC Port: The system cannot find the file specified.

: HPVCPSCOM01 ---> F5Networks.ManagementPack.DataAccess.ManagedConnections.ConnectionFailedException: The PerformanceDataSourceConnector connection to Operations Manager Health Service host HPVCPSCOM01 could not be established: Failed to connect to an IPC Port: The system cannot find the file specified.

: HPVCPSCOM01 ---> System.Runtime.Remoting.RemotingException: Failed to connect to an IPC Port: The system cannot find the file specified.

Server stack trace:

at System.Runtime.Remoting.Channels.Ipc.IpcPort.Connect(String portName, Boolean secure, TokenImpersonationLevel impersonationLevel, Int32 timeout)

at System.Runtime.Remoting.Channels.Ipc.ConnectionCache.GetConnection(String portName, Boolean secure, TokenImpersonationLevel level, Int32 timeout)

at System.Runtime.Remoting.Channels.Ipc.IpcClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)

at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at F5Networks.Remoting.ServerBase.get_HostProcess()

at F5Networks.ManagementPack.DataAccess.OperationsManager.DataSource.DataSourceConnector`2.Connect()

--- End of inner exception stack trace ---

at F5Networks.ManagementPack.DataAccess.OperationsManager.DataSource.DataSourceConnector`2.Connect()

at F5Networks.ManagementPack.DataAccess.OperationsManager.DataSource.ManagedDataSourceConnection`3.CoreConnect()

at F5Networks.ManagementPack.DataAccess.ManagedConnections.ManagedConnectionBase`1._DoConnectWithRecovery()

at F5Networks.ManagementPack.DataAccess.ManagedConnections.ManagedConnectionBase`1.Connect()

at F5Networks.ManagementPack.DataAccess.ManagedConnections.ConnectionPoolBase`2._CreatePoolMember()

at F5Networks.ManagementPack.DataAccess.ManagedConnections.ConnectionPoolBase`2._InitializeCache()

at F5Networks.ManagementPack.DataAccess.ManagedConnections.ConnectionPoolBase`2.Initialize(UInt32 initialOperationSize)

at F5Networks.ManagementPack.Services.DeviceMonitor._CreateDataSourceConnection()

at F5Networks.ManagementPack.Services.DeviceMonitor._InitializeDataStore()

--- End of inner exception stack trace ---

Event Xml:

201

2

0

0x80000000000000

3552

F5 Monitoring Log

HPVCPSCOM01.bob.com

Unable to connect to data source: The PerformanceDataSourceConnector connection to Operations Manager Health Service host HPVCPSCOM01 could not be established: Failed to connect to an IPC Port: The system cannot find the file specified.

: HPVCPSCOM01

Detailed Exception Information:

F5Networks.F5Exception: Unable to connect to data source: The PerformanceDataSourceConnector connection to Operations Manager Health Service host HPVCPSCOM01 could not be established: Failed to connect to an IPC Port: The system cannot find the file specified.

: HPVCPSCOM01 ---> F5Networks.ManagementPack.DataAccess.ManagedConnections.ConnectionFailedException: The PerformanceDataSourceConnector connection to Operations Manager Health Service host HPVCPSCOM01 could not be established: Failed to connect to an IPC Port: The system cannot find the file specified.

: HPVCPSCOM01 ---> System.Runtime.Remoting.RemotingException: Failed to connect to an IPC Port: The system cannot find the file specified.

Server stack trace:

at System.Runtime.Remoting.Channels.Ipc.IpcPort.Connect(String portName, Boolean secure, TokenImpersonationLevel impersonationLevel, Int32 timeout)

at System.Runtime.Remoting.Channels.Ipc.ConnectionCache.GetConnection(String portName, Boolean secure, TokenImpersonationLevel level, Int32 timeout)

at System.Runtime.Remoting.Channels.Ipc.IpcClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)

at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at F5Networks.Remoting.ServerBase.get_HostProcess()

at F5Networks.ManagementPack.DataAccess.OperationsManager.DataSource.DataSourceConnector`2.Connect()

--- End of inner exception stack trace ---

at F5Networks.ManagementPack.DataAccess.OperationsManager.DataSource.DataSourceConnector`2.Connect()

at F5Networks.ManagementPack.DataAccess.OperationsManager.DataSource.ManagedDataSourceConnection`3.CoreConnect()

at F5Networks.ManagementPack.DataAccess.ManagedConnections.ManagedConnectionBase`1._DoConnectWithRecovery()

at F5Networks.ManagementPack.DataAccess.ManagedConnections.ManagedConnectionBase`1.Connect()

at F5Networks.ManagementPack.DataAccess.ManagedConnections.ConnectionPoolBase`2._CreatePoolMember()

at F5Networks.ManagementPack.DataAccess.ManagedConnections.ConnectionPoolBase`2._InitializeCache()

at F5Networks.ManagementPack.DataAccess.ManagedConnections.ConnectionPoolBase`2.Initialize(UInt32 initialOperationSize)

at F5Networks.ManagementPack.Services.DeviceMonitor._CreateDataSourceConnection()

at F5Networks.ManagementPack.Services.DeviceMonitor._InitializeDataStore()

--- End of inner exception stack trace ---

After changing the permissions, you will likely need to restart the Health Service, and then the F5 Monitoring Service. While the Health Service is restarting, if the F5 Monitoring Service is already running, you may see temporary connection errors.

Also, can you look for any errors in the Operations Manager Event Log, specifically those that are coming from the Health Service. For the previous registry access issue, the OpsMgr log should have entries for those errors. For the current connectivity issues, it may have the same or different errors.

Thank you,

Stephen Fisher

F5 Networks

Ok, I have completely uninstalled the F5 modules, deleted the reg keys and all the files. On reinstallation I get an error. I have attached a screenshot. The accounts I used are all admins as required. What am I missing? Thanks

Hello,

I cannot see the attached screenshot. Can you email your screenshot and installation logs to ManagementPack@f5.com? Also if you can include your F5 Monitoring Event Log and Operations Manager Event Log entries during the time period when the issues occurred, we can investigate.

Thank you,

Stephen Fisher

F5 Networks

I just want to post, I finally have the service up and running. I had used an account for th management agent account in Ops Manager that didn’t have some permissions it needs. That seemed to have corrected that. Now I am on to discovery of the devices..and having some issues there but I have some research to do first before I report any issues Thanks for the help

specifically which permissions were corrected? I am having the same problem and would like to know how you fixed it.

Can you please post which permissions were changed to get this functional again? I am having the same issue.

Thank you in advance,

Joe

Hi Joe,

I would probably first look into the “Default Action Account” profile: SCOM Management Console >> Administration >> Run As Configuration >> Profiles >> Default Action Account >> Properties >> Run As Accounts and make sure the action account specified there has enough privileges. The “Local System Action Account” should probably be appropriate. If it’s a different action account, you’ll have to check the privileges in the Run As Configuration >> Accounts section.

Another relevant Run As Profile involved in reading / writing to data sources would probably be the “Operational Database Account”. Make sure the underlying action account has enough privileges on the OperationsManager SQL database. By default, if no action account is specified for this profile, the SCOM SDK service account is used.

Julian

(F5 Management Pack Team)