Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "Unknown Make/Model" #2062

Open
ZzBombardierzZ opened this issue Nov 6, 2024 · 0 comments
Open

Fix "Unknown Make/Model" #2062

ZzBombardierzZ opened this issue Nov 6, 2024 · 0 comments

Comments

@ZzBombardierzZ
Copy link

Is your feature request related to a problem? Please describe.
It's frustrating when occasionally I view an agent or sync to Hudu, and it shows as "Unknown Make/Model".

Interestingly, my reports don't have this issue because I pull the data from wmi_details:

                                    <td>{{ item.wmi_detail.comp_sys[0][0].Manufacturer if item.wmi_detail and item.wmi_detail.comp_sys and item.wmi_detail.comp_sys[0] and item.wmi_detail.comp_sys[0][0] and item.wmi_detail.comp_sys[0][0].Manufacturer else 'N/A' }}</td>
                                    <td>
                                        {% if item.wmi_detail and item.wmi_detail.comp_sys and item.wmi_detail.comp_sys[0] and item.wmi_detail.comp_sys[0][0] and item.wmi_detail.comp_sys[0][0].Manufacturer == 'LENOVO' and item.wmi_detail.comp_sys_prod and item.wmi_detail.comp_sys_prod[0] and item.wmi_detail.comp_sys_prod[0][0] %}
                                            {{ item.wmi_detail.comp_sys_prod[0][0].Version if item.wmi_detail.comp_sys_prod[0][0].Version else 'N/A' }}
                                        {% elif item.wmi_detail and item.wmi_detail.comp_sys and item.wmi_detail.comp_sys[0] and item.wmi_detail.comp_sys[0][0] %}
                                            {{ item.wmi_detail.comp_sys[0][0].Model if item.wmi_detail.comp_sys[0][0].Model else 'N/A' }}
                                        {% else %}
                                            N/A
                                        {% endif %}
                                    </td>

Describe the solution you'd like
When syncing data from the agent, if the make/model is unavailable, do not update the existing (correct) make/model.

Describe alternatives you've considered

  • I could store a custom field for this and do it myself, but I'd prefer not to. =)

  • Get the make and model similarly to my report's code snippet above.

Additional context
Hudu example list:
image

TRMM Agent view:
image

Report of same agent:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant