APAN shows no graphs(Unknown host or service)

LEUNG Wing Yee 010465845 at stu.vtc.edu.hk
Fri Apr 16 22:54:23 CEST 2004


Dear All,
I've just upgraded Nagios 1.1 to 1.2.
I've checked the configuration files and corrected the paths to these files.
RRDs are all getting data. But no graphs appear after the icon is pressed.
It only shows:" Unknown host or service: STLOCAL2 / apan_unixload "
>From the Nagios log file, everything seems working fine.
Could anyone give me some help? Thanks very much.

###/etc/nagios/checkcommands.cfg
define command{
	command_name	apan
	command_line	/usr/lib/nagios/apan/apan.sh $ARG1$ $HOSTNAME$ "$SERVICEDESC$" $TIMET$ $ARG2$ $ARG3$
	}

###/etc/nagios/nagios.cfg
log_file=/var/log/nagios/nagios.log
cfg_file=/etc/nagios/checkcommands.cfg
cfg_file=/etc/nagios/misccommands.cfg
cfg_file=/etc/nagios/contactgroups.cfg
cfg_file=/etc/nagios/contacts.cfg
....

###/etc/nagios/serviceextinfo.cfg
define serviceextinfo{
         host_name               STLOCAL2
         service_description     apan_unixdisk
         notes_url               /nagios/cgi-bin/apan.cgi?host=STLOCAL2&service=apan_unixdisk
         icon_image              graph.png
         icon_image_alt          View graphs
 }

###/etc/nagios/cgi.cfg
# MAIN CONFIGURATION FILE
main_config_file=/etc/nagios/nagios.cfg

# PHYSICAL HTML PATH
physical_html_path=/usr/share/nagios

# URL HTML PATH
url_html_path=/nagios

# EXTENDED SERVICE INFORMATION
serviceextinfo[<host_name>;<service_description>]=<notes_url>;<icon_image>;<icon_image_alt>
xedtemplate_config_file=/etc/nagios/serviceextinfo.cfg

# DB STATUS DATA (Read-Only For CGIs)
xsddb_host=localhost
xsddb_port=3306
xsddb_database=nsms
xsddb_username=nagios
xsddb_password=nagios
xedtemplate_config_file=/etc/nagios/serviceextinfo.cfg


###/usr/lib/nagios/apan/apan.cfg
STLOCAL2;apan_unixdisk;/usr/lib/nagios/rrd/STLOCAL2-apan_unixdisk.rrd;/;root:AREA;Disk usage;%

###/usr/lib/nagios/cgi/generate.cgi,apan.cgi & /usr/lib/nagios/apan/apan.sh
DEFSFILE=/usr/lib/nagios/apan/apan.defs

###/usr/lib/nagios/apan/apan.defs
#Base-directory for nagios:
NAGIOSDIR=/usr/lib/nagios

#The directory where apan is installed
APANDIR=$NAGIOSDIR/apan

#The directory where Nagios plugins resides
PLUGINSDIR=$NAGIOSDIR/plugins

#The directory where Nagios .cfg-files resides
#ETCDIR=$NAGIOSDIR/etc
ETCDIR=/etc/nagios

# The directory where apans plugins resides
PLUGSDIR=$APANDIR/plugs

# The main config-file for apan
CFGFILE=$APANDIR/apan.cfg

# Path to rrdtool
#RRDTOOL=/usr/local/bin/rrdtool
RRDTOOL=/usr/local/rrdtool-1.0.43/bin/rrdtool


# Set DEBUG to 1 and define a DEBUGFILE to get debug-info from apan
DEBUG=1
DEBUGFILE=/tmp/apan.debug

# Set CGIDEBUG to 1 and define a CGIDEBUGFILE to get debug-info from the cgi's
CGIDEBUG=1
CGIDEBUGFILE=/tmp/apancgi.debug

Regards,
Leung



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
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