Bug #47993 Refresh inventory does not collect os_description

Submitted: 12 Oct 2009 11:55 Modified: 9 Nov 2015 16:19
Reporter: Diego Medina Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Enterprise Monitor: Agent Severity:S3 (Non-critical)
Version:2.1.1.1104 OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[12 Oct 2009 11:55] Diego Medina
Description:
There are cases where the "OS" field on the UI->Monitor->Meta info section is empty.

Clicking on the refresh link on the manager servers section does not help filling in this field.

Looking at the agent log, after a "refresh inventory", the agent sends 

    <datum>
     <target>
      <namespace>os</namespace>
      <classname>cpu</classname>
      <instance>ssh:{38:38:e0:7e:90:c3:92:92:a2:64:eb:43:b6:7b:68:00}.0</instance>
      <attribute>cpu_name</attribute>
     </target>
     <utc>2009-10-12T11:35:43.849Z</utc>
     <value>MacBookPro4,1</value>
    </datum>

but does not send 
    <datum>
     <target>
      <namespace>os</namespace>
      <classname>os</classname>
      <instance>ssh:{38:38:e0:7e:90:c3:92:92:a2:64:eb:43:b6:7b:68:00}.0</instance>
      <attribute>os_description</attribute>
     </target>
     <utc>2009-10-12T11:35:42.791Z</utc>
     <value>Mac OS X Leopard</value>
    </datum>
which is used for the Meta info

How to repeat:
1- Install and start the service manager.
2- Install the agent
3- Set the agent log-level=debug
4- Start the agent
5- Once the agent and mysql instance is shown on the UI, 
go to UI->Settings->Manage servers
6- Click on the "refresh" link next to the server name
7- Wait a few minutes and then click again on the refresh link.
8- After another minute or two, grep the agent log for os_description, you will see it only once.
9- now grep for cpu_name, you will see it at least 3 times (the initial time when the agent reports all the data to the dashboard, and two more times corresponding to the times  you clicked on "refresh"

Suggested fix:
On refresh, send all the OS data again.
[12 Oct 2009 19:08] Enterprise Tools JIRA Robot
Darren Oldag writes: 
does the same lack of os.* stuff come across on an agent restart?  my fear is that some cached information is stuck up in the service manager, and is not telling the agent to resend *everything*.
[9 Nov 2015 16:19] Mark Leith
Not an issue in 3.x.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.054 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.