nagisograph not diplaying graph in url

Joe Astrologo jastrolo at gmail.com
Fri May 4 20:56:53 CEST 2007


When I type the Url:

http://nagios02/nagiosgraph/show.cgi?host=admin01$&service=NM-NRPE-CPU

I Get this:

Nagiosgraph

Performance data for *Host: *admin01$ · *Service: *NM-NRPE-CPU
Daily [image: Graph]
Weekly [image: Graph]
Monthly [image: Graph]
Yearly [image: Graph]

It creates all the rrd files and service-perf-data files.

root at nagios02 nagios]# pwd
/var/nagios
[root at nagios02 nagios]# ls -lrt
total 5904
-rwxrwxrwx  1 nagios nagios       0 May  3 15:15 nagiosgraph.log
-rw-rw-r--  1 nagios nagios     479 May  4 14:45 host-perfdata.dat
-rw-rw-r--  1 nagios nagios  138949 May  4 14:53 service-perfdata.dat

[root at nagios02 nagiosgraph]# pwd
/var/lib/rrd/nagiosgraph
[root at nagios02 nagiosgraph]# ls -lrt
total 1912
-rw-rw-r--  1 nagios nagios 71152 May  3 11:31
%20opprod04%2Eohis%2Elocal%20_%20CPU%20Load%20_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  3 11:32
%20oradev01%2Eohis%2Elocal%20_%20CPU%20Load%20_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  3 11:33
%20nagios02%2Eohis%2Elocal%20_%20Linux%20CPU%20check%20_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  3 11:34
%20opprod01%2Eohis%2Elocal%20_%20CPU%20Load%20_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  3 11:34
%20opprod05%2Eohis%2Elocal%20_%20CPU%20Load%20_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  3 11:34
%20oraprod04%2Eohis%2Elocal%20_%20CPU%20Load%20_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  3 11:35
%20admin02%2Eohis%2Elocal%20_%20CPU%20Load%20_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  3 11:38
%20nygsprod02%2Eohis%2Elocal%20_%20CPU%20Load%20_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  3 11:38
%20oradev02%2Eohis%2Elocal%20_%20CPU%20Load%20_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  3 11:38
%20opprod03%2Eohis%2Elocal%20_%20CPU%20Load%20_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  3 11:40
%20admin01%2Eohis%2Elocal%20_%20CPU%20Load%20_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  4 14:45
admin01%2Eohis%2Elocal_CPU%20Load_load.rrd
-rw-rw-r--  1 nagios nagios 24096 May  4 14:45
nygsprod02%2Eohis%2Elocal_Zombie%20Processes_zombie.rrd
-rw-rw-r--  1 nagios nagios 24096 May  4 14:46
opprod04%2Eohis%2Elocal_Zombie%20Processes_zombie.rrd
-rw-rw-r--  1 nagios nagios 71152 May  4 14:46
opprod03%2Eohis%2Elocal_CPU%20Load_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  4 14:46
oradev02%2Eohis%2Elocal_CPU%20Load_load.rrd
-rw-rw-r--  1 nagios nagios 24096 May  4 14:46
opprod05%2Eohis%2Elocal_Zombie%20Processes_zombie.rrd
-rw-rw-r--  1 nagios nagios 24096 May  4 14:46
oraprod04%2Eohis%2Elocal_Zombie%20Processes_zombie.rrd
-rw-rw-r--  1 nagios nagios 24096 May  4 14:47
admin01%2Eohis%2Elocal_Zombie%20Processes_zombie.rrd
-rw-rw-r--  1 nagios nagios 71152 May  4 14:48
nagios02%2Eohis%2Elocal_Linux%20CPU%20check_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  4 14:49
opprod04%2Eohis%2Elocal_CPU%20Load_load.rrd
-rw-rw-r--  1 nagios nagios 24096 May  4 14:49
opprod01%2Eohis%2Elocal_Zombie%20Processes_zombie.rrd
-rw-rw-r--  1 nagios nagios 71152 May  4 14:49
oradev01%2Eohis%2Elocal_CPU%20Load_load.rrd
-rw-rw-r--  1 nagios nagios 24096 May  4 14:49
oradev02%2Eohis%2Elocal_Zombie%20Processes_zombie.rrd
-rw-rw-r--  1 nagios nagios 24096 May  4 14:50
admin02%2Eohis%2Elocal_Zombie%20Processes_zombie.rrd
-rw-rw-r--  1 nagios nagios 71152 May  4 14:50
admin02%2Eohis%2Elocal_CPU%20Load_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  4 14:51
opprod01%2Eohis%2Elocal_CPU%20Load_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  4 14:51
opprod05%2Eohis%2Elocal_CPU%20Load_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  4 14:51
oraprod04%2Eohis%2Elocal_CPU%20Load_load.rrd
-rw-rw-r--  1 nagios nagios 71152 May  4 14:53
nygsprod02%2Eohis%2Elocal_CPU%20Load_load.rrd
-rw-rw-r--  1 nagios nagios 24096 May  4 14:53
opprod03%2Eohis%2Elocal_Zombie%20Processes_zombie.rrd
-rw-rw-r--  1 nagios nagios 24096 May  4 14:53
oradev01%2Eohis%2Elocal_Zombie%20Processes_zombie.rrd


I think the insert.pl is not working as I get a premature end of script
error when I run it.

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
}



Any Ideas.


 ------------------------------
Created by nagiosgraph <http://nagiosgraph.sf.net/>.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070504/c0ec7372/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