nagiosgraph show.cgi scripts fail s

Joe Astrologo jastrolo at gmail.com
Wed May 2 21:38:09 CEST 2007


When I run the following url scripts:

http://nagios02/nagiosgraph/show.cgi?host=total03&service=NM-Windows-CPU

I get the following error:

 Internal Server Error

The server encountered an internal error or misconfiguration and was unable
to complete your request.

Please contact the server administrator, postmaster at ohis.com and inform them
of the time the error occurred, and anything you might have done that may
have caused the error.

More information about this error may be available in the server error log.



also in /etc/httpd/logs:



The httpd error file gives me:

[Wed May 02 10:23:39 2007] [error] [client 10.0.42.66] Bareword
"RRDs::error" not allowed while "strict subs" in use at
/usr/local/nagios/nagiosgraph/show.cgi line 132.
[Wed May 02 10:23:39 2007] [error] [client 10.0.42.66] Execution of
/usr/local/nagios/nagiosgraph/show.cgi aborted due to compilation errors.
[Wed May 02 10:23:39 2007] [error] [client 10.0.42.66] Premature end of
script headers: show.cgi

config files are as follows:



/usr/local/nagios/etc/nagios.cfg:

log_file=/usr/local/nagios/var/nagios.log
cfg_file=/usr/local/nagios/etc/Command.cfg
cfg_file=/usr/local/nagios/etc/Contact.cfg
cfg_file=/usr/local/nagios/etc/ContactGroup.cfg
cfg_file=/usr/local/nagios/etc/ContactTemplate.cfg
cfg_file=/usr/local/nagios/etc/Host.cfg
cfg_file=/usr/local/nagios/etc/HostDependency.cfg
cfg_file=/usr/local/nagios/etc/HostEscalation.cfg
cfg_file=/usr/local/nagios/etc/HostGroup.cfg
cfg_file=/usr/local/nagios/etc/HostGroupEscalation.cfg
cfg_file=/usr/local/nagios/etc/HostTemplate.cfg
cfg_file=/usr/local/nagios/etc/Service.cfg
cfg_file=/usr/local/nagios/etc/ServiceDependency.cfg
cfg_file=/usr/local/nagios/etc/ServiceEscalation.cfg
cfg_file=/usr/local/nagios/etc/ServiceTemplate.cfg
cfg_file=/usr/local/nagios/etc/TimePeriod.cfg
resource_file=/usr/local/nagios/etc/resource.cfg
status_file=/usr/local/nagios/var/status.log
nagios_user=nagios
nagios_group=nagios
check_external_commands=1
command_check_interval=-1
command_file=/usr/local/nagios/var/rw/nagios.cmd
comment_file=/usr/local/nagios/var/comment.log
downtime_file=/usr/local/nagios/var/downtime.log
lock_file=/usr/local/nagios/var/nagios.lock
temp_file=/usr/local/nagios/var/nagios.tmp
log_rotation_method=d
log_archive_path=/usr/local/nagios/var/archives
use_syslog=1
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=0
log_external_commands=1
#log_passive_service_checks=1
#inter_check_delay_method=s
service_interleave_factor=s
max_concurrent_checks=0
service_reaper_frequency=10
sleep_time=1
service_check_timeout=60
host_check_timeout=30
event_handler_timeout=30
notification_timeout=30
ocsp_timeout=5
perfdata_timeout=5
retain_state_information=1
state_retention_file=/usr/local/nagios/var/status.sav
retention_update_interval=60
use_retained_program_state=0
interval_length=60
use_agressive_host_checking=0
execute_service_checks=1
accept_passive_service_checks=1
enable_notifications=1
enable_event_handlers=1
process_performance_data=1
host_perfdata_file=/var/nagios/host-perfdata.dat
service_perfdata_file=/var/nagios/service-perfdata.dat
host_perfdata_file_template=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t\$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$
host_perfdata_file_mode=a
service_perfdata_file_mode=a
service_perfdata_file_template=[SERVICEPERFDATA]\t$TIMET$\t\$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t\$SERVICELATENCY$\t$SERVICEOUT
PUT$\t$SERVICEPERFDATA$
service_perfdata_command=process-service-perfdata
obsess_over_services=0
check_for_orphaned_services=0
check_service_freshness=1
freshness_check_interval=60
aggregate_status_updates=1
status_update_interval=15
enable_flap_detection=0
low_service_flap_threshold=5.0
high_service_flap_threshold=20.0
low_host_flap_threshold=5.0
high_host_flap_threshold=20.0
date_format=us
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
illegal_macro_output_chars=`~$&|'"<>
admin_email=jastrologo at ohis.com
admin_pager=jastrologo at ohis.com

/usr/local/nagios/nagiosgraph/nagiosgraph.conf:

# File:    $Id: nagiosgraph.conf,v 1.8 2006/04/06 10:00:06 sauber Exp $
# Author:  (c) Soren Dossing, 2005
# License: OSI Artistic License
#          http://www.opensource.org/licenses/artistic-license.php

# Debug levels
# 0 = None
# 1 = Critical
# 2 = Error
# 3 = Warn
# 4 = Info
# 5 = Debug
debug = 2

# Location of debug log file
logfile = /var/nagios/nagiosgraph.log

# Directory to store rrd database files
rrddir =  /var/lib/rrd/nagiosgraph

# File containing regular expressions to identify service and perf data
mapfile = /usr/local/nagios/nagiosgraph/map

# Color scheme for graphs. Choose a number between 1 and 8.
colorscheme = 4

# Heartbeat. In seconds, twice the size of servicecheck intervals
heartbeat = 600

# Location of performance data log file. Comment out it not used.
perflog = /var/spool/nagios/perfdata.log

# Stylesheet - added to head of show.cgi. Comment out if not used
stylesheet = /nagios/stylesheets/nagiosgraph.cssExtInfo.cfg

rrdtool = /usr/bin/rrdtool



/usr/local/nagios/etc/ServiceExtInfo.cfg:

## NagMIN Configuration File (/usr/local/nagmin/nagios/ServiceExtInfo.cfg)
for ServiceExtTemplate
## Generated Fri Mar  3 10:22:20 2006

define serviceextinfo{
    service_description         NM-Windows-CPU
    host_group  windows-servers
    notes_url   /nagiosgraph/show.cgi?host=$HOSTNAME$&service=NM-Windows-CPU
    icon_image  graph.gif
    icon_image_alt show graphics
}

define serviceextinfo{
    service_description         NM-NRPE-CPU-Usage
    host_group  linux-servers
    notes_url
/nagiosgraph/show.cgi?host=$HOSTNAME$&service=NM-NRPE-CPU-Usage
    icon_image  graph.gif
    icon_image_alt show graphics
}



------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070502/e1588cd0/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
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