author | Pavel Rochnyack <pavel2000@ngs.ru> | |
Thu, 13 Jul 2017 11:51:31 +0000 (18:51 +0700) | ||
committer | Pavel Rochnyack <pavel2000@ngs.ru> | |
Thu, 13 Jul 2017 15:22:48 +0000 (22:22 +0700) | ||
commit | d534734c9a114b376536f9cda2fb3611e7f4a85e | |
tree | 546f99fd2d9ef44f712369def7dead0414ad8f59 | tree | snapshot |
parent | 7778f852d4c40066c4c5c096d17ff890a656ad31 | commit | diff |
snmp_agent: Changed plugin initialization
* Do not start working thread if plugin not configured.
That allows to avoid useless CPU consumption by polling loop.
* Do not register 'write' / 'missing' callbacks if there was no <Table> configured.
These callbacks do not do anything in this case.
* Registration of 'shutdown' callback delayed to 'init' phase.
* Do not start working thread if plugin not configured.
That allows to avoid useless CPU consumption by polling loop.
* Do not register 'write' / 'missing' callbacks if there was no <Table> configured.
These callbacks do not do anything in this case.
* Registration of 'shutdown' callback delayed to 'init' phase.
src/snmp_agent.c | diff | blob | history |