LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-12-2018, 10:17 AM   #1
seddik
LQ Newbie
 
Registered: Mar 2018
Location: france
Distribution: CENTOS,,DEBIAN,,UBUNTU,,ARCHLINUX,,RHEL
Posts: 20

Rep: Reputation: Disabled
NAGIOS check_disk don't display all partitions usage


Hello everybody

I would display disk space usage of some partitions with nagios monitoring , for that i have configured the service (check_disk) on nagios_server ,
==>nagios_server
so that define service is :
Code:
define service{
use generic-service
host_name XXXXXXXXX
service_description Disk Space
check_command check_nrpe!check_disk
}
==>nrpe_client

The nrpe.cfg is defineded like :

Code:
command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/vg_msi1-lv_home
command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/vg_msi1-lv_root
When i went to the web interface, i didn't show the second partition
You can see the picture on the file attachement


Thanks in advance


Seddik
Attached Thumbnails
Click image for larger version

Name:	space_disk.PNG
Views:	1
Size:	3.2 KB
ID:	28087  
 
Old 07-12-2018, 10:48 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,497
Blog Entries: 15

Rep: Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463
Define multiple services in services.cfg on Nagios server and multiple checks in nrpe.cfg on client:

On server:
Code:
define service{
use generic-service
host_name XXXXXXXXX
service_description Home Disk Space
check_command check_nrpe!check_home
}

define service{
use generic-service
host_name XXXXXXXXX
service_description Root Disk Space
check_command check_nrpe!check_root
}
On nrpe client:
Code:
command[check_home]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/vg_msi1-lv_home
command[check_root]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/vg_msi1-lv_root
Note that the item in brackets in nrpe.cfg is the name nrpe uses for the specific check. The detail after that shows it is using the check_disk executable. When you do the check_nrpe from the Nagios master you follow it with the name you used in nrpe.cfg.
 
1 members found this post helpful.
Old 07-12-2018, 11:26 AM   #3
seddik
LQ Newbie
 
Registered: Mar 2018
Location: france
Distribution: CENTOS,,DEBIAN,,UBUNTU,,ARCHLINUX,,RHEL
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thanks for replying sir ,,
Its solved , you have saved me another time .
You're so helpful


Regards

Seddik
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios 3.1.2 + RHEL 5.3 You don't have permission to access /nagios/ on this server psix Linux - Server 13 08-04-2015 02:25 AM
[SOLVED] Nagios don't allow me to change the map and devices disposition. W_Chevezman Linux - Software 1 10-23-2011 03:43 PM
Nagios - check RAM usage on remote server mikeshn Linux - Software 9 08-04-2011 02:44 AM
Zenoss or Nagios(Netsaint) Website Usage metallica1973 Linux - Networking 2 10-18-2008 11:27 PM
Samba - don't display shares if you don't have permissions? kailun Linux - Server 3 05-07-2007 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration