[Nagiosplug-help] Problem with output of check_disk
Joerg Janes
j.janes at gmx.de
Wed Nov 8 16:52:50 CET 2006
Hi folks,
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):
The command definition:
define command{
command_name check_disk_gb
command_line /usr/lib/nagios/plugins/check_disk -u GB -w
$ARG1$ -c $ARG2$ -p $ARG3$
}
The service definition in the config file:
define service{
host_name sauron
service_description Disk Space 4
check_command
check_disk_gb!20%!10%!"/dev/hdc1"
use generic-service
}
The wrong line in the web interface:
Disk Space 4 CRITICAL 2006-11-08 08:26:31 0d 19h 8m 1s
4/4 DISK CRITICAL - free space: /storage/media/video
*136298985198123397907742720000 GB (100% inode=105%)*:
But if I call it from the commandline itself:
sauron:/usr/lib/nagios/plugins# ./check_disk -u GB -w 20% -c 10% -p
"/dev/hdc1"
DISK OK - free space: /storage/media/video *127 GB (53%
inode=nan%)*;| /storage/media/video=111GB;190;214;-2147483648;238
Does anyone have an idea how to fix this output error? Ist ist a problem
of parsing the status output of the plugin?
Some infos about my linux and nagios version-
sauron:/usr/lib/nagios/plugins# uname -a
Linux sauron 2.6.17-2-k7 #1 SMP Wed Sep 13 17:18:46 UTC 2006 i686
GNU/Linux
sauron:/usr/lib/nagios/plugins# ./check_disk -V
check_disk (nagios-plugins 1.4.3) 1.68
sauron:/usr/lib/nagios/plugins# nagios2 --version
Nagios 2.5
I use the testing branch of Debian, which is called etch.
Thanks in advance,
Impesa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20061108/b41a5235/attachment.html>
More information about the Help
mailing list