Check-Storege

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bashar.abed
Posts: 153
Joined: Tue Oct 11, 2016 1:34 am
Location: Ramallah West Bank Palestine
Contact:

Check-Storege

Post by bashar.abed »

Hi,

We have Nagios XI,VM version 5.4.2 ,we tried to Check the storage of linux (4) :-

[root@elitea1 backup]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p9 2.0G 1.6G 328M 83% /
/dev/cciss/c0d0p1 2.0G 43M 1.8G 3% /boot
none 10G 0 10G 0% /dev/shm
/dev/cciss/c0d0p11 981M 308M 623M 34% /home
/dev/cciss/c0d0p5 9.7G 3.5G 5.8G 38% /opt
/dev/cciss/c0d0p2 20G 14G 4.7G 75% /product
/dev/cciss/c0d0p8 3.9G 41M 3.7G 2% /tmp
/dev/cciss/c0d0p6 5.8G 3.2G 2.3G 59% /usr
/dev/cciss/c0d0p7 4.9G 579M 4.0G 13% /var
/dev/mapper/vg_ota-linqus
50G 39G 8.7G 82% /files/OTA
/dev/mapper/vg_ota-lv_mon
20G 4.5G 14G 25% /files/MONITORING
/dev/mapper/vg_database-lv_database
443G 316G 105G 76% /database
/dev/mapper/vg_database-lv_oradata6
60G 86M 56G 1% /database/oradata6
/dev/mapper/vg_database-lv_backup
237G 93M 225G 1% /database/backup
10.201.64.34:/export/OTA
100G 62G 39G 62% /backup

i used this command below ,but this command doesn't show any result for these paths /database/oradata6 /database/backup

[[email protected] ~]$ /usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H 10.x.x.x -C jawwal-snmp --v2c -m "/" --short=0,1 -w 90 -c 95 -f
OK : (<90%) All selected storages | &apos;/files/OTA&apos;=39037MB;45357;47877;0;50397 &apos;/home&apos;=308MB;882;931;0;980 &apos;/proc/fs/nfsd&apos;=0MB;0;0;0;0 &apos;/proc/sys/fs/binfmt_misc&apos;=0MB;0;0;0;0 &apos;/opt&apos;=3501MB;8860;9352;0;9844 &apos;/proc/bus/usb&apos;=0MB;0;0;0;0 &apos;/files/MONITORING&apos;=4531MB;17717;18702;0;19686 &apos;/backup&apos;=62842MB;92160;97280;0;102400 &apos;/database&apos;=323364MB;408213;430891;0;453570 &apos;/var/lib/nfs/rpc_pipefs&apos;=0MB;0;0;0;0 &apos;/&apos;=1541MB;1772;1870;0;1969 &apos;/tmp&apos;=40MB;3544;3741;0;3938 &apos;/usr&apos;=3252MB;5316;5611;0;5907 &apos;/boot&apos;=43MB;1772;1870;0;1969 &apos;/product&apos;=14006MB;17720;18704;0;19689 &apos;/sys&apos;=0MB;0;0;0;0 &apos;/var&apos;=584MB;4426;4672;0;4918

Thanks
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Check-Storege

Post by mcapra »

From the CLI of the Nagios XI machine, can you share the output of an snmpwalk for the associated tree (replace 10.x.x.x with your host's IP):

Code: Select all

snmpwalk -mALL -v2c -cjawwal-snmp 10.x.x.x 1.3.6.1.2.1.25.2.3.1.3
Some drives simply cannot be monitored by the net-snmp agent. You might try adding the following directive to the remote machine's /etc/snmpd.conf to see if it allows the other disks to appear:

Code: Select all

includeAllDisks  10000
You might also try leveraging this re-write of the plugin I did to leverage the UCD-SNMP-MIB module for disk checks. It works in roughly the same way as check_snmp_storage_wizard.pl:
https://github.com/mcapra/nagios-check_snmp_storage_ucd

It has similar requirements:

Code: Select all

# This uses the UCD-SNMP-MIB module to accurately check mounts greater than 2TB in size. 
#
# Your remote server's /etc/snmpd.conf config file must include:
#	includeAllDisks  10000
# To include all mounts that are at least 10MB in size. This directive can be modified to include all disks as well. 
Former Nagios employee
https://www.mcapra.com/
Locked