Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support how to make an alert based on text string detection?

  • how to make an alert based on text string detection?

    Posted by daggett on December 7, 2006 at 14:03

    Hi,
    I have an agent which monitors a RAID card with several units of disks.
    The RAID card specific software returns text strings representing the global state and the state of each unit and each disk i.e.:
    “REBUILDING 33 OK DEGRADED” for global state, percentage completed, disk0 state, disk1 state.

    And I wish to set an alert if there is the text string “DEGRADED” in the collected status string.

    I know that I can do conversion like OK=1 DEGRADED=2 REBUILDING=3 so now I can process these numerical data… but it’s not straight forward at all, and it’s not really representing anything anymore if you have “3 33 1 2” displayed in the console…

    So how can I set an alert on text string?

    bye for now,
    Denis

    manu replied 18 years, 2 months ago 4 Members · 7 Replies
  • 7 Replies
  • Sancho

    Administrator
    December 10, 2006 at 01:05
    2309 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,
    I have an agent which monitors a RAID card with several units of disks.
    The RAID card specific software returns text strings representing the global state and the state of each unit and each disk i.e.:
    “REBUILDING 33 OK DEGRADED” for global state, percentage completed, disk0 state, disk1 state.

    And I wish to set an alert if there is the text string “DEGRADED” in the collected status string.

    I know that I can do conversion like OK=1 DEGRADED=2 REBUILDING=3 so now I can process these numerical data… but it’s not straight forward at all, and it’s not really representing anything anymore if you have “3 33 1 2” displayed in the console…

    So how can I set an alert on text string?

    bye for now,
    Denis

    This is planned for Pandora 1.3 release, in a few months 🙂

  • daggett

    Member
    December 11, 2006 at 14:03
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,
    ok thanks!

    I will implement it in several modules and convert states from strings to numbers waiting for the next version of Pandora!

    bye

  • raul

    Member
    December 11, 2006 at 14:21
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,
    ok thanks!

    I will implement it in several modules and convert states from strings to numbers waiting for the next version of Pandora!

    bye

    You can help us in the new version 😀

    Any help is welcomed!

    Raul

  • daggett

    Member
    December 11, 2006 at 20:44
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    ok, but I don’t know much about perl nor PHP, I need to learn them before 😛
    That’s why I’m concentrated on script parts for now.

    But I will try.

    An idea for the console: it would be nice to make a “scan mode” I expain:
    every N minutes the page is cycling from one agent to another (from the entire list of agents or just user-selected ones), showing the last hour or 24hours graphs of every modules of the agents (or user-selected graphs from each agent modules-list).
    And if there is an Alarm, then the graph for the incriminated module of the relative agent is shown at the top of the page, maybe circled in red or something flashing.

    So this “scan mode” page can be displayed on a big flat HD plasma/LCD screen to always keep an eye on everything without having to decrypt or read tiny texts, it’s straight forward (a picture worths a thousand words!).
    we constantly see everything ok cycling, and all the triggered alarms are constantly displayed thus to be sure not to miss them.

    it’s just an idea of one thing we wish to do with Pandora, so it may be possible that a mate will do this part of the agent for me/you <:O)) . bye

  • manu

    Member
    December 13, 2006 at 12:56
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Ummm, dunno if it´s a good idea or not.
    Let´s think about a big big big big scenario with thousands of monitorized boxes, and therefore, data. Refreshing it every X minutes will be, in my humble opinion, a unnecessary wast of time even recurses, that´s to say, what´s the real goal of doing this?
    Pandora agents average refreshing time is set more or less in seven days, at least, in one of our clients (nil knows which one i´m talking about), so no one is going to keep an eye on the monitor from 2nd to 6th day, do you know what I mean?

    One way or another, I do support that feature if we let users to choose if they want or not to do that, with a tick on the pandora_server setup or whereever 🙂

    That´s all folk!

  • daggett

    Member
    December 15, 2006 at 16:37
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    ok, well yes, you’re right: for very large pandora agents number it won’t be possible.

    But I think it can be interesting in some case, so maybe that the possibility to build/display a page that will display a user-made selection of modules/alarms constantly could be a plus. And make it accessible to those who choose to enable this function.
    I can’t evaluate the amount of work to do this though…

    anyway it’s just an idea!

    bye

  • manu

    Member
    December 18, 2006 at 12:35
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Ummm, maybe. We will take that idea into consideration
    I should make some tests (load ones) and test how much the box suffer, specially the bbdd

    All the best!