<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi folks,<br>
<br>
i'm new with nagios configuration and struggle with an error in the
display of the disk usage in the web interface of nagios2. I want to
display the disk usage of the localhost (sauron):<br>
<br>
The command definition:<br>
    define command{<br>
        command_name    check_disk_gb<br>
        command_line    /usr/lib/nagios/plugins/check_disk -u GB -w
$ARG1$ -c $ARG2$ -p $ARG3$<br>
        }<br>
<br>
The service definition in the config file:<br>
    define service{<br>
            host_name                          sauron<br>
            service_description             Disk Space 4<br>
            check_command                  
check_disk_gb!20%!10%!"/dev/hdc1"<br>
            use                             generic-service <br>
    }<br>
<br>
The wrong line in the web interface:<br>
    Disk Space 4    CRITICAL     2006-11-08 08:26:31     0d 19h 8m 1s
    4/4     DISK CRITICAL - free space: /storage/media/video <font
 color="#ff0000"><b>136298985198123397907742720000 GB (100% inode=105%)</b></font>:
<br>
<br>
But if I call it from the commandline itself:<br>
    sauron:/usr/lib/nagios/plugins# ./check_disk -u GB -w 20% -c 10% -p
"/dev/hdc1"<br>
    DISK OK - free space: /storage/media/video <font color="#ff0000"><b>127
GB (53% inode=nan%)</b></font>;|
/storage/media/video=111GB;190;214;-2147483648;238<br>
<br>
Does anyone have an idea how to fix this output error? Ist ist a
problem of parsing the status output of the plugin?<br>
<br>
Some infos about my linux and nagios version-<br>
    sauron:/usr/lib/nagios/plugins# uname -a<br>
    Linux sauron 2.6.17-2-k7 #1 SMP Wed Sep 13 17:18:46 UTC 2006 i686
GNU/Linux<br>
    sauron:/usr/lib/nagios/plugins# ./check_disk -V<br>
    check_disk (nagios-plugins 1.4.3) 1.68<br>
    sauron:/usr/lib/nagios/plugins# nagios2 --version<br>
    Nagios 2.5<br>
I use the testing branch of Debian, which is called etch.<br>
<br>
Thanks in advance,<br>
Impesa<br>
<br>
</body>
</html>