nagiosgraph help

Assaf Flatto assaf.flatto at ssp-intl.com
Thu Feb 26 16:09:06 CET 2009


Thanks for the help.

I manged to fix it and now the graph is showing .

Assaf

On Thursday 26 February 2009 15:04:46 Marco Supino wrote:
> A DS can not have a space , change your map to
>
> and push @s, ['slapd',
>              [ 'Established_connections:', GAUGE, $1 ] ];
>
> --
> Marco Supino
> IT Manager
> Praxell Inc.
> Mobile: +972-544-983653
> Office: +972-3-6126060 Ext 614
> Fax: +972-3-6126066
> http://www.praxell.com
>
>
> -----Original Message-----
> From: Assaf Flatto [mailto:assaf.flatto at ssp-intl.com]
> Sent: Thursday, February 26, 2009 12:45 PM
> To: Nagios User list
> Subject: Re: [Nagios-users] nagiosgraph help
>
> It appears that the rrd file for the graph is not created at all.
> If i try to create it manually i get the following error
> "update ERR reading the cookie off"
>
> As far as i know , adding a new test to the map file - the rrd file should
> be created automatically , the directory permissions are 775 with owner and
> group nagios , and ACL permissions for the apache process user (which is
> also part of the nagios group).
>
> On Wednesday 25 February 2009 17:15:19 Mattias Ryrlén wrote:
> > Assaf Flatto skrev:
> > > Thanks for the help , whoever i did as you recommended and modified my
> > > map file to be as follows :
> > >
> > > # Service type: unix-slapd
> > > #   ouput:OK - Established connections: 6
> > > #   perfdata:OK - Established connections: 373
> > > /prefdata:OK - Established connections: ([0-9]+) /
> >
> > change back to output instead of perfdata.
> > then remove last space before /
> > /output:OK - Established connections: ([0-9]+)/
> >
> > > and push @s, ['slapd',
> > >                [ 'Established connections:', GAUGE, $1 ] ];
> > >
> > >
> > >
> > > In the nagiosgraph.log
> > >
> > > Wed Feb 25 14:09:22 2009 showgraph.cgi debug - graphinfo(host, SLAPD
> > > Open connections) Wed Feb 25 14:09:22 2009 showgraph.cgi debug - db =
> > > []; Wed Feb 25 14:09:22 2009 showgraph.cgi debug - getfilename(host,
> > > SLAPD Open connections, ) Wed Feb 25 14:09:22 2009 showgraph.cgi debug
> > > - getfilename dbseparator: 'subdir' Wed Feb 25 14:09:22 2009
> > > showgraph.cgi debug - scanning /usr/local/nagios/nagiosgraph/rrd/host
> > > for
> > > SLAPD%20Open%20connections___
> > > Wed Feb 25 14:09:22 2009 showgraph.cgi debug - dbfilelist = [];
> > > Wed Feb 25 14:09:22 2009 showgraph.cgi info - Listing
> > > host/SLAPD%20Open%20connections___ db files in
> > > /usr/local/nagios/nagiosgraph/rrd:
> > > Wed Feb 25 14:09:22 2009 showgraph.cgi debug - rrd = [];
> > > Wed Feb 25 14:09:22 2009 showgraph.cgi debug - rrdline(host, SLAPD Open
> > > connections, , , 34560000) Wed Feb 25 14:09:22 2009 showgraph.cgi info
> > > - RRDs::graph = [
> > >   '-',
> > >   '-a',
> > >   'PNG',
> > >   '--start',
> > >   '-34560000',
> > >   '-w',
> > >   600
> > > ];
> > >
> > > Wed Feb 25 14:09:29 2009 insert.pl warn - perfdata not recognized:
> > > date||host||desc||out||data for:
> > > servicedescr:SLAPD Open connections
> > > output:OK - Established connections: 337
> > > perfdata:
> > >
> > >
> > >
> > > and still no graphs .
> > >
> > > Am i missing something else ?
> > >
> > > Assaf
> > >
> > > On Wednesday 25 February 2009 13:32:22 Mattias Ryrlén wrote:
> > >> Hi,
> > >>
> > >> First it seems that you have your regexp wrong.
> > >>
> > >> sample script to verify what type of output you get:
> > >> #!/usr/bin/perl
> > >> $_ = "OK - Established connections: 235";
> > >> s/OK .* ([0-9]+) //g;
> > >> print $_ . "\n";
> > >>
> > >> print "1 = " . $1 . "\n";
> > >>
> > >>
> > >> and runing it:
> > >> ./regexp.pl
> > >> OK - Established connections: 235
> > >> 1 =
> > >>
> > >> OK - Established connections: ([0-9]+)
> > >>
> > >> gives you right result.
> > >>
> > >> Assaf Flatto skrev:
> > >>> Hello List
> > >>>
> > >>> I've been struggling with the nagiosgraph  , granted i am not that
> > >>> fluent with perl , but i do have a basic grasp of it .
> > >>>
> > >>> The problem i am having is adding services ( of course) .
> > >>>
> > >>> define service{
> > >>>         use                             linux-service
> > >>>         host_name                       host
> > >>>         service_description             SLAPD Open connections
> > >>>         check_command                   check_nrpe_no_ssl!check_slapd
> > >>>         icon_image                      ldap.gif
> > >>>         action_url
> > >>> /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$ }
> > >>>
> > >>> I have a check in nagios to see the amount of slapd connections to my
> > >>> openldap servers : Command :
> > >>> /usr/lib/nagios/plugins/check_connections -w 800 -c 925  -C slapd
> > >>>
> > >>> sample Result :
> > >>> OK - Established connections: 235
> > >>>
> > >>> now - trying to parse this in the nagiosgraph map file i have the
> > >>> following definition :
> > >>>
> > >>> # Service type: unix-slapd
> > >>> #   ouput:OK - Established connections: 6
> > >>> /output:OK .* ([0-9]+) /
> > >>> and push @s, ['slapd',
> > >>>                [ 'Established connections:', GAUGE, $1 ] ];
> > >>>
> > >>> In the nagiosgraph log i have the following :
> > >>> Wed Feb 25 11:24:04 2009 showgraph.cgi debug - graphinfo(host, SLAPD
> > >>> Open connections) Wed Feb 25 11:24:04 2009 showgraph.cgi debug - db =
> > >>> []; Wed Feb 25 11:24:04 2009 showgraph.cgi debug - getfilename(host,
> > >>> SLAPD Open connections, ) Wed Feb 25 11:24:04 2009 showgraph.cgi
> > >>> debug - getfilename dbseparator: 'subdir' Wed Feb 25 11:24:04 2009
> > >>> showgraph.cgi debug - scanning /usr/local/nagios/nagiosgraph/rrd/host
> > >>> for
> > >>> SLAPD%20Open%20connections___
> > >>> Wed Feb 25 11:24:04 2009 showgraph.cgi debug - dbfilelist = [];
> > >>> Wed Feb 25 11:24:04 2009 showgraph.cgi info - Listing
> > >>> host/SLAPD%20Open%20connections___ db files in
> > >>> /usr/local/nagios/nagiosgraph/rrd:
> > >>> Wed Feb 25 11:24:04 2009 showgraph.cgi debug - rrd = [];
> > >>> Wed Feb 25 11:24:04 2009 showgraph.cgi debug - rrdline(host, SLAPD
> > >>> Open connections, , , 118800) Wed Feb 25 11:24:04 2009 showgraph.cgi
> > >>> info - RRDs::graph = [
> > >>>   '-',
> > >>>   '-a',
> > >>>   'PNG',
> > >>>   '--start',
> > >>>   '-118800',
> > >>>   '-w',
> > >>>   600
> > >>> ];
> > >>>
> > >>> yet i get no graph .
> > >>>
> > >>> Any ideas where i am doing this wrong ?
> > >>>
> > >>> Thank you



-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE





IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY
 
 

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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