From d11c02788b2ddfc354fb6ad609f909695b4dc842 Mon Sep 17 00:00:00 2001 From: thl-cmk <thl-cmk@outlook.com> Date: Sun, 28 Apr 2024 16:01:06 +0000 Subject: [PATCH] Update CONTRIBUTING.md --- CONTRIBUTING.md | 42 ++++++++++++++---------------------------- 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a924587..9c4948b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,36 +12,22 @@ Please include: For active checks I might need the output of the check command. I.e. ``` -~$ ./local/lib/nagios/plugins/check_ntp -H ares -Stratum: 3, Reference ID: 194.25.134.196, Time: Sun Apr 7 13:38:52 2024 - .... - | ntp_offset=-0.005115509033203125;0.2;0.5; ntp_delay=0.02794170379638672;0.2;0.5; ntp_root_dispersion=0.0051116943359375;200;500; - -``` - -For agent based plugins I might need also the agent output of the plugin. -``` -$ /omd/sites/build/local/share/check_mk/agents/special/agent_cisco_meraki Meraki_Cloud -<<<cisco_meraki_org_organisations:sep(0)>>> -... -... -... - +~$ ./local/lib/nagios/plugins/check_radius -H radiusserver --username dummyuser --password dummypassword --secret secret +Response: access reject, Response time 1006ms +Response: access reject +Response time 1006ms|radius_response_time=1.006008138 ``` -For SNMP based plugins I migth need a snmpwalk fom the device in question. This must contain -``` -.1.3.6.1.2.1.1.1 sysDescr -.1.3.6.1.2.1.1.2 sysObjectID ``` -and all the SNMP OIDs used in the plugin. -If you run the snmpwalk command, please uses these options -ObentU in addition to your snmp options like community, version etc. -For example: +~$ ~/local/lib/nagios/plugins/check_radius --host radiusserver --secret secret --username aabbccddeeff --password aabbccddeeff +Response: access accept, Response time 6ms +Response: access accept +Response time 6ms +Number of attributes in response: 4 +Response attributes: +Tunnel-Type: [13] +Tunnel-Medium-Type: ['IEEE-802'] +Tunnel-Private-Group-Id: ['10'] +Service-Type: ['Outbound-User']|radius_response_time=0.006371595999999999 ``` -snmpwalk -v2c -c public -ObentU 10.10.10.10 .1.3.6.1.2.1.1.1 > hostname.snmpwalk -snmpwalk -v2c -c public -ObentU 10.10.10.10 .1.3.6.1.2.1.1.2 >> hostname.snmpwalk -snmpwalk -v2c -c public -ObentU 10.10.10.10 .1.0.8802.1.1.2.1.4.1.1 >> hostname.snmpwalk -snmpwalk -v2c -c public -ObentU 10.10.10.10 .1.0.8802.1.1.2.1.3.7.1.3 >> hostname.snmpwalk -``` - -- GitLab