HDD Monitoring on Bare metal server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
MOHANREDDY
Posts: 81
Joined: Tue Apr 10, 2018 4:14 pm

HDD Monitoring on Bare metal server

Post 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,
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: HDD Monitoring on Bare metal server

Post by lmiltchev »

You should be able to monitor HDDs via NCPA. Read more about the agent here:

https://www.nagios.org/ncpa/
Be sure to check out our Knowledgebase for helpful articles and solutions!
MOHANREDDY
Posts: 81
Joined: Tue Apr 10, 2018 4:14 pm

Re: HDD Monitoring on Bare metal server

Post 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,
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: HDD Monitoring on Bare metal server

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
MOHANREDDY
Posts: 81
Joined: Tue Apr 10, 2018 4:14 pm

Re: HDD Monitoring on Bare metal server

Post 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,
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: HDD Monitoring on Bare metal server

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
MOHANREDDY
Posts: 81
Joined: Tue Apr 10, 2018 4:14 pm

Re: HDD Monitoring on Bare metal server

Post 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,
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: HDD Monitoring on Bare metal server

Post by lmiltchev »

Yes. You can install smartmontools on RHEL by running:

Code: Select all

yum install smartmontools -y
Be sure to check out our Knowledgebase for helpful articles and solutions!
MOHANREDDY
Posts: 81
Joined: Tue Apr 10, 2018 4:14 pm

Re: HDD Monitoring on Bare metal server

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: HDD Monitoring on Bare metal server

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked