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

Add state support FAN, Power Supply Avaya VSP #6693

Merged
merged 4 commits into from
May 23, 2017
Merged

Add state support FAN, Power Supply Avaya VSP #6693

merged 4 commits into from
May 23, 2017

Conversation

ospfbgp
Copy link
Contributor

@ospfbgp ospfbgp commented May 20, 2017

Adding FAN and Power Supply support for Avaya VOSS(VSP operating systems platform)

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

Adding FAN and Power Supply support for Avaya VOSS(VSP operating systems platform)
@LibreNMS-CI
Copy link

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

@LibreNMS-CI
Copy link

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

}
}

discover_sensor($valid['sensor'], 'state', $device, $current_oid, $index, $state_name, $descr, '1', '1', null, null, '3', '3', $state);
Copy link
Member

Choose a reason for hiding this comment

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

If $index is just single digits then it will conflict with the next state discovery.

Better to use "rcChasFanOperStatus.$index" in the discover_sensor() call. Same for below.

$index has been changed to rcChasFanOperStatus.$index and rcChasPowerSupplyOperStatus.$index in discover_sensor and create_sensor_to_state_index
@LibreNMS-CI
Copy link

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

}
}

discover_sensor($valid['sensor'], 'state', $device, $current_oid, rcChasFanOperStatus.$index, $state_name, $descr, '1', '1', null, null, '3', '3', $state);
Copy link
Member

Choose a reason for hiding this comment

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

You're missing the " around rcChasFanOperStatus and same with the below :)

its always the details.  nice to have another pair of eyes. :-)
@LibreNMS-CI
Copy link

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

@scrutinizer-notifier
Copy link

The inspection completed: No new issues

@ospfbgp
Copy link
Contributor Author

ospfbgp commented May 22, 2017

I hope I finally have this one right?

laf thank you for your patience with my horrible code writing. :-)

@laf laf merged commit 407c0a4 into librenms:master May 23, 2017
@laf
Copy link
Member

laf commented May 23, 2017

All good, thanks for contributing :)

@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