<div>When I run the following url scripts:</div>
<div> </div>
<div><a href="http://nagios02/nagiosgraph/show.cgi?host=total03&service=NM-Windows-CPU">http://nagios02/nagiosgraph/show.cgi?host=total03&service=NM-Windows-CPU</a></div>
<div> </div>
<div>I get the following error:</div>
<div> </div>
<div>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p>
<p>Please contact the server administrator, <a href="mailto:postmaster@ohis.com">postmaster@ohis.com</a> and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p>

<p>More information about this error may be available in the server error log.</p>
<p> </p>
<p>also in /etc/httpd/logs:</p>
<p> </p>
<p>The httpd error file gives me:</p>
<p>[Wed May 02 10:23:39 2007] [error] [client <a href="http://10.0.42.66">10.0.42.66</a>] Bareword "RRDs::error" not allowed while "strict subs" in use at /usr/local/nagios/nagiosgraph/show.cgi line 132.
<br>[Wed May 02 10:23:39 2007] [error] [client <a href="http://10.0.42.66">10.0.42.66</a>] Execution of /usr/local/nagios/nagiosgraph/show.cgi aborted due to compilation errors.<br>[Wed May 02 10:23:39 2007] [error] [client 
<a href="http://10.0.42.66">10.0.42.66</a>] Premature end of script headers: show.cgi<br></p>
<p>config files are as follows:</p>
<p> </p>
<p>/usr/local/nagios/etc/nagios.cfg:</p>
<p>log_file=/usr/local/nagios/var/nagios.log<br>cfg_file=/usr/local/nagios/etc/Command.cfg<br>cfg_file=/usr/local/nagios/etc/Contact.cfg<br>cfg_file=/usr/local/nagios/etc/ContactGroup.cfg<br>cfg_file=/usr/local/nagios/etc/ContactTemplate.cfg
<br>cfg_file=/usr/local/nagios/etc/Host.cfg<br>cfg_file=/usr/local/nagios/etc/HostDependency.cfg<br>cfg_file=/usr/local/nagios/etc/HostEscalation.cfg<br>cfg_file=/usr/local/nagios/etc/HostGroup.cfg<br>cfg_file=/usr/local/nagios/etc/HostGroupEscalation.cfg
<br>cfg_file=/usr/local/nagios/etc/HostTemplate.cfg<br>cfg_file=/usr/local/nagios/etc/Service.cfg<br>cfg_file=/usr/local/nagios/etc/ServiceDependency.cfg<br>cfg_file=/usr/local/nagios/etc/ServiceEscalation.cfg<br>cfg_file=/usr/local/nagios/etc/ServiceTemplate.cfg
<br>cfg_file=/usr/local/nagios/etc/TimePeriod.cfg<br>resource_file=/usr/local/nagios/etc/resource.cfg<br>status_file=/usr/local/nagios/var/status.log<br>nagios_user=nagios<br>nagios_group=nagios<br>check_external_commands=1
<br>command_check_interval=-1<br>command_file=/usr/local/nagios/var/rw/nagios.cmd<br>comment_file=/usr/local/nagios/var/comment.log<br>downtime_file=/usr/local/nagios/var/downtime.log<br>lock_file=/usr/local/nagios/var/nagios.lock
<br>temp_file=/usr/local/nagios/var/nagios.tmp<br>log_rotation_method=d<br>log_archive_path=/usr/local/nagios/var/archives<br>use_syslog=1<br>log_notifications=1<br>log_service_retries=1<br>log_host_retries=1<br>log_event_handlers=1
<br>log_initial_states=0<br>log_external_commands=1<br>#log_passive_service_checks=1<br>#inter_check_delay_method=s<br>service_interleave_factor=s<br>max_concurrent_checks=0<br>service_reaper_frequency=10<br>sleep_time=1<br>
service_check_timeout=60<br>host_check_timeout=30<br>event_handler_timeout=30<br>notification_timeout=30<br>ocsp_timeout=5<br>perfdata_timeout=5<br>retain_state_information=1<br>state_retention_file=/usr/local/nagios/var/status.sav
<br>retention_update_interval=60<br>use_retained_program_state=0<br>interval_length=60<br>use_agressive_host_checking=0<br>execute_service_checks=1<br>accept_passive_service_checks=1<br>enable_notifications=1<br>enable_event_handlers=1
<br>process_performance_data=1<br>host_perfdata_file=/var/nagios/host-perfdata.dat<br>service_perfdata_file=/var/nagios/service-perfdata.dat<br>host_perfdata_file_template=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t\$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$
<br>host_perfdata_file_mode=a<br>service_perfdata_file_mode=a<br>service_perfdata_file_template=[SERVICEPERFDATA]\t$TIMET$\t\$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t\$SERVICELATENCY$\t$SERVICEOUT PUT$\t$SERVICEPERFDATA$
<br>service_perfdata_command=process-service-perfdata<br>obsess_over_services=0<br>check_for_orphaned_services=0<br>check_service_freshness=1<br>freshness_check_interval=60<br>aggregate_status_updates=1<br>status_update_interval=15
<br>enable_flap_detection=0<br>low_service_flap_threshold=5.0<br>high_service_flap_threshold=20.0<br>low_host_flap_threshold=5.0<br>high_host_flap_threshold=20.0<br>date_format=us<br>illegal_object_name_chars=`~!$%^&*|'"<>?,()=
<br>illegal_macro_output_chars=`~$&|'"<><br><a href="mailto:admin_email=jastrologo@ohis.com">admin_email=jastrologo@ohis.com</a><br><a href="mailto:admin_pager=jastrologo@ohis.com">admin_pager=jastrologo@ohis.com
</a><br></p>
<p>/usr/local/nagios/nagiosgraph/nagiosgraph.conf:</p>
<p># File:    $Id: nagiosgraph.conf,v 1.8 2006/04/06 10:00:06 sauber Exp $<br># Author:  (c) Soren Dossing, 2005<br># License: OSI Artistic License<br>#          <a href="http://www.opensource.org/licenses/artistic-license.php">
http://www.opensource.org/licenses/artistic-license.php</a></p>
<p># Debug levels<br># 0 = None<br># 1 = Critical<br># 2 = Error<br># 3 = Warn<br># 4 = Info<br># 5 = Debug<br>debug = 2</p>
<p># Location of debug log file<br>logfile = /var/nagios/nagiosgraph.log</p>
<p># Directory to store rrd database files<br>rrddir =  /var/lib/rrd/nagiosgraph</p>
<p># File containing regular expressions to identify service and perf data<br>mapfile = /usr/local/nagios/nagiosgraph/map</p>
<p># Color scheme for graphs. Choose a number between 1 and 8.<br>colorscheme = 4</p>
<p># Heartbeat. In seconds, twice the size of servicecheck intervals<br>heartbeat = 600</p>
<p># Location of performance data log file. Comment out it not used.<br>perflog = /var/spool/nagios/perfdata.log</p>
<p># Stylesheet - added to head of show.cgi. Comment out if not used<br>stylesheet = /nagios/stylesheets/nagiosgraph.cssExtInfo.cfg</p>
<p>rrdtool = /usr/bin/rrdtool</p>
<p> </p>
<p>/usr/local/nagios/etc/ServiceExtInfo.cfg:</p>
<p>## NagMIN Configuration File (/usr/local/nagmin/nagios/ServiceExtInfo.cfg) for ServiceExtTemplate<br>## Generated Fri Mar  3 10:22:20 2006</p>
<p>define serviceextinfo{<br>    service_description         NM-Windows-CPU<br>    host_group  windows-servers<br>    notes_url   /nagiosgraph/show.cgi?host=$HOSTNAME$&service=NM-Windows-CPU<br>    icon_image  graph.gif
<br>    icon_image_alt show graphics<br>}</p>
<p>define serviceextinfo{<br>    service_description         NM-NRPE-CPU-Usage<br>    host_group  linux-servers<br>    notes_url   /nagiosgraph/show.cgi?host=$HOSTNAME$&service=NM-NRPE-CPU-Usage<br>    icon_image  graph.gif
<br>    icon_image_alt show graphics<br>}<br></p>
<p><br> </p>
<hr>
</div>
<div> </div>