APAN problems
Bunting, Glen, IG
GBunting864 at Worldsavings.com
Mon Mar 31 19:32:31 CEST 2003
Serviceextinfo does not work. I was able to get the graphs showing by using hostextinfo and moving the graph.png to /usr/local/nagios/share/images/logos.
I am now getting another problem in that when I click on the graph I get the page that is supposed to pull up but there are no graphs at all. When I enter the url to the graph http://localhost/nagios/cgi-bin/generate.cgi?GlenNT&Ping&600 I get a page that states "The image http://localhost/nagios/cgi-bin/generate.cgi?GlenNT&Ping&600 cannot be displayed because it contains errors". In apancgi.debug I am getting these messages:
CONF: GlenNT;Ping;/usr/local/nagios/rrd/GlenNT_Ping.rrd;ping;ping:LINE2;Ping round-trip time;Seconds
CONF: GlenNT;Ping;/usr/local/nagios/rrd/GlenNT_Ping.rrd;ping;ping:LINE2;Ping round-trip time;Seconds
CONF: GlenNT;Ping;/usr/local/nagios/rrd/GlenNT_Ping.rrd;ping;ping:LINE2;Ping round-trip time;Seconds
CONF: GlenNT;Ping;/usr/local/nagios/rrd/GlenNT_Ping.rrd;ping;ping:LINE2;Ping round-trip time;Seconds
CONF: GlenNT;Ping;/usr/local/nagios/rrd/GlenNT_Ping.rrd;ping;ping:LINE2;Ping round-trip time;Seconds
CONF: GlenNT;Ping;/usr/local/nagios/rrd/GlenNT_Ping.rrd;ping;ping:LINE2;Ping round-trip time;Seconds
/usr/bin/rrdtool graph - -s -2851200 -a PNG -v Seconds DEF:var0=/usr/local/nagios/rrd/GlenNT_Ping.rrd:ping:AVERAGE LINE2:var0#ff0000:ping:
/usr/bin/rrdtool graph - -s -86400 -a PNG -v Seconds DEF:var0=/usr/local/nagios/rrd/GlenNT_Ping.rrd:ping:AVERAGE LINE2:var0#ff0000:ping:
/usr/bin/rrdtool graph - -s -600 -a PNG -v Seconds DEF:var0=/usr/local/nagios/rrd/GlenNT_Ping.rrd:ping:AVERAGE LINE2:var0#ff0000:ping:
/usr/bin/rrdtool graph - -s -3600 -a PNG -v Seconds DEF:var0=/usr/local/nagios/rrd/GlenNT_Ping.rrd:ping:AVERAGE LINE2:var0#ff0000:ping:
/usr/bin/rrdtool graph - -s -604800 -a PNG -v Seconds DEF:var0=/usr/local/nagios/rrd/GlenNT_Ping.rrd:ping:AVERAGE LINE2:var0#ff0000:ping:
/usr/bin/rrdtool graph - -s -31557600 -a PNG -v Seconds DEF:var0=/usr/local/nagios/rrd/GlenNT_Ping.rrd:ping:AVERAGE LINE2:var0#ff0000:ping
Any ideas?
Thanks
Glen
-----Original Message-----
From: Fredrik Wänglund [mailto:fredrik.wanglund at datavis.se]
Sent: Monday, March 31, 2003 5:17 AM
To: Bunting, Glen, IG
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] APAN problems
Does any serviceextinfo work? Does the user that the web-server runs as
have read-permissions on the files?
Bunting, Glen, IG wrote:
>Fredrik,
>
>I have compared the case sensitivity of hostname/description and they look correct. Here are the relevant parts of my configs. I still do not have any links from within nagios.
>
>############################################################################################
># Services for APAN
>############################################################################################
>
># service definition for APAN ping
>
>define service{
> host_name GlenNT,JeffNT,JeffIIS,JeffLinux,gbredhat1
> service_description Ping
> is_volatile 0
> check_period 24x7
> max_check_attempts 3
> normal_check_interval 5
> retry_check_interval 1
> contact_groups nt-admins,linux-admins
> notification_interval 120
> notification_period 24x7
> notification_options c,r
> check_command apan!ping!100.0,20%!500.0,60%
> name Ping
> use generic-service
> normal_check_interval 1
> }
>
>############################################################################################
># Extended service information
>############################################################################################
>
># rrd link of ping round-trip times
>define serviceextinfo{
> host_name gbredhat1
> service_description Ping
> notes_url /nagios/cgi-bin/apan.cgi?host=gbredhat1&service=Ping
> icon_image graph.png
> icon_image_alt View graphs
> }
>
>############################################################################################
># Enabling extended host info
>############################################################################################
>
>xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg
>xedtemplate_config_file=/usr/local/nagios/etc/serviceextinfo.cfg
>
>Thanks
>
>Glen
>
>-----Original Message-----
>From: Fredrik Wänglund [mailto:fredrik.wanglund at datavis.se]
>Sent: Thursday, March 27, 2003 11:42 PM
>To: Bunting, Glen, IG
>Cc: nagios-users at lists.sourceforge.net
>Subject: Re: [Nagios-users] APAN problems
>
>
>The extinfo-definitions (and Apan) is very case-sensitive. Make sure
>your hostname/sevicedescription looks exactly the same in the
>service-definition and the serviceextinfo-definition.
>If this desnt work, let us look at the relevant parts of your config.
>
>
>/FredrikW
>
>
>
>Bunting, Glen, IG wrote:
>
>
>
>>I am currently trying to set up APAN. As far as I can tell, I have set it up exactly as shown in the how-to for the ping round trip times. I have two problems.
>>
>>1. The only host that this seems to be working on is the local host. All other computers I am getting an error "Could not insert ':Ping' , 'xxxxxxxxxx:' into /usr/local/nagios/rrd/GlenNT_Ping.rrd" from apan.debug. From within nagios is states the host could not be found.
>>
>>I have check the permissions on the rrd file and they all have nagios as the owner with read/write access.
>>
>>2. The other problem I have is that I cannot get the graphs to come up from within nagios using serviceextinfo.cfg. I can get hostextinfo.cfg to work properly with the logos, but not the APAN link to the graphs.
>>
>>I have followed the instruction and examples as close as I could and I believe they are accurate. Am I missing something obvious or should I post the relevant configs?
>>
>>Thanks
>>
>>Glen
>>
>>
>>*****************************************************************************
>>If you are not the intended recipient of this e-mail, please notify
>>the sender immediately. The contents of this e-mail do not amend
>>any existing disclosures or agreements unless expressly stated.
>>*****************************************************************************
>>
>>
>>
>>-------------------------------------------------------
>>This SF.net email is sponsored by:
>>The Definitive IT and Networking Event. Be There!
>>NetWorld+Interop Las Vegas 2003 -- Register today!
>>http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
>>_______________________________________________
>>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
>>
>>
>>
>>
>
>
>
>
>*****************************************************************************
>If you are not the intended recipient of this e-mail, please notify
>the sender immediately. The contents of this e-mail do not amend
>any existing disclosures or agreements unless expressly stated.
>*****************************************************************************
>
>
>
*****************************************************************************
If you are not the intended recipient of this e-mail, please notify
the sender immediately. The contents of this e-mail do not amend
any existing disclosures or agreements unless expressly stated.
*****************************************************************************
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
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
More information about the Users
mailing list