Welcome to Pandora FMS Community!

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

  • Alert action selection issue

    Posted by bmcclure on October 27, 2009 at 00:20

    I have two alert actions defined–one to email me and one to send me an SMS (via a shell script on the server).

    I can select a default action for an alert, and when I create an alert I can associate an action with it, but I cannot add any more actions, and the only way to make changes to the action seems to be to re-create the alert.

    When I click Manage Alerts, and click the Add Action link for any alert, the drop-down list contains two items, both titled “None”, and trying to use either of them doesn’t work (nothing happens when you try to add with either selected).

    It seems it’s not seeing the actions I have defined, and I’m not sure how best to even explain the issue given my unfamiliarity with Pandora FMS. I’m learning a lot, but mostly it’s by trial and error since there isn’t much documentation.

    Sancho replied 15 years, 1 month ago 2 Members · 3 Replies
  • 3 Replies
  • Sancho

    Administrator
    October 27, 2009 at 02:57
    2229 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Its one of the worst bugs found on the RC1, it was fixed on the SVN a fix will be released this friday with the RC2, Sorry ! 🙁

    To fix it manually, just:

    Edit pandora_console/godmode/alerts/alert_list.php

    ===================================================================
    --- trunk/pandora_console/godmode/alerts/alert_list.php	2009-10-21 20:25:26 UTC (rev 2048)
    +++ trunk/pandora_console/godmode/alerts/alert_list.php	2009-10-26 11:17:25 UTC (rev 2049)
    @@ -551,6 +551,7 @@
     echo '';
     print_input_hidden ('add_action', 1);
     print_input_hidden ('id_alert_module', 0);
    +$actions = get_alert_actions ();
     print_select ($actions, 'action', '', '', __('None'), 0);
    

    This means you need to add line with + in that place.

  • bmcclure

    Member
    October 27, 2009 at 03:11
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hey, thanks! Adding that line worked perfectly for me and Pandora FMS is instantly much more useful 🙂

  • Sancho

    Administrator
    October 27, 2009 at 03:23
    2229 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    There are more bugs en RC1, but that was specially anoying :(, I hope RC2 will be more “solid”, seems that we release software without testing, but after a year developing 3.0 version, we’ve hunted lots of bugs, this is really a stupid bug, but VERY noisy.