rrd gaps
Lars Stavholm
stava at telcotec.se
Tue Jan 8 00:28:38 CET 2008
Eric Aiken wrote:
> 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>.
The collect2.pl picks up the timestamped files,
processes them and deletes them. Provided that
the NagiosGrapher configuration file, i.e
/etc/nagios/ngraph.ncfg or something similar,
has the correct (file) settings.
As I said earlier, following Gerds instructions
to the letter worked just fine for me.
/L
> 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[showUid]=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