Nagiosgraph question...
BOLLENGIER Eric
ebollengier at sigma.fr
Tue Apr 12 14:23:59 CEST 2005
Hi,
You can these informations with referer url (last url seen)
Perl example :
my $last_url = referer() || '' ;
if ($last_url =~ /host=([^&]+)&?/) {
$host = unescape($1) ;
}
if ($last_url =~ /service=([^&]+)&?/) {
$serv = unescape($1) ;
}
if ($last_url =~ /hostgroup=([^&]+)&?/) {
$hostgrp = unescape($1) ;
}
In doc.cgi (attached file) it will redirect you on a wiki page.
Regards.
Le mardi 12 avril 2005 à 10:20 +0100, Braun Brelin a écrit :
> > Hi,
> >
>
> >
> > When you say you have to manually manipulate the URL, do you mean in
> > your web browser (on the loaded 'notes' page), or in the
> > serviceextinfo.cfg file?#
>
> On my browser page. I.e. I have to manually type in the
> host=...&service=... on the browser in order to get the graph...
> >
> > The default way to get a graph with nagiosgraph seems to be to append
> > '?host=$HOSTNAME$&service=$SERVICEDESC$' on the end of the 'notes_url'
> > entry in the serviceextinfo definition. This will graph every data
> > element saved in the RRD file for the service - for example, if you are
> > graphing load average and your nagiosgraph map file saves the 1min, 5min
> > and 15min load average in the RRD file, nagiosgraph will show all three
> > data elements in the graph. By using the '&db=' feature of nagiosgraph,
> > you can choose to graph only some elements from the RRD file, or you can
> > create multiple graphs from the one RRD file. Also, by using the
> > '&rrdopts=' feature of nagiosgraph (introduced in version 1.9 of
> > show.cgi, I believe), you can have some control over how the graph will
> > look.
>
> That's what my serviceextinfo.cfg file looks like:
>
> Example:
>
> define serviceextinfo {
> host_name Banking_System
> service_description PING
> notes_url
> http://localhost/nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVIC
> EDESC$&graph_name=nagios-ping
> icon_image graph.gif
> icon_image_alt View graphs
> }
>
>
> Yet if I type in the show.cgi URL without anything else (i.e
> http://localhost/nagiosgraph/show.cgi) , I just get a blank page with
> purple background and the words Performance data for host: service: and a
> bunch of "broken" images.
>
>
> Braun Brelin
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
A non-text attachment was scrubbed...
Name: doc.cgi
Type: application/x-perl
Size: 2325 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050412/c81d31c2/attachment.bin>
More information about the Users
mailing list