Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7602907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:31:54+00:00 2026-05-30T23:31:54+00:00

So I am writing a read plugin, openvz_guest_bandwidth , for Collectd where I read

  • 0

So I am writing a read plugin, openvz_guest_bandwidth, for Collectd where I read how much bandwidth Openvz guests are doing, by using libiptc to query how much external bandwidth each guest is doing.

I am then reporting this information to the write_mongodb plugin that I wrote, (which could be related to the breakage)

The issue is that I am seeing records in mongo like,

{ "_id" : ObjectId("4f480c15573fa191fa838140"), "ts" : ISODate("2012-02-24T22:15:33Z"), "h" : "62f34634-0fac-4b5f-a7a5-45532ef6dd3b", "i" : "rx", "t" : "counter", "ti" : "", "value" : NumberLong("3970318241") }
{ "_id" : ObjectId("4f480c15573fa191fa838141"), "ts" : ISODate("2012-02-24T22:15:34Z"), "h" : "62f34634-0fac-4b5f-a7a5-45532ef6dd3b", "i" : "tx", "t" : "counter", "ti" : "", "value" : NumberLong(50070094) }
{ "_id" : ObjectId("4f480c15573fa191fa838142"), "ts" : ISODate("2012-02-24T22:15:34Z"), "h" : "62f34634-0fac-4b5f-a7a5-45532ef6dd3b", "i" : "rx", "t" : "counter", "ti" : "", "value" : NumberLong("3970322447") }
{ "_id" : ObjectId("4f480c15573fa191fa838143"), "ts" : ISODate("2012-02-24T22:15:35Z"), "h" : "62f34634-0fac-4b5f-a7a5-45532ef6dd3b", "i" : "tx", "t" : "counter", "ti" : "", "value" : NumberLong(50070094) }
{ "_id" : ObjectId("4f480c15573fa191fa838144"), "ts" : ISODate("2012-02-24T22:15:35Z"), "h" : "62f34634-0fac-4b5f-a7a5-45532ef6dd3b", "i" : "rx", "t" : "counter", "ti" : "", "value" : NumberLong("3970325247") }

Where the interesting values are at the end. I would expect the reported values to be the difference between the consecutive records, instead of what the counter reads.

This is analogous to the RRD counter type of COUNTER instead of ABSOLUTE as I understand it.

I am pretty stuck on this and am unsure where the fault may lie, and even further how to correct it. The fault could either be in reading or with writing.

As a side note, before the values reach write_mongodb, they are sent over the collectd network plugin.

More over I seem to be confused between value_list.plugin and value_list.plugin_instance. Other plugins seem to use types which give a really useless field such as "t: 'memory'" inside the memory collection.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:31:55+00:00Added an answer on May 30, 2026 at 11:31 pm

    Octo, the collectd maintainer pointed out that the write_mongodb plugin didn’t use a certain function call and configuration check to see if it should write deltas.

    The commit can be found Here
    https://github.com/collectd/collectd/pull/38

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing an Eclipse plugin where I want to read a file within
I'm writing code to read in a 7x15 block of text in a file
I recently read somewhere that writing a regexp to match an email address, taking
Im writing a program that should read input via stdin, so I have the
I'm writing a program to read from a POP3 mailbox and upload the email
I've read a lot recently about how writing multi-threaded apps is a huge pain
I was writing a generic class to read RSS feed from various source and
I read a lot of posts that convinced me I should start writing unit
I am writing a program to read files and search text in it. I
I'm writing a script that'll read through my ftpd logs and generate a hash

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.