rrd gaps

Brock Kuhse brock at kuhsefamily.org
Tue Jan 8 00:38:12 CET 2008


Eric,

I think you're missing the ngraph.ncfg component, which seems to tell
collect2.pl that it can grab files in a given directory (I use
/usr/local/nagios/var/rw instead of /dev/shm since I already know the nagios
user has appropriate rights):


interface               file
perffile_path           /dev/shm


- Brock

-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Eric Aiken
Sent: Monday, January 07, 2008 4:23 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] rrd gaps

Hi Gerd				

Hi Gerd

I'm struggling with the "undocumented" interface-file feature.  I have the
same gaps problem.  I've implemented your suggestions, but I'm confused
about how the data get's converted into rrd's.

with the pipe's version my command.cfg contained
define command{
      command_name    process-service-perfdata
      command_line    /usr/lib64/nagios/plugins/contrib/fifo_write.pl
/var/log/nagios/rw/ngraph.pipe '$HOSTNAME$      $SERVICEDESC$
$SERVICEOUTPUT$ $SERVICEPERFDATA$' 3
      }
This passed the data into the pipe where the collect2.pl was watching and
converted the data in rrd's

with the file version, I removed that definition and replaced it with:

define command{
       command_name process-service-perfdata-file
       command_line mv /usr/local/nagios/var/service-perfdata
/usr/local/nagios/var/service-perfdata.$TIMET$
       }

Now Nagios sends the data to service-prefdata, which is mv'd to a
timestamped file periodically.

How is the data supposed to get converted into rrd's now?  How does the
collect2.pl daemon know when to process the files?  As it is now, no rrd
files are generated.  collect2.pl is running, nagios is sending the data to
/dev/shm/service-perfdata and then they are moved to
/dev/shm/service-perfdata.<stamp>.  

my fifo version worked, it just had gaps.


thanks for your help

- Eric Aiken (Eric.Aiken)

- Eric Aiken (Eric.Aiken)

-----------------------
This thread is located in the archive at this URL:
http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[s
howUid]=7829
					

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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