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

Avaya VSP Temperature Support #6692

Merged
merged 13 commits into from
May 31, 2017
Merged

Avaya VSP Temperature Support #6692

merged 13 commits into from
May 31, 2017

Conversation

ospfbgp
Copy link
Contributor

@ospfbgp ospfbgp commented May 20, 2017

Avaya VSP Operating System Software Temperature Support

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.

Testers

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

Avaya VSP Operating System Software Temperature Support
@LibreNMS-CI
Copy link

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

@LibreNMS-CI
Copy link

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

@LibreNMS-CI
Copy link

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

@LibreNMS-CI
Copy link

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

@LibreNMS-CI
Copy link

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

@LibreNMS-CI
Copy link

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

@ospfbgp
Copy link
Contributor Author

ospfbgp commented May 20, 2017

Code is complete and tested on multiple models of Avaya VSP.

@LibreNMS-CI
Copy link

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

* the source code distribution for details.
*/

$high_limit = 55;
Copy link
Member

Choose a reason for hiding this comment

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

Why set hard limits? If the device doesn't provide them then we calculate the high / low limits.

$low_limit = 0;

// rcChasFanAmbientTemperature
$tempsfan = snmp_walk($device, '.1.3.6.1.4.1.2272.1.4.7.1.1.3', '-Osqn');
Copy link
Member

Choose a reason for hiding this comment

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

You should change your walks to use snmpwalk_cache_*, they provide the data in an array so you don't need to do explodes and things.

default:
$var1 = "Unknown";
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Please unset() the two variables you've created from the walks so memory allocation is reduced slightly.

@ospfbgp
Copy link
Contributor Author

ospfbgp commented May 22, 2017

I know that low limit just seems to get random numbers and so I just set it at 0 so that the graphs look uniform and you have a starting value to look at. I have had some issues with switches that were too hot. 55 is the upper end of what they can handle. I want to be alerted if anything hits 55 C. It seems to be the magic high limit for the vsp switches.

I will fix the code and make it like you say. It will take me a day or two and I want to test it in my lab.

New code for VSP Temperatures
@LibreNMS-CI
Copy link

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

@LibreNMS-CI
Copy link

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

@ospfbgp
Copy link
Contributor Author

ospfbgp commented May 23, 2017

New code submitted. Hope it is up to the task. :-)

I have unset my 1 snmp_walk
@LibreNMS-CI
Copy link

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

@laf
Copy link
Member

laf commented May 31, 2017

I've made some small changes, will merge once checks complete.

@LibreNMS-CI
Copy link

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

@scrutinizer-notifier
Copy link

The inspection completed: No new issues

@laf laf merged commit f8aadf2 into librenms:master May 31, 2017
Olen pushed a commit to Olen/librenms that referenced this pull request Jan 12, 2018
* Avaya VSP Temperature Support

Avaya VSP Operating System Software Temperature Support

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

New code for VSP Temperatures

* Update avaya-vsp.inc.php

* Update avaya-vsp.inc.php

I have unset my 1 snmp_walk

* small update to variable names and use
@lock
Copy link

lock bot commented May 18, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed.

@lock lock bot locked as resolved and limited conversation to collaborators May 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants