How to Monitor locally attached storage disks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

How to Monitor locally attached storage disks

Post by jyoti22 »

In My current environment, I have few exchange physical servers with local attached storage disks. I need to monitor these disks which are configured as mount volumes. Can anyone please suggest how can I monitor these mount volumes
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: How to Monitor locally attached storage disks

Post by jdalrymple »

Hi jyoti22,

Are these disks mounted at an NTFS path or are they mounted with drive letters? If drive letters the easy way to monitor all of your local disks is with a command such as the following:

Code: Select all

$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drivesize -a "filter=type = 'fixed' and drive regexp '.*[C-Z].*'"
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: How to Monitor locally attached storage disks

Post by jyoti22 »

Hi,
I am using check_nt and not check_nrpe. With Check_nt I have tried given command but its not working.
Kindly provide the solution for check_nt

COMMAND: /usr/local/nagios/libexec/check_nt -H xx.xx.xx.xx -c "check_drivesize" -p 12489 -a "filter=type = \'fixed\' and drive regexp \'.\*\[C-Z\].\*\'"
OUTPUT: Usage:
check_nt -H host -v variable [-p port] [-w warning] [-c critical]
[-l params] [-d SHOWALL] [-u] [-t timeout]
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: How to Monitor locally attached storage disks

Post by Box293 »

check_nt has limitations and cannot perform these more complicated checks.

These commands will enable nrpe checks in NSClient++

Code: Select all

Open a command prompt
cd "\Program Files\NSClient++\"
nscp settings --activate-module NRPEServer --add-defaults
nscp settings --path /settings/NRPE/server --key "allow arguments" --set true
nscp settings --path /settings/NRPE/server --key "allow nasty characters" --set true

IF this is NSClient++ 0.4.3 onwards
nscp settings --path /settings/NRPE/server --key insecure --set true
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: How to Monitor locally attached storage disks

Post by jyoti22 »

On few servers, Disks are mounted as an NTFS path. How we can monitor it?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to Monitor locally attached storage disks

Post by lmiltchev »

You can do this via a powershell script and NSClient++. Check out the link below - it may do the job for you. I haven't tested it though, so I don't guarantee it will work.

https://deangrant.wordpress.com/2013/09 ... in-nagios/
Be sure to check out our Knowledgebase for helpful articles and solutions!
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: How to Monitor locally attached storage disks

Post by jyoti22 »

Thanks. I'll try to test monitoring be referring provided URL
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: How to Monitor locally attached storage disks

Post by Box293 »

NSClient++ natively supports disk mounts, no need for extra scripts:

Code: Select all

Command:
check_nrpe -H win2008r2-01 -c CheckDriveSize -a ShowAll MaxWarn=5G MaxCrit=10G Drive='C:\Mounted Disks\A Mounted Disk'

Output:
OK C:\Mounted Disks\A Mounted Disk: Total: 17.997GB - Used: 90.285MB (1%) - Free: 17.909GB (99%)|'C:\Mounted Disks\A Mounted Disk used'=0.08816GB;5;10;0;17.99706 'C:\Mounted Disks\A Mounted Disk used %'=0%;27;55;0;100
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: How to Monitor locally attached storage disks

Post by bsivavani »

Hi,

We have ran below command to make connection from Nagios management server to NSClient++ deployed in windows exchange server using command prompt from exchange server .

nscp settings --path /settings/NRPE/server --key insecure --set true

Attached nsclient.ini file for reference.

Below is output from management server
[root@irv-monprd001 libexec]# ./check_nrpe -H 10.105.10.176
connect to address 10.105.10.176 port 5666: Connection refused
connect to host 10.105.10.176 port 5666: Connection refused[root@irv-monprd001 libexec]#
[root@irv-monprd001 libexec]#

Windows server version - Windows Server 2008 R2 Enterprise.

Please let us know how can I make connection from Management server.
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: How to Monitor locally attached storage disks

Post by hsmith »

What is the IP of your Nagios server?
Former Nagios Employee.
me.
Locked