Page 1 of 1

How to scipt for - Check_Disk_inodes to monitor inodes

Posted: Wed Jan 27, 2016 9:43 am
by izubair
Dear All,

I want to monitor the inodes of a machine and i am in need of scripts and the procedure to link to my Nagios.

Please help me .

Awaiting for the help.

Re: How to scipt for - Check_Disk_inodes to monitor inodes

Posted: Wed Jan 27, 2016 12:49 pm
by rkennedy
This plugin should work for you -
https://exchange.nagios.org/components/ ... 2&cf_id=24

You will need to install it on the remote system, and decide how you're going to execute it. I would suggest NRPE, what OS is the client machine running?

Re: How to scipt for - Check_Disk_inodes to monitor inodes

Posted: Thu Jan 28, 2016 1:45 am
by izubair
Dear,
Thanks for your reply.

My whole infra based on RHEL 6.

I have installed nagios in RHEL 6(192.168.1.60) machine and i want to monitor the inodes of RHEL 6(192.168.1.10) machine.

I have seen the attached plugin before but i am not getting how to link this script to NRPE and how to run.

If possible can you please give me in detail procedure of NRPE and how to link this script to NRPE and monitor.

Awaiting for your valuable response.

Re: How to scipt for - Check_Disk_inodes to monitor inodes

Posted: Thu Jan 28, 2016 11:48 am
by hsmith
Do you know the basics of Nagios configuration?

If not:

https://assets.nagios.com/downloads/nag ... bject.html
https://geekpeek.net/nagios-configuration/

You'll need to make a service, and have NRPE call a script, read this for scripting with NRPE.

https://www.digitalocean.com/community/ ... untu-12-10 <--- this is for Ubuntu, but the NRPE configuration doesn't change. Ignore step 1. Your file paths may be different, but you get the idea.

Let us know what else you need help with.