HPE Comware Transceiver Sensor Support #3889

Merged
merged 6 commits into from Jul 28, 2016

Projects

None yet

4 participants

@Rosiak
Contributor
Rosiak commented Jul 27, 2016

As stated in the title.
Thanks to @laf for the initial sensor work.
#2702

Rosiak added some commits Jul 27, 2016
@Rosiak Rosiak Initial commit a02312e
@Rosiak Rosiak Add mib a162fe7
@Rosiak Rosiak Wrong bias did used d83ed6b
@Rosiak Rosiak copy paste duh
b8dfdc1
@murrant murrant commented on an outdated diff Jul 27, 2016
includes/discovery/sensors/pre-cache/comware.inc.php
+ * Copyright (c) 2016 Søren Friis Rosiak <sorenrosiak@gmail.com>
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation, either version 3 of the License, or (at your
+ * option) any later version. Please see LICENSE.txt at the top level of
+ * the source code distribution for details.
+ */
+
+if ($device['os'] == 'comware') {
+
+ echo 'Pre-cache Comware: ';
+
+ $comware_oids = array();
+ echo 'Caching OIDs:';
+
+ $comware_oids = snmpwalk_cache_multi_oid($device, 'hh3cTransceiverInfoTable', $oids, 'HH3C-TRANSCEIVER-INFO-MIB');
@murrant
murrant Jul 27, 2016 Contributor

replace $oids with array()

@Rosiak Rosiak Fix offset crash
d63db16
@Rosiak Rosiak Minor stuff
cfb737f
@laf laf added the New-Device label Jul 28, 2016
@laf laf merged commit bfce191 into librenms:master Jul 28, 2016

2 checks passed

Auto-Deploy Build finished.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@Rosiak Rosiak deleted the Rosiak:more-comware branch Feb 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment