Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check-hardware outputs junos directory listings #241

Open
nikokirilenko opened this issue Apr 2, 2020 · 6 comments
Open

check-hardware outputs junos directory listings #241

nikokirilenko opened this issue Apr 2, 2020 · 6 comments

Comments

@nikokirilenko
Copy link

nikokirilenko commented Apr 2, 2020

using:
\check_nwc_health --H 10.60.18.13 --mode hardware-health --community {key}
outputs the following on Nagios :

tatus Information:OK - environmental hardware working finePerformance Data:(show raw data)NameValueWarningCriticalMinimumMaximumtmpfs_/.mount/tmp_free_pct100.00%10:5:0100  /dev/md3.uzip_/.mount/packages/mnt/os-zoneinfo32-a4a26574_free_pct0%10:5:0100  /dev/md4.uzip_/.mount/packages/mnt/py-extensions32-7ba5f9f3_free_pct0%10:5:0100  /dev/md5.uzip_/.mount/packages/mnt/py-base32-65cea43d_free_pct0%10:5:0100  /dev/md6.uzip_/.mount/packages/mnt/os-crypto_free_pct0%10:5:0100  /dev/md7.uzip_/.mount/packages/mnt/junos-net_free_pct0%10:5:0100 tatus Information: OK - environmental hardware working fine Performance Data:(show raw data) NameValueWarningCriticalMinimumMaximumtmpfs_/.mount/tmp_free_pct100.00%10:5:0100  /dev/md3.uzip_/.mount/packages/mnt/os-zoneinfo32-a4a26574_free_pct0%10:5:0100  /dev/md4.uzip_/.mount/packages/mnt/py-extensions32-7ba5f9f3_free_pct0%10:5:0100  /dev/md5.uzip_/.mount/packages/mnt/py-base32-65cea43d_free_pct0%10:5:0100  /dev/md6.uzip_/.mount/packages/mnt/os-crypto_free_pct0%10:5:0100  /dev/md7.uzip_/.mount/packages/mnt/junos-net_free_pct0%10:5:0100 Name Value Warning Critical Minimum Maximum   tmpfs_/.mount/tmp_free_pct 100.00% 10: 5: 0 100   /dev/md3.uzip_/.mount/packages/mnt/os-zoneinfo32-a4a26574_free_pct 0% 10: 5: 0 100   /dev/md4.uzip_/.mount/packages/mnt/py-extensions32-7ba5f9f3_free_pct 0% 10: 5: 0 100   /dev/md5.uzip_/.mount/packages/mnt/py-base32-65cea43d_free_pct 0% 10: 5: 0 100   /dev/md6.uzip_/.mount/packages/mnt/os-crypto_free_pct 0% 10: 5: 0 100   /dev/md7.uzip_/.mount/packages/mnt/junos-net_free_pct 0% 10: 5: 0 100  

tatus Information: | OK - environmental hardware working fine
Performance Data:(show raw data) | NameValueWarningCriticalMinimumMaximumtmpfs_/.mount/tmp_free_pct100.00%10:5:0100  /dev/md3.uzip_/.mount/packages/mnt/os-zoneinfo32-a4a26574_free_pct0%10:5:0100  /dev/md4.uzip_/.mount/packages/mnt/py-extensions32-7ba5f9f3_free_pct0%10:5:0100  /dev/md5.uzip_/.mount/packages/mnt/py-base32-65cea43d_free_pct0%10:5:0100  /dev/md6.uzip_/.mount/packages/mnt/os-crypto_free_pct0%10:5:0100  /dev/md7.uzip_/.mount/packages/mnt/junos-net_free_pct0%10:5:0100 | tmpfs_/.mount/tmp_free_pct | 100.00% | 10: | 5: | 0 | 100 |   | /dev/md3.uzip_/.mount/packages/mnt/os-zoneinfo32-a4a26574_free_pct | 0% | 10: | 5: | 0 | 100 |   | /dev/md4.uzip_/.mount/packages/mnt/py-extensions32-7ba5f9f3_free_pct | 0% | 10: | 5: | 0 | 100 |   | /dev/md5.uzip_/.mount/packages/mnt/py-base32-65cea43d_free_pct | 0% | 10: | 5: | 0 | 100 |   | /dev/md6.uzip_/.mount/packages/mnt/os-crypto_free_pct | 0% | 10: | 5: | 0 | 100 |   | /dev/md7.uzip_/.mount/packages/mnt/junos-net_free_pct | 0% | 10: | 5: | 0 | 100 |  

tmpfs_/.mount/tmp_free_pct | 100.00% | 10: | 5: | 0 | 100 |  
/dev/md3.uzip_/.mount/packages/mnt/os-zoneinfo32-a4a26574_free_pct | 0% | 10: | 5: | 0 | 100 |  
/dev/md4.uzip_/.mount/packages/mnt/py-extensions32-7ba5f9f3_free_pct | 0% | 10: | 5: | 0 | 100 |  
/dev/md5.uzip_/.mount/packages/mnt/py-base32-65cea43d_free_pct | 0% | 10: | 5: | 0 | 100 |  
/dev/md6.uzip_/.mount/packages/mnt/os-crypto_free_pct | 0% | 10: | 5: | 0 | 100 |  
/dev/md7.uzip_/.mount/packages/mnt/junos-net_free_pct | 0% | 10: | 5: | 0 | 100 |

I've tried running
check_nwc_health --H 10.60.18.13 --mode hardware-health --community {key} --servertype juniper
as well since I thought maybe the output from the SNMP isn't getting translated properly, but the same response.
This issue is specific to check-hardware and all other checks work fine.
This issue happens to all of my monitored network devices, all of them are juniper's.
Among the models:
EX3300
EX3400
QFX5100
Nagios

@lausser
Copy link
Owner

lausser commented Apr 2, 2020 via email

@nikokirilenko
Copy link
Author

nikokirilenko commented Apr 2, 2020

Hi , yes, by Nagios I mean the Nagios GUI (Also in Thruk).
It does look like a table.
Here is the command line output:

