nagiosGrapher (howto ????? )

Per Jørgensen udbytossen at gmail.com
Sat Jan 27 19:50:10 CET 2007


Well - Now I have used all day trying to configure this NagiosGrapher - 
and ain't got no results out yet...
It's installed on Ubuntu using the package (autoconf,./configure - make 
install)

I'm doing something wrong but haven't got a clue about it - but really 
like the interface style - so it's a bit shame: here´s what i have done:

*nagios.cfg*
added the following lines:
cfg_dir=/usr/local/nagios/etc/ngraph.d
cfg_dir=/usr/local/nagios/etc/serviceext

process_performance_data=1
service_perfdata_command=process-service-perfdata

*perfdata.cfg:*
define command {
    command_name      process-service-perfdata
    command_line         /usr/local/nagios/contrib/fifo_write 
'$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n' 3
}

*ngraph.ncfg:*
#  tabspace: 8

# ---
# Nagios Grapher Main Configuration
# ---

define config {
        pipe                                    
/var/lib/nagios/ngraph.pipe                   
        port                                    5667
        buffer                                  1024
        interface                               network

        # please use subfolder
        pidfile                                 
/usr/local/nagios/var/nagios_grapher/nagios_grapher.pid
        user                                    nagios
        group                                   nagios

        # normal_check_interval
        step                    300

        # VALUE or AUTO
        heartbeat               600

        rrdpath                 /usr/local/nagios/var/rrd/
        tmppath                 /tmp/nagiosgrapher/

        fontfile                
/usr/local/rrdtool/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf

        serviceext_type         MULTIPLE
        serviceextinfo          /usr/local/nagios/etc/serviceextinfo.cfg
        serviceext_path         /usr/local/nagios/etc/serviceext

        url                     /nagios/cgi-bin/graphs.cgi
        notes_url               /wiki/index.php/$HOSTNAME$#$SERVICEDESC$

        nagios_config           /usr/local/nagios/etc/nagios.cfg
        cgi_config              /usr/local/nagios/etc/cgi.cfg

        icon_image_tag          ' dot.png' border="0"></a><A 
TARGET="_blank" HREF="graphs.cgi?###URL###"><img src='###IMAGESRC###'
        icon_image_src          /nagios/share/images/logos/graph.png
        icon_image_script       
/nagios/cgi-bin/rrd2-system.cgi?###URL###&start=-5400&title=Actual&width=20&height=20&type=AVERAGE&only-graph=true
        icon_image_static       no

        log_file                /usr/local/nagios/var/ngraph.log
        log_level               128

        rrd_color_background    ffffff
        rrd_color_font          333333
        rrd_color_arrow         ff0000
        rrd_color_frame         ffffff
        rrd_color_grid
        rrd_color_canvas        ffffff
        rrd_color_shadea        c0c0c0
        rrd_color_shadeb        c0c0c0

        fe_use_browser_all      0
        fe_use_browser_for      nagiosadmin
        fe_use_browser_url      0

        fe_use_timefilter               1

        use_authentication              yes

                #
                # HOOKS: Comma seperated list of perl modules ...
                # Still BETA
                #

                # All hooks before an srvext entry is created
                hooks_serviceext                
NagiosGrapher::Hooks::SrvExtTest

                # Hooks before RRD is updated
                hooks_rrdupdate         NagiosGrapher::Hooks::RRDUpdateTest

                # Example hook for writing a hostextinfo
                # With the action=hostgraph example ...
                # The module runs under hooks_serviceext too ...
                hooks_rrdupdate                 
NagiosGrapher::Hooks::SrvExtWriteHostextInfo


                # Bevor Multi- and Singlegraphs, but different types.
                # Hooks before an image is displayed
                hooks_imagegraph                
NagiosGrapher::Hooks::ImageGraphTest

                # Example for invoking multiple hooks ...
                hooks_imagegraph                
NagiosGrapher::Hooks::ImageGraphTest,NagiosGrapher::Hooks::ImageGraphTest


        }

# Includes
cfg_dir=/usr/local/nagios/etc/ngraph.d

# [EOF] (Don't remove this line ...)

And here´s is where I'll loose the overview
*serviceextinfo.cfg:
*define serviceextinfo {
        service_description     CPU
        notes                   View statestics
        action_url              
/nagios/cgi-bin/graphs.cgi?host=$HOSTNAME$&service=$SERVICEDESC$
        icon_image              graph.png
        icon_image_alt          View Statestic
        }

This gives me the icon but nothing else.

If I look in the log file - nothing usefull. ???
If I look in /usr/local/nagios/var/rrd       Nothing ???

So how do I get this to work - or what am I doing wrong - cannot see 
what I'm doing wrong or see from the DOCS on NagiosGrapher what I should 
do from here

So please help me satifies my boss and his customer.

Thanks
Per
*
*

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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