Nagiosgrapher rrd problem

Davy Gaussen nagiosadmin at snef.fr
Tue Apr 18 14:06:12 CEST 2006


Johan,

I tried to remove lines in my ngraph.ncfg like you said but so far it does
not seem to repair the problem.
And, like you said, the daemon don't try to parse my definitions!!

An other idea ??

;-)
Davy



-----Message d'origine-----
De : Johan Corsini [mailto:johan.corsini at guest.minfin.fed.be] 
Envoyé : mardi 18 avril 2006 12:17
À : nagios-users at lists.sourceforge.net
Cc : Davy Gaussen
Objet : Re: [Nagios-users] Nagiosgrapher rrd problem

It looks like Ngrapher is not even trying to parse the infos.
I know that there is a bug with the Ngrapher version I use that makes it 
ignoring the "graph definitions".  If there is not exactly ONE (no more, no 
less) blank line between two graph definitions, then one of the definitions 
will just be ignored.  I do not know if this bug has been corrected in newer

versions, if not, it might be the cause of your problems.

Here is what I would do :

1) Remove every graph definitions in "ngraph.ncfg".
2) Add only one graph definition in the file. So, it would be something like
:

define config {
        pipe                    /var/nagios/ngraph.pipe

        step                    60
        heartbeat               300

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

        ...
        }
<leave an empty line here>
 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
         }
<leave an empty line here>
<end of file>

3) Check if it is working (at least, if it is trying to parse the datas)


Johan


Le Mardi 18 Avril 2006 11:07, Davy Gaussen a écrit :
> 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.




-------------------------------------------------------
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