Thursday, May 23rd 2013, 6:33pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to Monitoring-Portal.
Although this is a german monitoring forum, please don't hesitate to post in English. Nearly everybody here understands you and will answer in English as well.
If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form to register here or read more information about the registration process. If you are already registered, please login here.

simmerl

Professional

Posts: 1,194

Gender: male

Location: München

Occupation: Sysadmin / Network Monitoring Consultant

Number of monitoring servers: viele

Nagios Version: mehrere

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 100

Number of services: 2000

OS: OpenSuSe, Ubuntu, CentOS

Plugin Version: -

1

Tuesday, November 25th 2008, 4:53pm

USV-Graph zeigt in Nagiosgrapher unschöne Lücken

Hallo,

ich habe ein Problem mit einen Graphen, mit dem ich den Zustand meiner APC-USV überwache.
Seht Euch bitte mal den angehängten Screenshot an. Wenn der Ladestand der USV unter die Load sinkt, muss ich natürlich die Farben der AREA vertauschen. Das funktioniert - aber ich habe eine hässliche Lücke an der Übergangsstelle.
Irgendwo in der RPN-Notation habe ich einen Hund drin. Ich finde ihn einfach nicht.

Wäre super, wenn Ihr mir da helfen könnt.

Vielen Dank!

Simon


Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
##_________________________________________________________________________
## Grundlagen-Werte
#
#

# Battery
define ngraph{
    	graph_perf_regex    	battery=([0-9]+)%
    	graph_value 	battery_perc
    	hide	yes 
    	service_name	apcusv
}

# Load
define ngraph{
    	graph_perf_regex    	load=([0-9]+)%
    	graph_value 	load_perc
    	hide	yes 
    	service_name	apcusv
}


#_________________________________________________________________________
#
# Load < Cap =>
# die rote Fläche zuerst
define ngraph{
    	graph_calc  	load_perc,UN,0,load_perc,battery_perc,LE,load_perc,0,IF,IF
    	graph_value 	load_perc_area
    	hide        	no
    	graph_units 	Prozent (%) 
    	graph_legend	USV-Last
    	graph_legend_eol    	center
    	graph_upper_limit   	100
    	graph_lower_limit   	0
    	rrd_color   	FF000075
    	rrd_plottype	AREA
    	service_name	apcusv
    	type        	CDEF
}
# ...dann die grüne...
define ngraph{
    	graph_calc  	battery_perc,UN,0,load_perc,battery_perc,LE,battery_perc,load_perc,-,0,IF,IF
#   	graph_calc  	battery_perc,load_perc,-
    	graph_value 	battery_load_area
    	hide        	no
    	graph_legend	Ladestand Batterie
    	graph_legend_eol    	center
    	rrd_color   	00FF0075
    	rrd_plottype	STACK
    	service_name	apcusv
    	type        	CDEF
}

#_________________________________________________________________________
#
# Load > Cap =>
# grüne Fläche zuerst

define ngraph{
    	graph_calc  	battery_perc,UN,0,load_perc,battery_perc,GT,battery_perc,0,IF,IF
    	graph_value 	load_perc_area1
    	hide        	no
    	graph_upper_limit   	100
    	graph_lower_limit   	0
    	rrd_color   	00FF0075
    	rrd_plottype	AREA
    	service_name	apcusv
    	type        	CDEF
}

# ...dann die rote

define ngraph{
    	graph_calc  	load_perc,UN,0,load_perc,battery_perc,GT,load_perc,battery_perc,-,0,IF,IF
    	graph_value 	battery_load_area2
    	hide        	no
    	rrd_color   	FF000075
    	rrd_plottype	STACK
    	service_name	apcusv
    	type        	CDEF
}




#...grüne Linie
define ngraph{
    	graph_calc  	battery_perc
    	graph_value 	battery_perc_line
    	hide        	no
    	service_name	apcusv
    	rrd_color   	00FF00
    	rrd_plottype	LINE1
    	type        	CDEF
}

# rote Linie....
define ngraph{
    	graph_calc  	load_perc
    	graph_value 	load_perc_line
    	hide        	no
    	service_name	apcusv
    	rrd_color   	FF0000
    	rrd_plottype	LINE1
    	type        	CDEF
}
simmerl has attached the following image:
  • Bildschirmfoto.png