lausser / check_nwc_health

nwc = network component. This plugin checks lots of aspects of routers, switches, wlan controllers, firewalls,.....
http://labs.consol.de/nagios/check_nwc_health
GNU General Public License v2.0
149 stars 88 forks source link

cisco like device memory-usage error #230

Open majed17 opened 4 years ago

majed17 commented 4 years ago

Peace,

./check_nwc_health --hostname 172.20.100.253 --community Kimchi --mode memory-usage
Use of uninitialized value in sprintf at ./check_nwc_health line 61319.
Use of uninitialized value in pattern match (m//) at ./check_nwc_health line 61320.
Use of uninitialized value in string eq at ./check_nwc_health line 61328.
Use of uninitialized value in string eq at ./check_nwc_health line 61336.
Use of uninitialized value in concatenation (.) or string at ./check_nwc_health line 61345.
Use of uninitialized value in concatenation (.) or string at ./check_nwc_health line 61353.
Use of uninitialized value in concatenation (.) or string at ./check_nwc_health line 61357.
OK - mempool  usage is 50.00% | '_usage'=50.00%;80;90;0;100

would love to provide more info, if needed...

lausser commented 4 years ago

You can run

…. --mode walk

which will output some snmpwalk commands. Run them and mail me the resulting file, so I can simulate your device.

Von: majed17 [mailto:notifications@github.com] Gesendet: Dienstag, 21. Januar 2020 09:12 An: lausser/check_nwc_health check_nwc_health@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Betreff: [lausser/check_nwc_health] cisco like device memory-usage error (#230)

Peace,

./check_nwc_health --hostname 172.20.100.253 --community Kimchi --mode memory-usage Use of uninitialized value in sprintf at ./check_nwc_health line 61319. Use of uninitialized value in pattern match (m//) at ./check_nwc_health line 61320. Use of uninitialized value in string eq at ./check_nwc_health line 61328. Use of uninitialized value in string eq at ./check_nwc_health line 61336. Use of uninitialized value in concatenation (.) or string at ./check_nwc_health line 61345. Use of uninitialized value in concatenation (.) or string at ./check_nwc_health line 61353. Use of uninitialized value in concatenation (.) or string at ./check_nwc_health line 61357. OK - mempool usage is 50.00% | '_usage'=50.00%;80;90;0;100

would love to provide more info, if needed...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lausser/check_nwc_health/issues/230?email_source=notifications&email_token=AABQSODWP5A2GRFYTWNSOYLQ62U5LA5CNFSM4KJPFCRKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IHRMAAA , or unsubscribe https://github.com/notifications/unsubscribe-auth/AABQSOBDDKI5XI3HUFEDU3DQ62U5LANCNFSM4KJPFCRA . https://github.com/notifications/beacon/AABQSOAENPRBOW2J5QWTFHDQ62U5LA5CNFSM4KJPFCRKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IHRMAAA.gif

majed17 commented 4 years ago

ok, but i feel uneasy because i'm requiring too much and i lost the buy a coffee link...

lausser commented 4 years ago

No problem. What does snmpwalk -v 2 -c Kimchi 172.20.100.253 1.3.6.1.4.1.9.9.48 say? From your file it looks like this device implements only an abgespeckte version of the cisco memory mib.

majed17 commented 4 years ago

the device has a mode to enter cisco like commands which after leaving config mode converts them to the linux commands because it is actually a linux server...

SNMPv2-SMI::enterprises.9.9.48.1.1.1.5.1 = Gauge32: 2147483648 SNMPv2-SMI::enterprises.9.9.48.1.1.1.6.1 = Gauge32: 2147483647

lausser commented 4 years ago

Just uploaded the fixed version. You won in the lottery, catching me in a moment, where i have nothing to do. :-)

majed17 commented 4 years ago

works!