[mrtg] Error.png from 14all.cgi

Sander Foppen zjwoelle at hotmail.com
Tue Sep 16 13:27:08 MEST 2003


 
Hello all,
 
I'm working with MRTG-2.9.17, rrdtool-1.0.35 and 14all.cgi to collect,
store and display my trends.
 
Sometimes when a graph can't be created 14all.cgi generates an red error
png. This is generated by the function sub errorpng() in the 14all.cgi
script. The function returns a bunch of numbers witch in some way
transform to a png image. 
 
Because my boss panics every time he sees this error image I want to
replace it by a bit less alarming image. But I haven't got the foggiest
idea how to convert an image to the numbers like in 14all.cgi. I don't
kwon how this technique is called. If I knew that I might find some
information on the internet.
 
Who can help me?
 
Greetz,
Sander
 
PS: This is the function from 14all.cgi
sub errorpng()
{
      return (
 
137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,0,187,0,0,0,29,4,3,0,
 
0,0,0,251,0,170,0,0,0,4,103,65,77,65,0,0,177,143,11,252,97,5,0,0,0,30,80
,
 
76,84,69,255,0,0,255,93,93,255,128,128,255,155,155,255,176,176,255,195,
 
195,255,212,212,255,227,227,255,241,241,255,255,255,17,191,146,253,0,0,
 
0,56,116,69,88,116,83,111,102,116,119,97,114,101,0,88,86,32,86,101,114,
 
115,105,111,110,32,51,46,49,48,97,32,32,82,101,118,58,32,49,50,47,50,57,
 
47,57,52,32,40,80,78,71,32,112,97,116,99,104,32,49,46,50,41,221,21,46,73
,
 
0,0,2,40,73,68,65,84,120,218,237,147,177,107,219,64,20,198,159,34,233,92
,
 
109,130,180,132,108,55,180,78,189,169,113,8,220,166,80,106,208,230,102,
 
48,237,118,56,246,153,219,28,7,2,183,165,77,23,109,142,101,157,244,254,
 
219,62,73,198,113,106,211,150,144,108,254,166,143,167,79,63,221,125,167,
 
3,216,107,175,189,94,65,136,56,223,26,58,166,224,207,71,6,114,3,175,148,
 
220,10,136,66,47,183,134,44,254,115,114,48,252,55,126,87,192,92,248,24,
 
254,237,173,70,110,246,95,120,182,184,17,231,242,4,103,160,79,34,213,12,
 
117,148,224,204,205,211,159,96,205,18,24,254,162,26,105,189,198,66,29,14
9,
 
96,80,10,172,29,64,154,91,55,83,30,22,92,124,43,33,152,60,86,75,229,196,
 
172,204,68,42,83,85,114,157,70,4,97,182,218,121,121,150,187,56,41,0,111,
 
75,254,253,54,141,197,13,64,203,154,184,138,78,114,223,158,47,222,229,15
6,
 
28,128,95,104,235,150,182,115,159,244,133,53,211,160,208,215,27,71,43,15
3,
 
253,36,238,223,23,96,250,250,42,84,43,188,55,58,180,174,117,16,202,208,
 
156,166,97,114,87,237,185,211,239,72,138,230,78,217,30,126,200,220,204,
 
35,199,225,227,67,139,240,167,189,11,33,197,244,120,17,60,180,178,39,229
,
 
60,128,136,217,156,74,211,117,227,53,30,18,164,29,211,115,11,186,155,1,
 
155,87,120,93,157,123,204,104,77,145,65,194,215,14,68,228,90,119,9,30,17
3,
 
148,108,22,72,246,20,63,167,4,91,64,71,234,213,48,116,204,89,193,31,241,
 
57,28,173,240,46,167,104,214,237,30,229,135,21,158,92,8,162,239,85,209,
 
100,22,72,17,251,187,241,94,93,14,64,151,6,250,171,143,108,225,173,241,
 
235,114,146,233,177,172,162,142,13,174,91,85,57,228,160,41,39,3,205,147,
 
166,156,77,60,98,86,227,65,163,13,117,243,189,35,196,31,30,150,107,124,
 
36,176,228,111,170,67,71,12,235,232,172,133,101,118,128,146,28,253,160,
 
77,52,193,84,138,20,227,77,188,82,106,232,73,104,115,120,171,46,160,71,
 
3,26,58,131,49,135,193,229,136,238,141,130,17,244,184,171,46,193,165,39,
 
78,239,170,142,142,67,71,125,30,194,32,38,71,249,193,200,82,212,31,183,
 
99,241,101,76,247,207,219,125,223,158,41,49,111,126,134,202,70,47,9,110,
 
228,151,230,238,21,241,123,237,245,162,250,13,181,158,203,16,233,3,210,
 
153,0,0,0,7,116,73,77,69,7,208,1,19,13,28,15,223,54,180,209,0,0,0,0,73,
            69,78,68,174,66,96,130
      );
}
 

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list