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.

I am monitoring disk space use on Windows servers using the check_nt plugin (via the check_nt_disk command). This works just fine and I get some nice graphs as well.

The problem with the graph (storage template) is that the x-axis shows the disk space used rather than the total size of the disk, for example:

enter image description here

The check that is producing this data is effectively:

./check_nt -H 172.16.3.200 -p 12489 -s MyPassword -v USEDDISKSPACE -l d -w 80 -c 90

Which returns to nagios the following (I've split this over two lines on the pipe character):

d:\ - total: 19.55 Gb - used: 3.65 Gb (19%) - free 15.90 Gb (81%) | 
'd:\ Used Space'=3.65Gb;15.64;17.59;0.00;19.55

I know that the total disk space available is being recorded (19.55) but I don't know how to tweak the graph to use this as the y-axis scale.

Has anyone done this before?

I'm using Nagios 3.2.3 and Centreon 2.2 stable.

Update:

In reply to regilero, these are all the curves I have available:

enter image description here

These are all the templates:

enter image description here

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Go to Views>Graphs>Curves, there you shoudl find your Curve 'd--Used-Space'. Edit this curve and check the box 'Print Max value'.

In your line 3.65Gb;15.64;17.59;0.00;19.55 you have in fact (value)(metric);(warn level);(crit level);(min level);(max level). So you need to graph as well the max value on this metrics.

share|improve this answer
    
Thanks for the fast reply. I'm looking at the graph curves but I don't see a curve called d--Used-Space. Is this something I need to create? –  Kev May 18 '11 at 14:11
    
Yes, try to create it, this way you should get more control on the metric managed by Centreon. The name will may be as well 'd:\ Used Space', I'm not sure –  regilero May 18 '11 at 14:13
    
I added a couple of screen grabs of what I see. –  Kev May 18 '11 at 14:15
    
And, have you tried to create this Curve (the Add butonn on top)? –  regilero May 18 '11 at 15:33
    
Yes I did, nothing changed. I am a bit baffled. :/ –  Kev May 18 '11 at 15:38

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.