Only "DISK OK" in Nagios web interface

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
stbender
Posts: 5
Joined: Fri Jun 01, 2012 5:20 am

Only "DISK OK" in Nagios web interface

Post 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
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Only "DISK OK" in Nagios web interface

Post 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.
stbender
Posts: 5
Joined: Fri Jun 01, 2012 5:20 am

Re: Only "DISK OK" in Nagios web interface

Post by stbender »

Thank you!
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Only "DISK OK" in Nagios web interface

Post by agriffin »

No problem!
Locked