<br><font size=2 face="sans-serif">Hi Jim,</font>
<br>
<br><font size=2 face="sans-serif">I am getting following error while accessing
URL http://<IP Address>/drraw after following your suggested steps.
 </font>
<br>
<br><font size=2 face="sans-serif">___________________________________________________________________________________________________________</font>
<br><font size=2 face="sans-serif"><b>Software error:</b></font>
<br><font size=2 face="sans-serif">Can't locate loadable object for module
RRDs in @INC (@INC contains: /usr/local/rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris
/usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int
/usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int
/usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl) at /var/www/drraw/drraw.cgi
line 48<br>
Compilation failed in require at /var/www/drraw/drraw.cgi line 48.<br>
BEGIN failed--compilation aborted at /var/www/drraw/drraw.cgi line 48.<br>
</font>
<p><font size=2 face="sans-serif">For help, please send mail to the webmaster
(</font><a href=mailto:you@example.com><font size=2 color=blue face="sans-serif"><u>you@example.com</u></font></a><font size=2 face="sans-serif">),
giving this error message and the time and date of the error. </font>
<br><font size=2 face="sans-serif">___________________________________________________________________________________________________________</font>
<br>
<br><font size=2 face="sans-serif">However I have made below changes in
drraw.cgi to use RRDs :</font>
<br>
<br><font size=2 face="sans-serif"><b>use lib '/usr/local/rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris';</b></font>
<br><font size=2 face="sans-serif"><b>use RRDs;</b></font>
<br>
<br><font size=2 face="sans-serif">RRDs.pm is also available in mentioned
location </font>
<br>
<br><font size=2 face="sans-serif"><b># cd /usr/local/rrdtool-1.2.19/lib/perl/5.8.7/sun4-solaris/</b></font>
<br><font size=2 face="sans-serif"><b>#ls </b></font>
<br><font size=2 face="sans-serif"><b>RRDs.pm        auto
          ntmake.pl      perllocal.pod</b></font>
<br>
<br>
<br><font size=2 face="sans-serif">following  packages are installed
on sun box:</font>
<br>
<br><font size=2 face="sans-serif">Perl 5.8.4 </font>
<br><font size=2 face="sans-serif">Apache/2.2.11</font>
<br><font size=2 face="sans-serif">RRDtool 1.2.19</font>
<br>
<br><font size=2 face="sans-serif">Please help me.</font>
<br>
<br><font size=2 face="sans-serif"><br>
Mohandas Kudva K</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Jim Avery <jim@jimavery.me.uk></b>
</font>
<br><font size=1 face="sans-serif">Sent by: averyjim@gmail.com</font>
<p><font size=1 face="sans-serif">05/11/2009 08:40 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">mohandas.k@tcs.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">nagios-users@lists.sourceforge.net</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Nagios-users] PNP4nagios-Implementing
drraw</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>2009/5/11  <mohandas.k@tcs.com>:<br>
><br>
> Hi,<br>
><br>
> I am currently working on drraw but i have been finding it very difficult
to<br>
> configure the same. So can anyone please help me to implement it.
Any help<br>
> would be appreciated.<br>
><br>
> Regards,<br>
> Mohandas Kudva K<br>
> Mailto: mohandas.k@tcs.com<br>
<br>
I doubt I've remembered everything, but hopefully these notes might help...<br>
<br>
I downloaded the tarball drraw-2.2b2.tar.gz from<br>
</font></tt><a href=http://web.taranis.org/drraw/#download><tt><font size=2>http://web.taranis.org/drraw/#download</font></tt></a><tt><font size=2><br>
<br>
I extracted it under /var/www, then renamed the directory from<br>
drraw-2.2bd to drraw.<br>
<br>
I editted the file /var/www/drraw/drraw.conf to set the datadirs like so:<br>
<br>
  %datadirs = ('/usr/local/nagios/share/perfdata-nagios2'  =>
'[Nagios2] ',<br>
               '/usr/local/nagios/share/perfdata'
 => '[Nagios3] ',<br>
              );<br>
<br>
You probably only need the one datadir - I have some old .rrds in<br>
perfdata-nagios2 I like to be able to look at too.<br>
<br>
I set variables for the working directories for drraw like so:<br>
<br>
  $saved_dir = '/usr/local/drraw/saved';<br>
  $tmp_dir = '/usr/local/drraw/tmp';<br>
<br>
These already existed on my system from a previous install - you may<br>
need to create them.  Put them wherever you think is suitable and
make<br>
sure they are writeable by apache (on my system permissions on these<br>
are "drwxr-xr-x 2 www-data www-data").<br>
<br>
<br>
<br>
I create the file /etc/apache2/conf.d/drraw.conf like so:<br>
<br>
<br>
# ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"<br>
<br>
  Alias /drraw "/var/www/drraw"<br>
  <Directory "/var/www/drraw"><br>
      DirectoryIndex  drraw.cgi<br>
  #  SSLRequireSSL<br>
     Options +ExecCGI<br>
     AddHandler cgi-script .cgi<br>
     AllowOverride None<br>
     Order allow,deny<br>
     Allow from all<br>
  #  Order deny,allow<br>
  #  Deny from all<br>
  #  Allow from 127.0.0.1<br>
     AuthName "Nagios Access"<br>
     AuthType Basic<br>
     AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>
     Require valid-user<br>
  </Directory><br>
<br>
<br>
<br>
and restarted the apache daemon to make it take effect.<br>
<br>
I hope this helps.<br>
<br>
If you're still having trouble, please be a bit more specific about<br>
what you are having a problem with.<br>
<br>
Cheers,<br>
<br>
Jim<br>
</font></tt>
<br><font size=1 color=white face="sans-serif">ForwardSourceID:NT00002F1A
   </font>
<br><pre>=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


</pre>