Page 1 of 2

HDD Monitoring on Bare metal server

Posted: Mon Feb 24, 2020 10:50 am
by MOHANREDDY
Hi,

I am looking for a plugin to monitor HDD's on a bare metal server using agent based monitoring, i googled and searched exchange, i didn't find any. Any help would be much appreciated.

Thanks,

Re: HDD Monitoring on Bare metal server

Posted: Mon Feb 24, 2020 4:35 pm
by lmiltchev
You should be able to monitor HDDs via NCPA. Read more about the agent here:

https://www.nagios.org/ncpa/

Re: HDD Monitoring on Bare metal server

Posted: Tue Feb 25, 2020 11:59 am
by MOHANREDDY
Its a Linux server having RHEL OS and have nrpe installed. Can i monitor hard disk drive with check_disk plugin, if not please provide me a plugin to monitor HDD.

Thanks,

Re: HDD Monitoring on Bare metal server

Posted: Tue Feb 25, 2020 1:03 pm
by lmiltchev
You can monitor used/free space via the check_disk plugin.

See the plugin's usage by running:

Code: Select all

/usr/local/nagios/libexec/check_disk -h
Example command definition in the nrpe.cfg file on the remote machine:

Code: Select all

command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$
Example of a check, run from the command line on the Nagios XI server:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -u -H x.x.x.x -t 60 -c check_disk -a '-w 80% -c 75% -p /'
DISK OK - free space: / 28848 MB (80.66% inode=95%);| /=6913MB;7534;9418;0;37674
What metrics do you need to monitor? If check_disk is not going to do the job for you, you could look for some 3rd party plugins on the Nagios Exchange:

https://exchange.nagios.org/

Once you find a plugin that you think might work for you, you can test it, and add a new command, and a service to Nagios XI by following the document below:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: HDD Monitoring on Bare metal server

Posted: Tue Feb 25, 2020 3:55 pm
by MOHANREDDY
lmiltchev wrote:
What metrics do you need to monitor? If check_disk is not going to do the job for you, you could look for some 3rd party plugins on the Nagios Exchange:
[/url]
I would like to monitor HDD health, am looking for a 3rd party plugin and i found this , https://exchange.nagios.org/directory/T ... os/details do i need to install nagios-check_smartmon as specified in the post?

Thanks,

Re: HDD Monitoring on Bare metal server

Posted: Tue Feb 25, 2020 4:26 pm
by lmiltchev
I believe this is for FreeBSD. There are some other similar plugins on the Nagios Exchange:

https://exchange.nagios.org/index.php?o ... k_smartmon

You can try any of these.

Re: HDD Monitoring on Bare metal server

Posted: Tue Feb 25, 2020 4:46 pm
by MOHANREDDY
On eof the plugin says "check_smartmon is a Nagios-Plugin that uses smartmontools
(http://smartmontools.sourceforge.net/) to check disk health status and temperature.", do i need to install any smartmontools?

Thanks,

Re: HDD Monitoring on Bare metal server

Posted: Tue Feb 25, 2020 5:04 pm
by lmiltchev
Yes. You can install smartmontools on RHEL by running:

Code: Select all

yum install smartmontools -y

Re: HDD Monitoring on Bare metal server

Posted: Mon Mar 02, 2020 11:19 am
by MOHANREDDY
I didn't get fruitfull reults with nrpe, as you told earlier, i can use ncpa. How can i use NCPA for Hard drive temperatures and failures?

Re: HDD Monitoring on Bare metal server

Posted: Mon Mar 02, 2020 12:56 pm
by lmiltchev
Did you select a plugin that you would like to use? Have you tested it from the command line? You can call a plugin via NCPA, but the plugin needs to exist (and work correctly) on the remote machine in order to do that...

For example, if you were testing the check_smartmon plugin from the command line, you would be probably running something like this:

Code: Select all

/usr/local/nagios/libexec/check_smartmon -d <device> -w <warning threshold> -c <critical threshold> -v 3