[Nagiosplug-help] Nagios NRPE_nt False Positives take 2

Vincent K. Britton BrittonV at Wiznet.com
Fri Apr 25 22:55:33 CEST 2008

Well I changed the values to 10 and 15% and the error went away.

I am completely confused as to why it hadn't triggered an error for months though?

-----Original Message-----
From: Vonnahme, Nathan [mailto:nathan.vonnahme at bannerhealth.com]
Sent: Friday, April 25, 2008 4:16 PM
To: Vincent K. Britton; nagiosplug-help at lists.sourceforge.net
Subject: RE: [Nagiosplug-help] Nagios NRPE_nt False Positives take 2

> Here is the command on the Server in nrpe.cfg:
> command[check_disk_c]=c:\windows\system32\cscript.exe //NoLogo //T:10
> c:\nrpe_nt\bin\check_disk.wsf /drive:"c:\" /w:85% /c:90%

>         Drive C:\  - Total: 10 GB - Free: 2.2 GB (22%) - Used: 7.8 GB
> (78%)
> As you can see the disk usage at 78% is below both the warning and
> critical thresholds.

Reading the script, it looks like it is comparing the FREE percentage
against your threshold, so your thresholds are probably the inverse of
what you really want:

    If InStr(Wscript.Arguments.Named("w"),"%") Then
        If intFreePro
<=CInt(Replace(Wscript.Arguments.Named("w"),"%","")) Then
        End if

Your plugin call means "warn me if there is less than 85% free" (15%
full) and "it's critical if there is less than 90% free" (10% full), so
it's working as designed.

I did the same thing when I first started using the check_disk plugins
(unix and windows).

As a side note, we have been talking about changing the plugin argument
style (at least for the unix plugins) to be something like this in

  check_disk.wsf  /drive:"c:\"

meaning, it's OK if the drive is between 30 and 80 % full, WARN if
80-90% full, but otherwise return critical.

We're hoping that will be easier to get right the first time :)

More information about the Help mailing list