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

newdevice: Added support for Teradici PCoIP card #6347

Merged
merged 3 commits into from
Apr 6, 2017

Conversation

enzozafra
Copy link
Contributor

DO NOT DELETE THIS TEXT

Please note

Please read this information carefully. You can run ./scripts/pre-commit.php to check your code before submitting.

  • Have you signed the Contributors agreement - please do NOT submit a pull request unless you have (signing the agreement in the same pull request is fine). Your commit message for signing the agreement must appear as per the docs.
  • Have you followed our code guidelines?

Testers

If you would like to test this pull request then please run: ./scripts/github-apply <pr_id>, i.e ./scripts/github-apply 5926

@mention-bot
Copy link

Thank you for submitting a PR @enzozafra! We have found the following @laf, @murrant and @Rosiak based on the history of these files to review this PR.

@LibreNMS-CI
Copy link

Auto-Deploy finished, Test PR at http://6347.ci.librenms.org or https://6347.ci.librenms.org

@murrant murrant added the Device 🖥️ New or added device support label Apr 4, 2017
@laf laf changed the title Added device discovery for Teradici PCoIP card newdevice: Added support for Teradici PCoIP card Apr 5, 2017
Copy link
Member

@laf laf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of changes on this.

- teradici
over:
- { graph: device_bits, text: 'Device Bits' }
#- { graph: device_pcoip-net-latency, text: 'Net Latency' }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you remove the two commented out lines please.

//SNMPv2-SMI::enterprises.25071.1.2.6.1.1.8.1 = STRING: "DXM13-9 PV2.0.D"
//SNMPv2-SMI::enterprises.25071.1.2.6.1.1.9.1 = STRING: "4.7.5"

$hardware = trim(snmp_get($device, '1.3.6.1.4.1.25071.1.2.6.1.1.5.1', '-OQv', '', ''), '" ');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need the , '', '' in the snmp_get call, those are optional.

@LibreNMS-CI
Copy link

Auto-Deploy finished, Test PR at http://6347.ci.librenms.org or https://6347.ci.librenms.org

@@ -0,0 +1,11 @@
os: teradici-pcoip
text: 'Teradici PCoIP'
type: workstation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry didn't spot this earlier.

If you are adding a new type then this needs to go into includes/definitions.inc.php (see network, firewall, appliance as examples).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see lines that point to an icon for device types, i.e. $config['device_types'][$i]['icon'] = 'server.png';
Where are these stored? I could not find them

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now that line isn't used but it's best to keep it until we either add support or remove those config lines.

@LibreNMS-CI
Copy link

Auto-Deploy finished, Test PR at http://6347.ci.librenms.org or https://6347.ci.librenms.org

@scrutinizer-notifier
Copy link

The inspection completed: 1 updated code elements

@laf laf merged commit 5b32f71 into librenms:master Apr 6, 2017
@enzozafra enzozafra deleted the issue-6346 branch April 13, 2017 15:39
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Device 🖥️ New or added device support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants