[Nagiosplug-help] Nagios NRPE_nt False Positives take 2

Vonnahme, Nathan nathan.vonnahme at bannerhealth.com
Fri Apr 25 22:16:29 CEST 2008

> 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