|
From: Marr, J. <jm...@br...> - 2004-11-03 16:27:13
|
I don't have a perfparse.cgi. but (weird) perfgraph.cgi displays data.
[root@excedrin sbin]# su apache
[apache@excedrin sbin]$ sh
sh-2.05b$ export QUERY_STRING=3D"?select_host=3D1"
sh-2.05b$ ./perfg
perfgant.png perfgraph.cgi =20
sh-2.05b$ ./perfgraph.cgi=20
Expires: Sun, 02 Jan 2000 01:01:01 GMT
content-type: text/html
<HTML>
<HEAD>
<TITLE>
PerfParse</TITLE>
<BODY BGcolor=3D"#EEFFFF" TEXT=3D"#000000" LINK=3D"#000000" =
VLINK=3D"#000000"
ALINK=3D"#000000">
<p align=3Dcenter>
<table width=3D600 border=3D1 cellpadding=3D5 cellspacing=3D0
bgcolor=3D"#CCCCCC"><tr><td>
<table width=3D"100%" border=3D0 cellpadding=3D0 cellspacing=3D0>
<tr>
<td width=3D60><img src=3D"/nagios/images/perfparse-logo-sm.png"
border=3D0></td>
<td align=3Dcenter><font face=3D"Arial, Helvetica" size=3D2>
<b>Select Host to Graph</b><br>
<a href=3D"perfgraph.cgi">Click to return to main menu.</a>
</td>
<td width=3D60 align=3Dright><font face=3D"Arial, Helvetica"
size=3D1>v0.103.1</td>
</tr>
</table>
</td></tr></table></p>
<p align=3Dcenter>
<table width=3D600 border=3D1 cellpadding=3D5 cellspacing=3D0
bgcolor=3D"#CCCCCC"><tr><td>
<table width=3D"100%" border=3D0 cellpadding=3D0 cellspacing=3D0>
<tr>
<td align=3Dcenter>
<font face=3D"Arial, Helvetica" size=3D2><b>Group:</b> Unassigned
<table width=3D"100%" border=3D1 cellpadding=3D5 cellspacing=3D0
bgcolor=3D"#FFFFFF"><td><font face=3D"Arial, Helvetica" size=3D2>
<nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Darchprint">archprint<=
/a></
nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbooksrs6000%2D2">book=
srs60
00-2</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor01">brod=
art-c
or01</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor03">brod=
art-c
or03</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dcor04">brod=
art-c
or04</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dfrw01">brod=
art-f
rw01</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dgwy01">brod=
art-g
wy01</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt01">brod=
art-s
wt01</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt03">brod=
art-s
wt03</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt04">brod=
art-s
wt04</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt05">brod=
art-s
wt05</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt06">brod=
art-s
wt06</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dswt07">brod=
art-s
wt07</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0201">b=
rodar
t-vlan0201</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0301">b=
rodar
t-vlan0301</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dbrodart%2Dvlan0302">b=
rodar
t-vlan0302</a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc8">dc8</a></nobr>&n=
bsp;&
nbsp;<nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ddc9">dc9</a></nobr>&n=
bsp;&
nbsp;<nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dexcedrin">excedrin</a=
></no
br> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dgatekeeper">gatekeepe=
r</a>
</nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dinternet">internet</a=
></no
br> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Ditwebapps">itwebapps<=
/a></
nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver">mailserve=
r</a>
</nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dmailserver2">mailserv=
er2</
a></nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns1">ns1</a></nobr>&n=
bsp;&
nbsp;<nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dns2">ns2</a></nobr>&n=
bsp;&
nbsp;<nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D0">serial0-=
0</a>
</nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dserial0%2D1">serial0-=
1</a>
</nobr> <nobr><a
href=3D"perfgraph.cgi?select_metric=3D1&host_name=3Dsmtp">smtp</a></nobr>=
 
; </td></tr></table>
</td>
</tr>
</table>
</td></tr></table></p>
Joe Marr
-----Original Message-----
From: Ben Clewett [mailto:BCl...@pe...]=20
Sent: Wednesday, November 03, 2004 10:56 AM
To: Marr, Joe
Cc: per...@li...
Subject: Re: [Perfparse-users] Help.....
Joe,
The place I would start, if others members have not answered already:
1. su to your httpd user. Eg, $ su apache
Really important to do all testing as the httpd user.
2. Set an environment variable:
$ export QUERY_STRING=3D"?select_host=3D1"
3. run the code:
$ /usr/local/nagios/sbin/perfparse.cgi
Let us know.
Regards, Ben.
Marr, Joe wrote:
> Hi All,
>=20
> =20
>=20
> I'm trying to install the software for the first time, using the
method 2.
>=20
> =20
>=20
> When I try to launch the CGI using the standard link=20
> (http://server.domain.com/nagios/cgi-bin/perfgraph.cgi?all_bin=3D1) or
any=20
> link other then http://server.domain.com/nagios/cgi-bin/perfgraph.cgi
I=20
> get this error.
>=20
>=20
> *Server error!*
>=20
> The server encountered an internal error and was unable to complete
your=20
> request.
>=20
> Error message:
> malformed header from script. Bad header=3Dperfgraph.cgi: =
perfgraph.cgi
>=20
> If you think this is a server error, please contact the webmaster=20
> <mailto:root@localhost>
>=20
>=20
> *Error 500*
>=20
> =20
>=20
> I see that there was someone else with issue in the forums, but I
tried=20
> the things Ben suggested. Does anyone know what this error is about?
>=20
> =20
>=20
> Joe Marr
>=20
> =20
>=20
|