File nagiosgrapher.README.SuSE of Package nagiosgrapher

Just a few steps to run the grapher ...

=============================================================
Just a few steps to run the grapher ...

=============================================================
Serviceexttype, MULTIPLE:
        Add these line to your nagios.cfg.
        cfg_dir=/etc/nagios/serviceext

Serviceexttype, SINGLE:
        Add these line to your cgi.cfg.
        xedtemplate_config_file=/etc/nagios/serviceextinfo.cfg

=============================================================
To tell nagios to write service perfdata add these lines to your nagios.cfg:

        process_performance_data=1
        service_perfdata_command=process-service-perfdata

=============================================================
And add one of the following commands to your misccommands.cfg
(Based on the interface you are using: updecho for network, fifo_write for pipe)

        define command{
                command_name process-service-perfdata
                command_line __LIBDIR__/nagios/contrib/udpecho 127.0.0.1 '%HOSTNAME%\t%SERVICEDESC%\t%SERVICEOUTPUT%\t%SERVICEPERFDATA%\n' 5667
        }

        define command{
                command_name process-service-perfdata
                command_line __LIBDIR__/nagios/contrib/fifo_write /var/run/nagiosgrapher/ngraph.pipe '%HOSTNAME%\t%SERVICEDESC%\t%SERVICEOUTPUT%\t%SERVICEPERFDATA%\n' 3
        }

Note if you are using other tools like netcat or printf to passthrough this string:
        '%HOSTNAME%\t%SERVICEDESC%\t%SERVICEOUTPUT%\t%SERVICEPERFDATA%\n'

==================================================
--- Now REPLACE the '%' signs with dollars !!! ---
==================================================



Please do not forget to check /etc/nagios/ngraph.ncfg for the proper loglevel.
The default loglevel is set to 63 which might blow up your logfile!

The nagiosgrapher template files can be found in /etc/nagios/ngraph.d. The
default set of configuration should work out of the box (if you have
correctly installed and configured nagios 2.5 prior to the nagiosgrapher).
PLEASE NOTICE that the serviceext files in /etc/nagios/serviceext are written
automatically on every rrdupdate. If this is not want please comment the line:
'hooks_rrdupdate                 NagiosGrapher::Hooks::SrvExtWriteHostextInfo'
in /etc/nagios/ngraph.ncfg with a '#'.

For the detailed configuration of nagiosgrapher please have look into the
CONFIG file in the package documentation directory.


Have a lot of fun ...