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 Bug in combined alerts

  • Bug in combined alerts

    Posted by yduma on October 22, 2008 at 03:55

    Hello.

    I found bug – If you have in same agent more than 1 combined alert and in some combined alert you have incude same alert, if you delete it for some combined alert, as a result – it will delete it for all combined alert in same agent.

    regards!

    manu replied 16 years, 2 months ago 2 Members · 7 Replies
  • 7 Replies
  • manu

    Member
    October 22, 2008 at 03:58
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Let me test it

  • manu

    Member
    October 22, 2008 at 04:01
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Ok, I saw it, I’m going to open the bug, thank you very much

  • yduma

    Member
    October 22, 2008 at 04:32
    2 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    also I think you can make next – allow change Operation Valuse after adding alert to combined. Because you can make mistake adding, and after you need delete it and recreate.
    Thank’s
    and If you can – drug and drop in Visual console is good, but sometimes I need put X and Y value can you allow this possibility too?
    THANKS!

  • yduma

    Member
    November 28, 2008 at 04:19
    2 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi.
    I have idea how to fix it…
    I think problem is in next.
    for example – you have 2 combined alert – combined alert #100 and #250
    and in #100 is as part #250.

    at Agent configuration > Alerts pressing on cross button ( delete #250) you will have link to index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=alert&id_agente=158&delete_alert_comp=#250 …

    I think it must be like ndex.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=alert&id_agente=158&delete_alert_comp=250&id_alerta=100

    and when you press this you must run next –
    if (isset($_GET[“id_alerta”])){
    $id_alerta = $_GET[“id_alerta”];
    $sql1=’DELETE FROM talerta_agente_modulo WHERE id_aam = ‘.$id_borrar_modulo’ and id = ‘.$id_alerta;

    this in case when you want to delete combined alert as a part of another combined alert.

    but when you whant to delete combined alert ( not only as a part… all, and from all other alert’s) – leave as is…
    but put – on if ($id_alerta > 0) {
    first way
    }
    else
    {second}

    Regard’s

  • manu

    Member
    November 28, 2008 at 05:54
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Mate, this bug was solved long time ago 🙂

  • yduma

    Member
    November 28, 2008 at 06:42
    2 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Sorry, but 3 week’s ago I donwload pandora v2, and there is this bug.

  • manu

    Member
    November 28, 2008 at 08:02
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I downloaded the branches version a week ago, and it works fine, so it’s fixed