Page 1 of 1

Only "DISK OK" in Nagios web interface

Posted: Fri Jun 01, 2012 5:27 am
by stbender
Hi,

I want to monitor the free disk space for linux systems (e.g. localhost).

The service definition lokks like this:

Code: Select all

define service{
        use                             generic-service         ; Name of service template to use
        host_name                       localhost
        service_description             Disk Space
        check_command                   check_disk!20%!10%!/dev/sda1
        }
The command definition lokks like this:

Code: Select all

define command{
        command_name    check_disk
        command_line    /usr/lib/nagios/plugins/check_disk -w '$ARG1$' -c '$ARG2$' -e -p '$ARG3$'
        }
The nagios web interface shows "DISK OK" only, it does not inform about the total / used / free disk space.
Is it possible to get this additional info to the web interface?

Thank you!

Stephan

Re: Only "DISK OK" in Nagios web interface

Posted: Fri Jun 01, 2012 2:38 pm
by agriffin
The output you're looking for is included by default. You explicitly turned it off by adding the '-e' option in your command definition. Just get rid of that.

Re: Only "DISK OK" in Nagios web interface

Posted: Mon Jun 04, 2012 2:17 am
by stbender
Thank you!

Re: Only "DISK OK" in Nagios web interface

Posted: Mon Jun 04, 2012 9:43 am
by agriffin
No problem!