How to display thresholds with check_disk on graph

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

How to display thresholds with check_disk on graph

Post by asmgiadmin »

Current perf graph isn't showing warning / critical levels:

Code: Select all

define service {
	host_name			hostname.domain
	service_description		Disk Free Space - /dev/sda
	use				generic-service
	check_command			check_nrpe!check_disk! -a 90 99 /dev/sda
	max_check_attempts		5
	check_interval			2
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	contacts			nagiosadmin
	_xiwizard			nrpe
	register			1
	}
Image

How can I configure to display warning and critical threshold levels?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to display thresholds with check_disk on graph

Post by lmiltchev »

Can you show how the "check_disk" is defined on the client machine?
Be sure to check out our Knowledgebase for helpful articles and solutions!
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Re: How to display thresholds with check_disk on graph

Post by asmgiadmin »

command[check_disk]=/usr/lib64/nagios/plugins/check_disk $ARG1$ $ARG2$ $ARG3$
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to display thresholds with check_disk on graph

Post by lmiltchev »

Change the the following line in the service definition on the XI server from this:

Code: Select all

check_command         check_nrpe!check_disk! -a 90 99 /dev/sda
to this:

Code: Select all

check_command         check_nrpe!check_disk! -a '-w 10% -c 1% -p /dev/sda'
Note: Don't forget the "%" signs.

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Re: How to display thresholds with check_disk on graph

Post by asmgiadmin »

yep, that did it.

thanks!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to display thresholds with check_disk on graph

Post by lmiltchev »

I'm glad I could help! :D
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked