Graph links on Nagios 2.0 web interface

Efe Ohimor eohimor at ipnxnigeria.net
Wed Feb 22 20:06:14 CET 2006


Message: 12

Date: Thu, 16 Feb 2006 20:20:51 +0100 (CET)

From: Hugo van der Kooij <hvdkooij at vanderkooij.org>

Reply-To: Nagios Users Mailinglist <nagios-users at lists.sourceforge.net>

To: Nagios Users Mailinglist <nagios-users at lists.sourceforge.net>

Subject: Re: [Nagios-users] Graph links on Nagios 2.0 web interface

 

On Thu, 16 Feb 2006, Efe Ohimor wrote:

 

> I am currently running Nagios version 2.0 with the plugin version 1.4. I
try

> to create a link on my nagios web interface. I have tried it before on

> version 1.2 and the links were created but I guess version 2.0 has a

> different code. Or has anyone done it on version 2.0 before.

> Because I have been to the Apan site and most people there have used it
for

> version 1.2 and someone too complained about not being able to use it with

> version 2.0.

 

What is wrong with using extended host/service info?

 

Like:

define hostextinfo{

        host_name       aragorn

        notes_url
/nagios/cgi-bin/rrd-graph.cgi?host=aragorn&service=all

        icon_image      base/redhat.png

        icon_image_alt  Fedora Core 4

        vrml_image      base/redhat.png

        statusmap_image base/redhat.gd2

        }

 

Or:

define serviceextinfo{

        host_name               aragorn

        icon_image              dot.gif' border="0"></a><A TARGET="_blank"
HREF="graphs.cgi?host=aragorn&service=HTTP" BORDER="0"><img
src="/nagios/images/logos/graph.png" border="0"logos/dot.gif

        service_description     HTTP

        notes_url
/nagios/cgi-bin/graphs.cgi?host=aragorn&service=HTTP

}

 

Hugo.

 

Hello,

 

Thanks for your reply.

 

Here is my serviceextinfo.cfg configuration

 

define serviceextinfo {

host_name                       excellence, Aremu, NS1, NS2, NS3,
service_description             Ping Latency

        notes_url
/nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$

        icon_image
/usr/local/nagios/share/logos/graph.gif

        icon_image_alt                  View graphs

}

 

In my httpd.conf the following lines were added

 

#</Directory>

 

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

<Directory "/usr/local/nagios/sbin">

    AllowOverride AuthConfig

    Options ExecCGI

    Order allow,deny

    Allow from all

</Directory>

 

ScriptAlias /nagiosgraph /usr/local/nagios/nagiosgraph/

#<Directory "/usr/local/nagios/nagiosgraph">

#    AllowOverride None

#    Options None

#    Order allow,deny

#    Allow from all

#</Directory>

 

 

 

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">

    Options None

    AllowOverride AuthConfig

    Order allow,deny

    Allow from all

</Directory>

 

I use nagios graph for my graphing.After the config I restart nagios and
restarted my webserver but I still cannot see the icon.

I still do not know what I am doing wrong.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060222/41ad418d/attachment.html>


More information about the Users mailing list