Nagiosgrapher rrd problem

Davy Gaussen nagiosadmin at snef.fr
Tue Apr 18 11:07:52 CEST 2006


Here is my service definition for PING services :

define service {
        name PING-SW-template
        check_command check_ping!500.0,50%!600.0,60%
        max_check_attempts 3
        normal_check_interval 5
        retry_check_interval 5
        active_checks_enabled 1
        passive_checks_enabled 1
        check_period 24x7
        parallelize_check 1
        obsess_over_service 1
        check_freshness 1
        event_handler_enabled 1
        process_perf_data 1
        notification_period 24x7
        notifications_enabled 1
        register 0
        notification_options w,u,c,r
        contact_groups Switchs-admins
}

define service {
        use PING-SW-template
        service_description PING
        check_command check_ping!2500.0,50%!6000.0,60%
        max_check_attempts 3
        normal_check_interval 5
        retry_check_interval 5
        notification_interval 0
        host_name serveur_bureautique
        contact_groups Switchs-admins
}

In ngraph.ncfg I have these lines :

define ngraph{
        service_name            PING
        graph_log_regex         perdus = ([0-9]+)
        graph_value             Loss
        graph_units             %
        graph_legend            Packet Lost
        rrd_plottype            LINE2
        rrd_color               ff0000
        page                    Packet Lost
        }

# Ping RTA
define ngraph{
        service_name            PING
        graph_log_regex         RTA = ([0-9]+\.+[0-9]*) ms
        graph_value             RTA
        graph_units             ms
        graph_legend            Time to answer
        rrd_plottype            AREA
        rrd_color               00A348
        page                    RTA
        }


And in ngraph.log I have :
2006-04-18 11:04:07 PIPE: SW-2  PING    PING OK - Paquets perdus = 0%, RTA =
70.98 ms
2006-04-18 11:04:08 PIPE: SW-5  PING    PING OK - Paquets perdus = 0%, RTA =
70.12 ms
2006-04-18 11:04:08 PIPE: Sacha Port 8081       TCP OK - 0,050 second
response time on port 8081
time=0,049855s;0,000000;0,000000;0,000000;60,000000
2006-04-18 11:04:08 PIPE: SW-8  PING    PING OK - Paquets perdus = 0%, RTA =
25.19 ms


I still do not have any rrd files in /var/lib/nagios/rrd .....
I do not have either any RRD: log entries in ngraph.log, I don't understand
why ??

Do you have an idea to help me please ?



-----Message d'origine-----
De : nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] De la part de Hugo van der
Kooij
Envoyé : vendredi 14 avril 2006 18:48
À : nagios-users
Objet : Re: [Nagios-users] Nagiosgrapher rrd problem

On Fri, 14 Apr 2006, Davy Gaussen wrote:

> I am trying to use Nagiosgrapher-1.5 with Nagios 2.0.
>
> I successfully install nagiosgrapher but I didn't have any rrd files in
> /var/lib/nagios/rrd.

Which are only created after you setup service-type definitions and your
first data is added to the named pipe.

> I never have a line with < RRD : create rrd file > or something.
>
> Someone have an idea on this please ?? I am quite lost !

Show us the Nagiosgrapher definitions for your service-types. There are
samples present but you must define them and match the names.

In fact the whole thing is documented but it takes some reading to get the
hang of it.

For example.

 1. My service definition:

define service {
        use                             service-template
        host_name                       arwen
        service_description             PING
        check_command                   check_ping!10,20%!20,40%
        contact_groups                  waakhond-net
}

 2. Suitable ngrapg.ncfg section:

define ngraph{
        service_name            PING
        graph_log_regex         loss = ([0-9]+)
        graph_value             Loss
        graph_units             %
        graph_legend            Packet Lost
        rrd_plottype            LINE2
        rrd_color               ff0000
        page                    Packet Lost
        }

# Ping RTA
define ngraph{
        service_name            PING
        graph_log_regex         rta = ([0-9]+\.+[0-9]*) ms
        graph_value             RTA
        graph_units             ms
        graph_legend            Time to answer
        rrd_plottype            AREA
        rrd_color               00A348
        page                    RTA
        }


Hugo.

-- 
	I hate duplicates. Just reply to the relevant mailinglist.
	hvdkooij at vanderkooij.org		http://hvdkooij.xs4all.nl/
		Don't meddle in the affairs of magicians,
		for they are subtle and quick to anger.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
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