CRITICAL - storage 55 (junosprocfs, mounted on: /.mount/junosproc) has 0.00% free space left | 'temp_Routing Engine'=40;89;91;; '/dev/md0.uzip_/free_pct'=0%;10:;5:;0;100 'devfs/dev_free_pct'=0%;0:;0:;0;100 'devfs_/.mount/dev_free_pct'=0%;0:;0:;0;100 '/dev/md1.uzip_/.mount/packages/mnt/os-libs-11_free_pct'=0%;10:;5:;0;100 '/dev/md2.uzip_/.mount/packages/mnt/os-runtime_free_pct'=0%;10:;5:;0;100 '/dev/gpt/config_/.mount/config_free_pct'=99.99%;10:;5:;0;100 '/dev/gpt/var_/.mount/var_free_pct'=83.71%;10:;5:;0;100 'tmpfs_/.mount/tmp_free_pct'=100.00%;10:;5:;0;100 '/dev/md3.uzip_/.mount/packages/mnt/os-zoneinfo64-45943cc6_free_pct'=0%;10:;5:;0;100 '/dev/md4.uzip_/.mount/packages/mnt/junos-net_free_pct'=0%;10:;5:;0;100 '/dev/md5.uzip_/.mount/packages/mnt/junos-libs_free_pct'=0%;10:;5:;0;100 '/dev/md6.uzip_/.mount/packages/mnt/os-libs-compat32-11_free_pct'=0%;10:;5:;0;100 '/dev/md7.uzip_/.mount/packages/mnt/os-compat32_free_pct'=0%;10:;5:;0;100 '/dev/md8.uzip_/.mount/packages/mnt/junos-libs-compat32_free_pct'=0%;10:;5:;0;100 '/dev/md9.uzip_/.mount/packages/mnt/junos-runtime_free_pct'=0%;10:;5:;0;100 '/dev/md10.uzip_/.mount/packages/mnt/junos-runtime/web-api/jail/junos-libs_free_pct'=0%;10:;5:;0;100 '/dev/md11.uzip_/.mount/packages/mnt/junos-runtime/web-api/jail/junos-net_free_pct'=0%;10:;5:;0;100 '/var/jails/rest-api_/.mount/packages/mnt/junos-runtime/web-api/var_free_pct'=83.71%;10:;5:;0;100 '/dev/md12_/.mount/packages/mnt/junos-runtime/web-api/jail/rt_free_pct'=0%;10:;5:;0;100 '/dev/md13.uzip_/.mount/packages/mnt/junos-vmguest-mtx64-f39f273e_free_pct'=0%;10:;5:;0;100 '/dev/md14.uzip_/.mount/packages/mnt/sflow-mx32-75727ac7_free_pct'=0%;10:;5:;0;100 '/dev/md15.uzip_/.mount/packages/mnt/py-extensions32-4f1c19b1_free_pct'=0%;10:;5:;0;100 '/dev/md16.uzip_/.mount/packages/mnt/py-base32-42de28a4_free_pct'=0%;10:;5:;0;100 '/dev/md17.uzip_/.mount/packages/mnt/os-vmguest64-e2d02f94_free_pct'=0%;10:;5:;0;100 '/dev/md18.uzip_/.mount/packages/mnt/os-crypto_free_pct'=0%;10:;5:;0;100 '/dev/md19.uzip_/.mount/packages/mnt/junos-libs-compat32-mx_free_pct'=0%;10:;5:;0;100 '/dev/md20.uzip_/.mount/packages/mnt/junos-runtime-mx_free_pct'=0%;10:;5:;0;100 '/dev/md21.uzip_/.mount/packages/mnt/junos-platform_free_pct'=0%;10:;5:;0;100 '/dev/md22.uzip_/.mount/packages/mnt/junos-modules64-abe21518_free_pct'=0%;10:;5:;0;100 '/dev/md23.uzip_/.mount/packages/mnt/junos-modules-mx64-41934837_free_pct'=0%;10:;5:;0;100 '/dev/md24.uzip_/.mount/packages/mnt/junos-libs-mx_free_pct'=0%;10:;5:;0;100 '/dev/md25.uzip_/.mount/packages/mnt/junos-dp-crypto-support-mtx32-ac33231e_free_pct'=0%;10:;5:;0;100 '/dev/md26.uzip_/.mount/packages/mnt/junos-daemons64-a4b8d6c5_free_pct'=0%;10:;5:;0;100 '/dev/md27.uzip_/.mount/packages/mnt/junos-daemons-mx64-39619166_free_pct'=0%;10:;5:;0;100 '/dev/md28.uzip_/.mount/packages/mnt/jsdn32-adc2c743_free_pct'=0%;10:;5:;0;100 '/dev/md29.uzip_/.mount/packages/mnt/jsd-jet-132-b6909f7e_free_pct'=0%;10:;5:;0;100 '/dev/md30.uzip_/.mount/packages/mnt/jpfe-common32-ea382574_free_pct'=0%;10:;5:;0;100 '/dev/md31.uzip_/.mount/packages/mnt/jfirmware32-799e6bd8_free_pct'=0%;10:;5:;0;100 '/dev/md32.uzip_/.mount/packages/mnt/jdocs32-d3ff0d67_free_pct'=0%;10:;5:;0;100 'tmpfs_/.mount/mfs_free_pct'=99.94%;10:;5:;0;100 '/dev/ada0_/.mount/mnt_free_pct'=100.00%;10:;5:;0;100 '/dev/md33.uzip_/.mount/packages/mnt/jpfe-wrlinux32-3050e1b9_free_pct'=0%;10:;5:;0;100 '/dev/md34.uzip_/.mount/packages/mnt/jpfe-X96032-940a8441_free_pct'=0%;10:;5:;0;100 '/dev/md35.uzip_/.mount/packages/mnt/jpfe-X32-e50f13c8_free_pct'=0%;10:;5:;0;100 'junosprocfs_/.mount/junosproc_free_pct'=0%;10:;5:;0;100 '/dev/ada1s2_/.mount/var/host_free_pct'=98.76%;10:;5:;0;100

