From kalocsai.endre at balasys.hu Tue Jan 12 12:53:28 2021
From: kalocsai.endre at balasys.hu (Kalocsai Endre)
Date: Tue, 12 Jan 2021 12:53:28 +0100
Subject: [collectd] snmp_agent DATA block is not being registered in master
Agentx
Message-ID: <8d08bc1b-b90f-5088-69fd-3caf4ce6da91@balasys.hu>
Hello,
I'm trying to use collectd with net-snmp.
I used the default configuration of snmp-agent, but apparently the
memory Data block is not registered in snmp master Agentx.
Plugin "memory"
#PluginInstance "free"
Type "memory"
TypeInstance "free"
OIDs "1.3.6.1.4.1.2021.4.6.0"
IndexOID "IF-MIB::ifIndex"
SizeOID "IF-MIB::ifNumber"
Source "PluginInstance"
Plugin "interface"
OIDs "IF-MIB::ifDescr"
Plugin "interface"
Type "if_octets"
TypeInstance ""
OIDs "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
In the debug logs I see the registration of ifTable, but not the
memAvailReal.
[2021-01-12 10:49:07] plugin_load: plugin "snmp_agent" successfully loaded.
[2021-01-12 10:49:07] snmp_agent: Table:
[2021-01-12 10:49:07] snmp_agent: Name: ifTable
[2021-01-12 10:49:07] snmp_agent: IndexOID: 1.3.6.1.2.1.2.2.1.1
[2021-01-12 10:49:07] snmp_agent: SizeOID: 1.3.6.1.2.1.2.1
[2021-01-12 10:49:07] snmp_agent: Column:
[2021-01-12 10:49:07] snmp_agent: Name: ifDescr
[2021-01-12 10:49:07] snmp_agent: Plugin: interface
[2021-01-12 10:49:07] snmp_agent: IndexKey:
[2021-01-12 10:49:07] snmp_agent: Source: PluginInstance
[2021-01-12 10:49:07] snmp_agent: Type: String
[2021-01-12 10:49:07] snmp_agent: OID[0]: 1.3.6.1.2.1.2.2.1.2
[2021-01-12 10:49:07] snmp_agent: Scale: 1
[2021-01-12 10:49:07] snmp_agent: Shift: 0
[2021-01-12 10:49:07] snmp_agent: Column:
[2021-01-12 10:49:07] snmp_agent: Name: ifOctets
[2021-01-12 10:49:07] snmp_agent: Plugin: interface
[2021-01-12 10:49:07] snmp_agent: Type: if_octets
[2021-01-12 10:49:07] snmp_agent: TypeInstance:
[2021-01-12 10:49:07] snmp_agent: OID[0]: 1.3.6.1.2.1.2.2.1.10
[2021-01-12 10:49:07] snmp_agent: OID[1]: 1.3.6.1.2.1.2.2.1.16
[2021-01-12 10:49:07] snmp_agent: Scale: 1
[2021-01-12 10:49:07] snmp_agent: Shift: 0
[2021-01-12 10:49:07] snmp_agent: Registered handler for OID
(1.3.6.1.2.1.2.1.0)
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via snmp_agent.
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via snmp_agent.
[2021-01-12 10:49:07] snmp_agent: Registered handler for OID
(1.3.6.1.2.1.2.2.1.1.1)
[2021-01-12 10:49:07] snmp_agent: Registered handler for OID
(1.3.6.1.2.1.2.2.1.2.1)
[2021-01-12 10:49:07] snmp_agent: Registered handler for OID
(1.3.6.1.2.1.2.2.1.10.1)
[2021-01-12 10:49:07] snmp_agent: Registered handler for OID
(1.3.6.1.2.1.2.2.1.16.1)
[2021-01-12 10:49:07] snmp_agent: Data added to table ifTable with index 1
[2021-01-12 10:49:07] Notification: severity = OKAY, host =
monitoring-director, plugin = snmp_agent, message = Data added to table
ifTable with index 1
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via snmp_agent.
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via snmp_agent.
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via snmp_agent.
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via snmp_agent.
[2021-01-12 10:49:07] snmp_agent: Registered handler for OID
(1.3.6.1.2.1.2.2.1.1.2)
[2021-01-12 10:49:07] snmp_agent: Registered handler for OID
(1.3.6.1.2.1.2.2.1.2.2)
[2021-01-12 10:49:07] snmp_agent: Registered handler for OID
(1.3.6.1.2.1.2.2.1.10.2)
[2021-01-12 10:49:07] snmp_agent: Registered handler for OID
(1.3.6.1.2.1.2.2.1.16.2)
[2021-01-12 10:49:07] snmp_agent: Data added to table ifTable with index 2
[2021-01-12 10:49:07] Notification: severity = OKAY, host =
monitoring-director, plugin = snmp_agent, message = Data added to table
ifTable with index 2
[2021-01-12 10:49:07] plugin_dispatch_notification: severity = 4;
message = Data added to table ifTable with index 2; time =
1610448547.244; host = monitoring-director;
[2021-01-12 10:49:07] Notification: severity = OKAY, host =
monitoring-director, plugin = snmp_agent, message = Data added to table
ifTable with index 2
[2021-01-12 10:49:07] plugin_dispatch_values: time = 1610448547.243;
interval = 10.000; host = monitoring-director; plugin = interface;
plugin_instance = lo; type = if_errors; type_instance = ;
[2021-01-12 10:49:07] uc_insert: Added
monitoring-director/interface-lo/if_errors to the cache.
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via rrdtool.
[2021-01-12 10:49:07] rrdtool plugin: rrd_cache_insert: file =
/var/lib/collectd/rrd/monitoring-director/interface-lo/if_errors.rrd;
values_num = 1; age = 0.000;
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via snmp_agent.
[2021-01-12 10:49:07] plugin_dispatch_values: time = 1610448547.243;
interval = 10.000; host = monitoring-director; plugin = interface;
plugin_instance = lo; type = if_dropped; type_instance = ;
[2021-01-12 10:49:07] uc_insert: Added
monitoring-director/interface-lo/if_dropped to the cache.
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via rrdtool.
[2021-01-12 10:49:07] rrdtool plugin: rrd_cache_insert: file =
/var/lib/collectd/rrd/monitoring-director/interface-lo/if_dropped.rrd;
values_num = 1; age = 0.000;
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via snmp_agent.
[2021-01-12 10:49:07] plugin_dispatch_values: time = 1610448547.243;
interval = 10.000; host = monitoring-director; plugin = memory;
plugin_instance = ; type = memory; type_instance = used;
[2021-01-12 10:49:07] uc_insert: Added
monitoring-director/memory/memory-used to the cache.
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via rrdtool.
[2021-01-12 10:49:07] rrdtool plugin: rrd_cache_insert: file =
/var/lib/collectd/rrd/monitoring-director/memory/memory-used.rrd;
values_num = 1; age = 0.000;
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via snmp_agent.
[2021-01-12 10:49:07] plugin_dispatch_values: time = 1610448547.243;
interval = 10.000; host = monitoring-director; plugin = memory;
plugin_instance = ; type = memory; type_instance = buffered;
[2021-01-12 10:49:07] uc_insert: Added
monitoring-director/memory/memory-buffered to the cache.
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via rrdtool.
[2021-01-12 10:49:07] rrdtool plugin: rrd_cache_insert: file =
/var/lib/collectd/rrd/monitoring-director/memory/memory-buffered.rrd;
values_num = 1; age = 0.000;
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via snmp_agent.
[2021-01-12 10:49:07] plugin_dispatch_values: time = 1610448547.243;
interval = 10.000; host = monitoring-director; plugin = memory;
plugin_instance = ; type = memory; type_instance = cached;
[2021-01-12 10:49:07] uc_insert: Added
monitoring-director/memory/memory-cached to the cache.
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via rrdtool.
[2021-01-12 10:49:07] rrdtool plugin: rrd_cache_insert: file =
/var/lib/collectd/rrd/monitoring-director/memory/memory-cached.rrd;
values_num = 1; age = 0.000;
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via snmp_agent.
[2021-01-12 10:49:07] plugin_dispatch_values: time = 1610448547.243;
interval = 10.000; host = monitoring-director; plugin = memory;
plugin_instance = ; type = memory; type_instance = free;
[2021-01-12 10:49:07] uc_insert: Added
monitoring-director/memory/memory-free to the cache.
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via rrdtool.
[2021-01-12 10:49:07] rrdtool plugin: rrd_cache_insert: file =
/var/lib/collectd/rrd/monitoring-director/memory/memory-free.rrd;
values_num = 1; age = 0.000;
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via snmp_agent.
[2021-01-12 10:49:07] plugin_dispatch_values: time = 1610448547.243;
interval = 10.000; host = monitoring-director; plugin = memory;
plugin_instance = ; type = memory; type_instance = slab_unrecl;
[2021-01-12 10:49:07] uc_insert: Added
monitoring-director/memory/memory-slab_unrecl to the cache.
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via rrdtool.
[2021-01-12 10:49:07] rrdtool plugin: rrd_cache_insert: file =
/var/lib/collectd/rrd/monitoring-director/memory/memory-slab_unrecl.rrd;
values_num = 1; age = 0.000;
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via snmp_agent.
[2021-01-12 10:49:07] plugin_dispatch_values: time = 1610448547.243;
interval = 10.000; host = monitoring-director; plugin = memory;
plugin_instance = ; type = memory; type_instance = slab_recl;
[2021-01-12 10:49:07] uc_insert: Added
monitoring-director/memory/memory-slab_recl to the cache.
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via rrdtool.
[2021-01-12 10:49:07] rrdtool plugin: rrd_cache_insert: file =
/var/lib/collectd/rrd/monitoring-director/memory/memory-slab_recl.rrd;
values_num = 1; age = 0.000;
[2021-01-12 10:49:07] plugin: plugin_write: Writing values via snmp_agent.
[2021-01-12 10:49:07] snmp_agent: Thread is up and running
I tried to to run collectd only with the memory Data block, but it gives
the below error.
Plugin "memory"
#PluginInstance "free"
Type "memory"
TypeInstance "free"
OIDs "1.3.6.1.4.1.2021.4.6.0"
[2021-01-12 10:40:22] plugin_load: plugin "snmp_agent" successfully loaded.
[2021-01-12 10:40:23] snmp_agent: snmp_agent_init: plugin not configured
[2021-01-12 10:40:23] Initialization of plugin `snmp_agent' failed with
status -22. Plugin will be unloaded.
[2021-01-12 10:40:23] plugin_unregister_read: No such read function:
snmp_agent
Is there something I do wrong?
Thank you!
Endre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x3D77D3C8817B5CE5.asc
Type: application/pgp-keys
Size: 663 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL:
From minfrin at sharp.fm Tue Jan 12 15:27:56 2021
From: minfrin at sharp.fm (Graham Leggett)
Date: Tue, 12 Jan 2021 16:27:56 +0200
Subject: [collectd] SNMPv3+DTLS support for collectd-snmp
Message-ID: <1AA44408-56D6-4768-A1E1-0FE60336C3B2@sharp.fm>
Hi all,
I have just finished a batch of work upgrading net-snmp to support certificates from CAs using intermediate certificates like Let’s Encrypt. All the patches have been accepted and will appear in future release of net-snmp v5.10+.
As part of that work I have added the required support to collectd-snmp to support DTLS/TLS with SNMP. This involved teaching collectd how to pass the correct additional parameters.
Two PRs have been submitted:
https://github.com/collectd/collectd/pull/3803 - support DTLS parameters.
https://github.com/collectd/collectd/pull/3805 - support for SHA224/SHA256/SHA384/SHA512
The PRs include updates to the documentation to be clear as what you need to do and what you should not do to make SNMPv3+DTLS work.
Would it be possible for someone to take a look when they get a chance?
Regards,
Graham
—
From bartlomiej.kotlowski at intel.com Fri Jan 29 14:31:47 2021
From: bartlomiej.kotlowski at intel.com (Kotlowski, Bartlomiej)
Date: Fri, 29 Jan 2021 13:31:47 +0000
Subject: [collectd] Canceled: Collectd community bi-weekly call
Message-ID:
This is continuation of previous bi-weekly community call series.
This bi-weekly call is intended to provide communication channel for collectd community for following purposes:
- Discuss on pending PRs & issues
- CI & validation
- Release & compatibility issues
- Bug fixes
- Documentation
- All things collectd
Thanks
Bartek
New meeting URL: https://bluejeans.com/6990858301
---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Sowackiego 173 | 80-298 Gdask | Sd Rejonowy Gdask Pnoc | VII Wydzia Gospodarczy Krajowego Rejestru Sdowego - KRS 101882 | NIP 957-07-52-316 | Kapita zakadowy 200.000 PLN.
Ta wiadomo wraz z zacznikami jest przeznaczona dla okrelonego adresata i moe zawiera informacje poufne. W razie przypadkowego otrzymania tej wiadomoci, prosimy o powiadomienie nadawcy oraz trwae jej usunicie; jakiekolwiek przegldanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/calendar
Size: 3032 bytes
Desc: not available
URL:
From bartlomiej.kotlowski at intel.com Fri Jan 29 14:33:03 2021
From: bartlomiej.kotlowski at intel.com (Kotlowski, Bartlomiej)
Date: Fri, 29 Jan 2021 13:33:03 +0000
Subject: [collectd] FW: Collectd community bi-weekly call
Message-ID:
This is continuation of previous bi-weekly community call series.
This bi-weekly call is intended to provide communication channel for collectd community for following purposes:
- Discuss on pending PRs & issues
- CI & validation
- Release & compatibility issues
- Bug fixes
- Documentation
- All things collectd
Thanks
Bartek
New meeting URL: https://bluejeans.com/6990858301
---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Sowackiego 173 | 80-298 Gdask | Sd Rejonowy Gdask Pnoc | VII Wydzia Gospodarczy Krajowego Rejestru Sdowego - KRS 101882 | NIP 957-07-52-316 | Kapita zakadowy 200.000 PLN.
Ta wiadomo wraz z zacznikami jest przeznaczona dla okrelonego adresata i moe zawiera informacje poufne. W razie przypadkowego otrzymania tej wiadomoci, prosimy o powiadomienie nadawcy oraz trwae jej usunicie; jakiekolwiek przegldanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/calendar
Size: 3281 bytes
Desc: not available
URL: