Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The following command on Nagios's default "check_disk" command gives the following output:

# ./check_disk  -w 20% -c 10%  -p / --units=MB 
DISK OK - free space: / 17887 MB (47% inode=93%);| /=19481MB;31495;35432;0;39369

All well and good, but does anyone know what the last four numbers (separated by semicolons) mean? Is there any way, other than wrapping the command in a script, to tailor the output to something which makes sense at first glance?

Thanks in advance...

share|improve this question

2 Answers 2

up vote 4 down vote accepted

This is "Performance data". Performance data is defined by Nagios as "everything after the | of the plugin output". This data used is used by 3rd party programs for charts. See more details in documentation. http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN201

share|improve this answer

Any data after the pipe (|) in a Nagios check output is performance data, or "perfdata", which you can collect and process for time-series trending purposes (a Google for "nagios rrd" will provide a variety of tools to help you in this endeavour). What exact values are provided vary by plugin, and unfortunately the detailed help output from plugins isn't always the most useful. However, the set of semicolon-separated values is (supposed to be) standardised, as per the Nagios plugin development guidelines. Specifically, the values in your perfdata are:

  • space currently in use
  • warning threshold (the value of the first element that will cause a warning alert)
  • critical threshold (as above, but for a critical alert)
  • The minimum possible of the disk (how low the first element could concievably go -- '0' is always going to be the right answer here)
  • Total capacity of the disk (the maximum that the first element could concievably go)

The first item is useful for drawing graphs directly; the rest are useful for drawing threshold lines (warn/crit) and scaling the graphs appropriately.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.