@lausser
Copy link
Owner

lausser commented Apr 2, 2020 via email

@nikokirilenko
Copy link
Author

Hi,
This is the output I got :

rm -f /tmp/snmpwalk_check_nwc_health_10.70.18.101
snmpwalk -ObentU -v2c -c {key} 10.70.18.101 1.3.6.1.2.1 >> /tmp/snmpwalk_check_nwc_health_10.70.18.101
snmpwalk -ObentU -v2c -c {key} 10.70.18.101 1.3.6.1.4.1 >> /tmp/snmpwalk_check_nwc_health_10.70.18.101

Were you referring to this?

@lausser
Copy link
Owner

lausser commented Apr 2, 2020 via email

@mrmikelo
Copy link

Hi, I just wanted to bring up the same issue is happening to me. When I try to poll juniper device with --hardware-health, the plugin only returns disk info, it does not return any fans, temperatures or power metrics.

Here's an example output:

# '/usr/lib64/nagios/plugins/check_nwc_health' '--community' '<KEY>' '--hostname' '<DEVICEIP>' '--mode' 'hardware-health' CRITICAL - storage 54 (junosprocfs, mounted on: /.mount/junosproc) has 0.00% free space left | '/dev/md0.uzip_/_free_pct'=0%;10:;5:;0;100 'devfs_/dev_free_pct'=0%;0:;0:;0;100 'devfs_/.mount/dev_free_pct'=0%;0:;0:;0;100 '/dev/md1.uzip_/.mount/packages/mnt/os-libs-11_free_pct'=0%;10:;5:;0;100 '/dev/md2.uzip_/.mount/packages/mnt/os-runtime_free_pct'=0%;10:;5:;0;100 'tmpfs_/.mount/tmp_free_pct'=99.99%;10:;5:;0;100 '/dev/md3.uzip_/.mount/packages/mnt/os-zoneinfo-c635b8cd_free_pct'=0%;10:;5:;0;100 '/dev/md4.uzip_/.mount/packages/mnt/py-extensions32-b7e44b0a_free_pct'=0%;10:;5:;0;100 '/dev/md5.uzip_/.mount/packages/mnt/py-base32-da953143_free_pct'=0%;10:;5:;0;100 '/dev/md6.uzip_/.mount/packages/mnt/os-crypto_free_pct'=0%;10:;5:;0;100 '/dev/md7.uzip_/.mount/packages/mnt/junos-net_free_pct'=0%;10:;5:;0;100 '/dev/md8.uzip_/.mount/packages/mnt/junos-libs_free_pct'=0%;10:;5:;0;100 '/dev/md9.uzip_/.mount/packages/mnt/junos-runtime_free_pct'=0%;10:;5:;0;100 '/dev/md10.uzip_/.mount/packages/mnt/junos-runtime/web-api/jail/junos-libs_free_pct'=0%;10:;5:;0;100 '/dev/md11.uzip_/.mount/packages/mnt/junos-runtime/web-api/jail/junos-net_free_pct'=0%;10:;5:;0;100 '/var/jails/rest-api_/.mount/packages/mnt/junos-runtime/web-api/var_free_pct'=34.95%;10:;5:;0;100 '/dev/md12_/.mount/packages/mnt/junos-runtime/web-api/jail/rt_free_pct'=0%;10:;5:;0;100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants