|
From: <nu...@ts...> - 2005-04-18 16:19:57
|
I was going to try to write something that did that but I'm having=20
problems with my syntax. I was going to use PHP. I copied one of the=20
URLs created in perfparse and was trying to have the image displayed. I=20
have two problems. First, the password has to be sent again. Secondly,=20
the output is a bunch of garbage. I am new to PHP and I'm willing to help =
write something. Let me know what you guys think?
#### HTML Page ####
<html >
<head>
<title>PerfParse Performance Page</title>
</head>
<body>
<?php
header("Content-type: image/png");
header("Content-Disposition: inline; ");
$curl=5Fhandle=3Dcurl=5Finit();
curl=5Fsetopt($curl=5Fhandle,CURLOPT=5FURL,'http://nagtst01/nagios/cgi-bin/=
perfchart.png?host=3Doma3a001&service=3DOS+%2D+Load+Average&metric=3Dload1&=
select=5Fline=3D1&s=5Fval=3D0&s=5Fsmo=3D1&s=5Fwar=3D1&s=5Fcri=3D1&s=5Fsta=
=3D1&g=5Fsigma=3D14.000000&size=3D585x300&output=3DHistogram&timeperiod=3Dr=
&reltime=3D00%3A00&reldays=3D1&title=3DHost+%27oma3a002%27+++Service+%27OS+=
%2D+Load+Average%27+++Metric+%27load1%27');
curl=5Fsetopt($curl=5Fhandle,CURLOPT=5FUSERPWD,'nagios:nagios');
curl=5Fexec($curl=5Fhandle);
curl=5Fclose($curl=5Fhandle);
?>
</body>
</html>
#### endo of HTML Page ####
If the developers were going to write something...then I will step aside.
=20
schnitzel meister <sch...@gm...>=20
18-Apr-2005 04:30 AM
Please respond to
schnitzel meister <sch...@gm...>
To
"nu...@ts..." <nu...@ts...>
cc
Ben Clewett <bcl...@pe...>,=20
per...@li...
Subject
Re: [Perfparse-users] PerfParse Graphs
Nagiosgraph-style graph icons on the main page would be good too,
leading to a page where you select which of the metrics for the
service you want to view.
On 4/14/05, nu...@ts... <nu...@ts...> wrote:
>=20
> In the meantime, has anyone created a CGI program that will generate
> multiple graphs per URL page. This is a different approach than having=20
all
> of them in the same graph.=20
>=20
> I'm guessing that a program could generate similar graphs like=20
nagiosgraph.
> Nagiosgraph has a graph for the day, week and by the year. Has anyone
> attempted that yet?=20
>=20
> I do like perfparse better.=20
>=20
>=20
>=20
>=20
> Ben Clewett <bcl...@pe...>=20
>=20
> 14-Apr-2005 10:18 AM=20
>=20
> To schnitzel meister <sch...@gm...>=20
>=20
> cc "nu...@ts..." <nu...@ts...>,
> per...@li...=20
>=20
> Subject Re: [Perfparse-users] PerfParse Graphs=20
>=20
>=20
>=20
>=20
>=20
> Schnitzel,
>=20
> This ability was planned from the start. Various starts on this=20
problem=20
> have been made. This problem is complicated by several issues. One of =
> which is a major re-write to the graph drawing program, or replacement=20
> by GnuPlot.
>=20
> This was planned in great detail by my self and Yves. Unfortunately=20
> neither of us have the time to complete this at this time.
>=20
> The product will one day have a 'Shopping Cart' where the user can=20
> select a collection of metrics. This collection will be stored in the=20
> database and could be selected to graph in the same way a single metric =
> is selected.
>=20
> This collection graph will not show the warn, critical. Just a single=20
> line for each metric in various colours. The scale of which will be=20
> from one of three options:
> - By comparison of absolute value. Eg, for disk space.
> - By comparison of the Max/Min of each metric as a percentage. Eg,=20
> server load and user count.
> - By best-fit, were largest value for each plot in range =3D 100%.
>=20
> The analysis of this problem also showed where some good abstraction=20
> points can be built into the software. Eg, for extraction of a data=20
set=20
> as a memory structure for any use.
>=20
> So this is a large task. Requiring database work, mathematical work,=20
> graphical work, and hard-core programming.
>=20
> When we have resources, this is a problem we will attack as soon as we=20
can.
>=20
> Regards,
>=20
> Ben
>=20
> schnitzel meister wrote:
> > Multiple services on one graph would be great.
> >=20
> > There was something about this on the wiki
> > http://tinyurl.com/46nm8
> >=20
> > On 4/14/05, nu...@ts... <nu...@ts...> wrote:
> >=20
> >>=20
> >>To my knowledge, a service can have only one extended information=20
URL.=20
> If
> >>you use the perfParse URL for a service it shows one graph.=20
> >>=20
> >>Has anyone created or know how to have that URL pull up more than one
> graph?
> >>* On the same page show a different view of the same data. 1 year, 1
> month,
> >>1 day, etc.=20
> >>* On the same page show all the services performance data in a=20
separate
> >>graph.=20
> >> e.g. Disk space may have more than one
> >>'label'=3Dvalue[UOM];[warn];[crit];[min];[max] for each
> >>filesystem=20
> >>=20
> >>Steve=20
> >>Nagios 2.x=20
> >>FedoreCore3
> >=20
> >=20
> >=20
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real=20
users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad=5Fide95&alloc=5Fid=14396&op=CCk
> > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
> > Perfparse-users mailing list
> > Per...@li...
> >
> https://lists.sourceforge.net/lists/listinfo/perfparse-users
> >=20
>=20
>=20
>
|