Check_NRPE plugin issue after 3.0b7 upgrade.

Brock Kuhse brock at kuhsefamily.org
Wed Dec 19 16:06:22 CET 2007


Nagios isn't seeing anything - it's the check_disk plugin that's returning
the "OK" result.

 

check_disk --help shows that -w and -c are used to show free space in
"units" when a percent sign doesn't follow the number:

 

check_disk --help

 

Options:

-w, --warning=INTEGER

    Exit with WARNING status if less than INTEGER units of disk are free

 -w, --warning=PERCENT%

    Exit with WARNING status if less than PERCENT of disk space is free

 -c, --critical=INTEGER

    Exit with CRITICAL status if less than INTEGER units of disk are free

-c, --critical=PERCENT%

    Exit with CRITCAL status if less than PERCENT of disk space is free

 

In your case, free space is around 3600 MB, far more than the 15/20 required
to trigger a critical/warning status.  So, the command you really want is
probably:

 

command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20% -c 15% -p
/dev/sda10

 

 

- Brock

 

Brock Kuhse

EC Group

4555 E. Broadway Blvd, Tucson, AZ  85711

(520) 622-1173

bkuhse at ecgrp.com

 

 

From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lorand S.
D'Caltan
Sent: Wednesday, December 19, 2007 7:51 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Check_NRPE plugin issue after 3.0b7 upgrade.

 

I've migrated from 1.0 to 3.0b7 recently and I'm running into a couple of
issues, the most pressing of which is a problem with the check_nrpe plugin's
return of data.

 

This is my command definition:
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
Copied from my old config.

 

This is the service in question:
###### Check Linux /db Partition on DB servers
define service {
use generic-service
hostgroup_name generic-hostgroup
service_description /db Partition
contact_groups GRP-Systems,GRP-Pagers
check_period 24x7
notification_interval 15
notification_options w,u,c,r
notification_period 24x7
check_command check_nrpe!check_disk2
max_check_attempts 3
normal_check_interval 15
retry_check_interval 1
}

 

This is the relevant part of the nrpe.cfg located on one of the affected
hosts:
command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20 -c 15 -p
/dev/sda10

 

Now this command works fine, and outputs this in Nagios:


/db Partition

	

OK 12-19-2007 09:37:54 4d 11h 53m 8s 1/3 DISK OK - free space: /db 3653 MB
(4% inode=99%):

 

So, my problem here is that Nagios clearly sees that there is 4% of disk
space free, and yet still thinks the service is in an OK state. I need it to
recognize the Warning/Critical levels on the new system like it did on the
old system.

 

I'm using these packages on Centos 5.1:
nagios-3.0b7.tar.gz
nagios-plugins-1.4.7.tar.gz

 

Any help/suggestions would be greatly appreciated

 

<><><><><><><><>
Lorand S. D'Caltan
Systems Engineer
iSystems LLC
(802) 655-8347 x157
<><><><><><><><>

CONFIDENTIALITY: The information contained in this message may be privileged
and confidential and protected from disclosure. No confidentiality or
privilege is waived or lost by any mistransmission. If the reader of this
message is not the intended recipient, or an employee or agent responsible
for delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited. Please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender. Thank you.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071219/c45a6d3c/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list