GithubHelp home page GithubHelp logo

Comments (8)

ihrwein avatar ihrwein commented on July 20, 2024

Hi!

Could you attach a minimalist merged xml file where the problem can be reproduced?

Thanks!

from syslog-ng.

faxm0dem avatar faxm0dem commented on July 20, 2024

command

pdbtool merge --directory=/tmp/patterndb --glob=\*.pdb --pdb /tmp/patterndb.pdb

/tmp/patterndb/rrdtool.pdb

<patterndb version='4' pub_date='2014-03-10'>
    <ruleset name='rrdtool' id='REPLACE_UUID'>
        <description>generated by puppet</description>
        <patterns>
            <pattern>rrdcached</pattern>
        </patterns>
        <rules>
            <rule provider='[email protected]' id='2b8a2697-7205-4d8a-802f-1540e6af3eff'
                  context-id='rrdcached-lastupdate-${appacct.filename}'
                  context-scope='process'
                  class='software'>
                <patterns>
                    <pattern>queue_thread_main: rrd_update_r @QSTRING:appacct.filename:()@ failed with status @ESTRING:appacct.status:.@ (@ESTRING:::@ illegal attempt to update using time @ESTRING:appacct.update_time: @when last update time is @ESTRING:appacct.last_time: @(minimum one second step))</pattern>
                </patterns>
                <values>
                    <value name='appacct.difference_dur'>$(- ${appacct.last_time} ${appacct.update_time})</value>
                </values>
                <examples>
                    <example>
                        <test_message program="rrdcached">queue_thread_main: rrd_update_r (/srv/rrd/ccwsge0247.in2p3.fr/disk-sdb/disk_octets.rrd) failed with status -1. (/srv/rrd/ccwsge0247.in2p3.fr/disk-sdb/disk_octets.rrd: illegal attempt to update using time 1394206025 when last update time is 2660923375 (minimum one second step))</test_message>
                        <test_values>
                            <test_value name='appacct.filename'>/srv/rrd/ccwsge0247.in2p3.fr/disk-sdb/disk_octets.rrd</test_value>
                            <test_value name='appacct.last_time'>2660923375</test_value>
                            <test_value name='appacct.status'>-1</test_value>
                            <test_value name='appacct.update_time'>1394206025</test_value>
                        </test_values>
                    </example>
                </examples>
                <actions>
                    <action condition='"${appacct.difference_dur}" &gt;= "604800"'>
                        <message inherit-properties='TRUE'>
                            <tags>
                                <tag>alert</tag>
                            </tags>
                        </message>
                    </action>
                </actions>
            </rule>
        </rules>
    </ruleset>
</patterndb>

from syslog-ng.

ihrwein avatar ihrwein commented on July 20, 2024

@faxm0dem I tried to reproduce the bug but without success. I tried the following cases:

  • use the above patterndb config
  • use the above config and replace the action with <action condition='&quot;${appacct.difference_dur}&quot; &gt;= &quot;604800&quot;'>
  • I tried different appacct.difference_dur values. Some were greater, some were less than 604800.

Could you recheck it please with the current master? Maybe a patch solved this in the meantime. Or I can try this with 3.6.

Update: tried to reproduce it with 3.6, also without success

from syslog-ng.

faxm0dem avatar faxm0dem commented on July 20, 2024

@ihrwein so the action's condition is correctly being honored?

from syslog-ng.

ihrwein avatar ihrwein commented on July 20, 2024

Yeah. Message was only generated when difference_dur wa greater or equal to 604800.

from syslog-ng.

faxm0dem avatar faxm0dem commented on July 20, 2024

okay, I'll try to reproduce again hoping I was wrong

from syslog-ng.

ihrwein avatar ihrwein commented on July 20, 2024

@faxm0dem Did you manage to try it? :)

from syslog-ng.

pzoleex avatar pzoleex commented on July 20, 2024

Closed due to inactivity

from syslog-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.