Page 4 of 5

Re: How to view all the Mount Points on Linux

Posted: Wed Mar 09, 2016 11:06 pm
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 !

Re: How to view all the Mount Points on Linux

Posted: Thu Mar 10, 2016 4:41 pm
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.

Re: How to view all the Mount Points on Linux

Posted: Thu Mar 10, 2016 4:42 pm
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.

Re: How to view all the Mount Points on Linux

Posted: Fri Mar 11, 2016 12:34 am
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 :)

Re: How to view all the Mount Points on Linux

Posted: Fri Mar 11, 2016 10:30 am
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.

Re: How to view all the Mount Points on Linux

Posted: Fri Mar 11, 2016 11:22 am
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 !!!

Re: How to view all the Mount Points on Linux

Posted: Fri Mar 11, 2016 12:08 pm
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

Re: How to view all the Mount Points on Linux

Posted: Sat Mar 12, 2016 12:21 am
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 :(

Re: How to view all the Mount Points on Linux

Posted: Sat Mar 12, 2016 9:09 am
by eloyd
You run this on the Nagios server. It uses SNMP to query the target host.

Re: How to view all the Mount Points on Linux

Posted: Sat Mar 12, 2016 10:02 am
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 :)