31 Commits

Author SHA1 Message Date
Jeffrey Townsend
0084c3eca5 Buffer overrun fixes. 2019-07-30 19:26:50 +00:00
Jeffrey Townsend
cfb711ade9 Call the onlpm_find_file template. 2019-05-27 19:16:09 +00:00
Jeffrey Townsend
0d874645da Add the ability to pause and continue the service process. 2019-05-21 22:10:45 +00:00
Jeffrey Townsend
7faad73b4a Enable ASR generation. 2018-04-05 17:32:31 +00:00
Jeffrey Townsend
3ef3bb3b49 Code Module Cleanup
- Fix autogen definitions for all code modules
- Rerun autogen on all modules
2018-03-08 20:20:50 +00:00
Jeffrey Townsend
ed9a13a10b The onlp-snmpd daemon now exports the current utilization via domain socket. 2017-10-18 16:08:59 +00:00
Jeffrey Townsend
edc98e7436 Add option to output utilization only. 2017-09-26 17:43:33 +00:00
Ken Chiang
e973183257 Remove/demote log messages in sensor and resource update functions. 2017-05-04 17:03:28 -07:00
Ken Chiang
a91753e3ba Refactor onlp-snmpd platform and sensor handling so that updates happen in a separate thread. 2017-05-01 18:09:16 -07:00
Ken Chiang
572ed3b889 Call pclose after processing mpstat output. 2017-02-06 15:59:48 -08:00
Jeffrey Townsend
888828db06 Merge pull request #149 from kenchiang/onlp-snmp
onlp-snmp: registering onl resource
2017-01-09 17:46:59 -08:00
Ken Chiang
261003b713 In resource_int_register, use netsnmp_register_instance
so that SNMP trap can be generated.
2017-01-09 16:53:35 -08:00
Jeffrey Townsend
6ab5f38d33 The column output may differ based on the locale settings.
When run from init the mpstat output is in 24 time and does not have the AM/PM column.
This change handles both possibilities.
2016-12-20 21:10:08 +00:00
Ken Chiang
e85b4d45f0 Redefine CpuAllPercentUtilization and CpuAllPercentIdle to be 100 times the percentage rounded to the nearest integer.
Use aim_time_monotonic.
Add ONLP_SNMP_CONFIG_RESOURCE_UPDATE_SECONDS.
2016-12-19 13:33:55 -08:00
Ken Chiang
68da278bed Add CpuAllPercentUtilization and CpuAllPercentIdle. 2016-12-19 11:23:56 -08:00
Ken Chiang
7d6aeb18fd Always call snmp_set_var_typed_value so that snmpwalk does not prematurely
terminate.  If sensor is not present, return a value of zero
or a zero-length string.
2016-12-14 15:57:02 -08:00
Jeffrey Townsend
b42afe586b Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux 2016-12-14 16:55:40 +00:00
Jeffrey Townsend
1c7beb8005 - Add platform objects
These were accidentally overwritten by the sensor registration changes.
  They belong in their own file anyways so the code has been split and the registration
  moved to a common location.
2016-12-14 16:53:35 +00:00
Jeffrey Townsend
cd36ff8afd Merge pull request #138 from maxchung2001/master
Added community support email opennetworklinux@googlegroups.com
2016-12-12 15:15:46 -08:00
Jeffrey Townsend
525e518716 Add new OCP-ONL-RESOURCE-MIB
Used to define custom host resource objects.
2016-12-12 22:01:27 +00:00
Jeffrey Townsend
e5cb3f6ec1 [from @kenchiang]
Rework snmp oid registration so that the temperature, fan, and PSU oids are registered as netsnmp tables. When a sensor is added or deleted, the corresponding table is updated accordingly.
2016-12-12 20:10:30 +00:00
Sung-Kuang (Max) Chung
1a90e3c514 Added community support email opennetworklinux@googlegroups.com,
as support@bigswitch.com "is a support line for commercial Big Switch
products for customer with paid licenses."
2016-12-07 21:56:03 -08:00
Jeffrey Townsend
75bef2b248 Fix indexing bug. 2016-10-04 23:48:22 +00:00
Jeffrey Townsend
ccbca0e30b Add module declaration file. 2016-06-18 00:32:44 +00:00
Jeffrey Townsend
6c471976bc Move the onl-mibs package to 'all'. 2016-04-15 19:45:56 +00:00
Jeffrey Townsend
4f1f372a0e - Add snmp tools
- Enable snmp systemview with the ONL MIBS
- ONL MIB package
2016-04-15 16:51:36 +00:00
Jeffrey Townsend
07afc973c0 - Use new official OCP ONL subtree.
- Implement the ONL Platform information subtrees
2016-04-15 01:48:48 +00:00
Jeffrey Townsend
b2004243e1 Add onlp as a proper prerequisite. 2016-02-02 21:52:08 +00:00
Jeffrey Townsend
98f67fe12a Initial daemon settings. 2016-01-07 19:58:01 +00:00
Jeffrey Townsend
32440ed440 Add initial version of the platform snmp agent. 2016-01-07 19:00:35 +00:00
Jeffrey Townsend
a5e9c5b86a Move onlp_snmp source code. 2016-01-07 18:55:22 +00:00