Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • None
    • Unix Agent
    • None

    Description

      Hi,

      The graphs for DRBD are not working (no values) however I can see data via telnet:

      1. telnet 192.168.1.10 36602 | sed -n '/<<<drbd>>>/,/<<<.*>>>/p'
        <<<drbd>>>
        version: 8.4.2 (api:1/proto:86-101)
        GIT-hash: 7ad5f850d711223713d6dcadc3dd48860321070c build by dag@Build64R6, 2012-09-06 08:16:10
        0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----
        ns:70185244 nr:0 dw:65118492 dr:5896129 al:2248 bm:579 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
        <<<postfix_mailq>>>
        Connection closed by foreign host.

      Attachments

        1. test-applications.txt
          6 kB
        2. test-discovery.txt
          6 kB
        3. test-poll.txt
          65 kB

        Activity

          [OBS-574] Graphs for DRBD not working

          Nono, i mean your output from <<<drbd>>> isn't exactly the right format, it's missing a blank line, which was probbaly breaking a regular expression. I think it's fixed now!

          adama Adam Armstrong added a comment - Nono, i mean your output from <<<drbd>>> isn't exactly the right format, it's missing a blank line, which was probbaly breaking a regular expression. I think it's fixed now!

          ahhh... messages crossed over, here is the missing one (applications)... test-applications.txt

          robertw Robert Williams added a comment - ahhh... messages crossed over, here is the missing one (applications)... test-applications.txt

          Your drbd output is missing a space that mine has. It's a nightmare that these things change format subtly!

          adama Adam Armstrong added a comment - Your drbd output is missing a space that mine has. It's a nightmare that these things change format subtly!

          I've modified the regular expression a bit, see if that works!

          adam.

          adama Adam Armstrong added a comment - I've modified the regular expression a bit, see if that works! adam.

          mmm.... it obviously doesn't like me then

          So, all my agent files (in agent-local) are from 2014. So are the ones on the server itself.

          i've attached an example poll and discovery for the unix-agent in debug mode. Hope that's the correct output?

          test-poll.txt test-discovery.txt

          robertw Robert Williams added a comment - mmm.... it obviously doesn't like me then So, all my agent files (in agent-local) are from 2014. So are the ones on the server itself. i've attached an example poll and discovery for the unix-agent in debug mode. Hope that's the correct output? test-poll.txt test-discovery.txt

          The output from :

          ./poller.php -h <host> -m unix-agent,applications -d

          might help

          adama Adam Armstrong added a comment - The output from : ./poller.php -h <host> -m unix-agent,applications -d might help
          adama Adam Armstrong added a comment - http://alpha.memetic.org/~adama/snaps/Observium_Dev____alpha.memetic.org_-_Apps_-_Google_Chrome_2016-03-11_17.04.13.png

          This is working pretty much fine for me now. Just dumped the agent on a new system with drbd, and it worked fine there too.

          adama Adam Armstrong added a comment - This is working pretty much fine for me now. Just dumped the agent on a new system with drbd, and it worked fine there too.
          robertw Robert Williams added a comment - - edited

          it seems for me that it doesn't detect it at all after a deletion. I have just tried with another host and that doesn't have a DRBD section now either, so it's not just one broken on here it seems.

          Just to clarify, i have updated nothing at all on the client side at all, is that correct? i have a feeling i'm missing something!

          robertw Robert Williams added a comment - - edited it seems for me that it doesn't detect it at all after a deletion. I have just tried with another host and that doesn't have a DRBD section now either, so it's not just one broken on here it seems. Just to clarify, i have updated nothing at all on the client side at all, is that correct? i have a feeling i'm missing something!

          Well, the old DRBD application and mechanisms are now gone, replaced with a bit of code to fake the application using the <<<drbd>>> section.

          You should see it readded during polling now, it's working for me (albeit the data graphs are 1024 off at the moment due to drbd returning KB not B )

          adama Adam Armstrong added a comment - Well, the old DRBD application and mechanisms are now gone, replaced with a bit of code to fake the application using the <<<drbd>>> section. You should see it readded during polling now, it's working for me (albeit the data graphs are 1024 off at the moment due to drbd returning KB not B )

          That's interesting because my issue appears to be with it not detecting the DRDB element at all now. So for a new host added there is now simply no longer a tab under agents for DRBD at all.

          So it only finds NTPD in my example (which is the only other active agent plugin on there) - the DRBD was in there before I deleted and re-added the host though (albeit with blank graphs).

          I'm not sure if this is 'the' issue you are looking at, as it sounds like you are maybe dealing with graphs that don't update, rather than it totally not showing up as having DRBD installed at all? Hope that makes some remote sense...

          robertw Robert Williams added a comment - That's interesting because my issue appears to be with it not detecting the DRDB element at all now. So for a new host added there is now simply no longer a tab under agents for DRBD at all. So it only finds NTPD in my example (which is the only other active agent plugin on there) - the DRBD was in there before I deleted and re-added the host though (albeit with blank graphs). I'm not sure if this is 'the' issue you are looking at, as it sounds like you are maybe dealing with graphs that don't update, rather than it totally not showing up as having DRBD installed at all? Hope that makes some remote sense...

          People

            adama Adam Armstrong
            HTF Sebastian
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: