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.
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 »

Not for this, you don't. It's a simple perl script that queries the remote host's SNMP server to respond to requests about disk space.
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 »

Fabulous :)

Thank you so much Eloyd,

I'll have this checked on Monday and will revert back accordingly !

Have a great Week end :)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to view all the Mount Points on Linux

Post by tmcdonald »

Definitely let us know how this worked out!
Former Nagios employee
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 Everybody,

I am so sorry to say, I see no change in my Nagios interface, it is as it was in the beginning.

I guess there is something i need to edit on the Nagios server in the snmpd.conf or nagios configuration or something else,
if somebody would be kind enough to direct me, Please !!!!

Thank you all for your time.
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 »

Did you upload and install the plugin on the Nagios server?
If you did, can you post the error you are seeing and how you setup the command?
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,

Yes, I have uploaded and installed the script on the Nagios server in the plugins folder !

I am not seeing any error, I have done NO setup, I have just extracted the script
to the plugins folder, that's all !

This is what i have been asking for all this while, What do i need to do
after i have installed the script, Do i need to Edit it and What do i need to
edit it with and at what location ...

My apologies if i have been loud, You can blame it on my frustration :(

Thank you all for your time !!!

Your continued assistance is appreciated !!!

Thank you once again !!!
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 »

Ok, this is what you would have to do to use that plugin on your system.
First you would have to create a command in your commands.cfg file like the example below.

Code: Select all

define command {
       command_name                             check_snmp_storage  
       command_line                             $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ $ARG1$
}
Then, you would create a service check like the example below for the host you want to check. The example below would test all mounts starting with /

Code: Select all

define service {
        host_name                       Host-Name
        service_description             / Disk Usage
        check_command                   check_snmp_storage! -C public --v2c -m "/" -w 80 -c 95 -f!!!!!!!
        max_check_attempts              5
        check_interval                  5
        retry_interval                  1
        check_period                    24x7
        notification_interval           60
        notification_period             24x7
        notifications_enabled           1
        contacts                        nagiosadmin
        register                        1
        }
Try that and let us know if you have anymore questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked