How to view all the Mount Points on Linux

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
systemali
Posts: 23
Joined: Tue Feb 02, 2016 5:55 am

Re: How to view all the Mount Points on Linux

Post by systemali »

Hello Everyone,

As described yesterday, Please not my remote host are all :- Red Hat Enterprise Linux Server release 6.5 (Santiago)

And i have created a walk.txt file and grepped the OID's from it and i have attached the file containing all the OID in it !!

Please let me know what is it that i need to do further .

Thank you all for your assistance !!

NOTE :- This txt file is from my Nagios server, If you want walk.txt file, Please let me know !!

Appreciate your time !
Attachments
OID.txt
(101.71 KiB) Downloaded 589 times
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to view all the Mount Points on Linux

Post by ssax »

Are you looking to get the mounts like from the command mount or the command df?

Have you tried the Linux SNMP wizard? That should poll it and grab all the disks like that df lists.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: How to view all the Mount Points on Linux

Post by tgriep »

Could you post the full walk.txt file and the /etc/snmp/snmpd.conf file from your remote Red Hat Enterprise Linux Server?
The OID.txt is missing some information.
Be sure to check out our Knowledgebase for helpful articles and solutions!
systemali
Posts: 23
Joined: Tue Feb 02, 2016 5:55 am

Re: How to view all the Mount Points on Linux

Post by systemali »

Hello ssax,

I am basically looking for the disk usage for all the partition to reflect in the Nagios Web interface as i see it currently for 'root' ( refer to attached image )

/ OK 11-03-2016 09:55:56 1d 21h 54m 11s 1/3 Disk OK - / TOTAL: 4.922GB USED: 3.162GB (64%) FREE: 1.759GB (36%)

It depecits all the details, TOTAL, USED, FREE.

Hello tgriep,

Please find the ' 'snmpd.conf' from one of the host Linux machines for your reference.

Please suggest what do i need to do !!

Thank you once again both of you :)
Attachments
snmpd.conf
(18.46 KiB) Downloaded 441 times
disk_usage.jpg
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: How to view all the Mount Points on Linux

Post by tgriep »

Thanks for the walk.txt file. It has all of the information in there for what you need.
You may want to look at this plugin, it will check all of the partitions of your remote system using SNMP.
http://nagios.manubulon.com/snmp_storage.html
Take a look at it.
Be sure to check out our Knowledgebase for helpful articles and solutions!
systemali
Posts: 23
Joined: Tue Feb 02, 2016 5:55 am

Re: How to view all the Mount Points on Linux

Post by systemali »

Hello tgriep,

Appreciate your response :)

Can you also PLEASE teach me how can i go ahead and integerate this script on my HOST linux machines ?

DO i just install this script on the host computer or do i need to do any thing else ?

Please guide.

Thank you for your time !!!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to view all the Mount Points on Linux

Post by lmiltchev »

Download the plugin (link), and save it to the plugins directory. View the usage (help menu) by using the "-h" or "--help", i.e.

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage.pl -h
/usr/local/nagios/libexec/check_snmp_storage.pl --help
Be sure to check out our Knowledgebase for helpful articles and solutions!
systemali
Posts: 23
Joined: Tue Feb 02, 2016 5:55 am

Re: How to view all the Mount Points on Linux

Post by systemali »

Hello lmiltchev,

Thank you for your revert.

What i was trying to ask is, Do i need to download this script on the host computers or on the Nagios server ?

Secondly, IF on the host computers, after the script is installed, Do i need to edit the "snmpd.conf" and what do i enter in there ?

Please pardon my lame questions, as i am totally new and novice to Nagios :(
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: How to view all the Mount Points on Linux

Post by eloyd »

You run this on the Nagios server. It uses SNMP to query the target host.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
systemali
Posts: 23
Joined: Tue Feb 02, 2016 5:55 am

Re: How to view all the Mount Points on Linux

Post by systemali »

Thank you for your response "eloyd",

And do i need to enter or edit the snmpd.conf on the Nagios server ?

Appreciate your co-operation :)
Locked