statusmap.cgi takes more than 60 seconds to re nder
John Marrett
jmarrett at mediagrif.com
Fri Mar 28 17:42:17 CET 2003
My apologies for my HTML, my companies mail server rewrites them
automagically...
I know that a P166 isn't a powerful machine, it was more of a joke, though
apparently not much of one.
I might be able to get a better machine if the project get's approved. As it
stands the CPU is pegged at 100% during the render. Given that it can render
the map with the default question mark icon in a few seconds I find it
strange that it can't do the same with non default icons. I take it no
caching of previsouly used images is done.
I have now tried to use templates instead of specifying the icon for each
host. Unfortunately this doesn't appear to help.
I have tried using gd2 icons for the statusmap to reduce the overhead; when
I try this however I just get question marks instead of the proper icons. I
believe that I may be having problems with the icons I created using
png2gd2.
I have tried using the two following commands to create them:
pngtogd2 cisco-database.png cisco-database.gd2 64 1
and also
pngtogd cisco-database.png cisco-database.gd2
I have two versions of libgd installed on the system:
/usr/lib/libgd.so
/usr/lib/libgd.so.1
/usr/lib/libgd.so.1.8.4
/usr/lib/libgd.so.2
/usr/lib/libgd.so.2.0.1
I'm not sure which is being used by the statusmap.cgi or the pngtogd2.
pngtogd2 is from the debian package libgd-tools
Does anyone have any suggestions?
-JohnF
-----Original Message-----
From: Fred Albrecht [mailto:Fred.Albrecht at za.tiscali.com]
Sent: Friday, March 28, 2003 1:14 AM
To: John Marrett
Subject: RE: [Nagios-users] statusmap.cgi takes more than 60 seconds to
render
Hi John
What you can do is have a look at how busy your cpu gets when the statusmap
cgi is running. You'll probably find that you cpu is maxed out at 100%, it
can only work so hard. ;(
And, with all due respect, a P166 is NOT a powerfull machine. For comfort
sake I'd say get yourself a P4 (if you prefer to stay with PC's) and think
of it as an investement in your network, IMHO.
best regards
:)
fred
-----Original Message-----
From: John Marrett [mailto:jmarrett at mediagrif.com]
Sent: 28 March 2003 12:13 AM
To: 'nagios-users at lists.sourceforge.net'
Subject: [Nagios-users] statusmap.cgi takes more than 60 seconds to render
I am in the process of configuring Nagios for the first time. I am running
the latest version (1.0) on a powerful Pentium 166.
I have configured some parts of my network totaling about 80 hosts. I am now
attempting to change the icons for the systems in the status map. I have
created a xedtemplate_config_file and put records similar to the following
for all my systems.
define hostextinfo {
host_name swrtant1
icon_image cisco-switch.png
statusmap_image cisco-switch.png
}
It now takes more than 60 seconds to generate the statusmap.
I tried gd2 files created using the following command:
pngtogd2 cisco-switch.png cisco-switch.gd2 64 1 and they show up as question
marks. I believe I may be having some gd2 image compatability problems.
Does anyone have suggestions on how to improve the time it takes to draw the
statusmap?
If a hardware upgrade is required what type of machine will I need to
monitor my entire network (~200 systems, approximately 10 different types
with corresponding images).
Thanks for your help,
-JohnF
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030328/00279e8a/attachment.html>
More information about the Users
mailing list