Pages: [1]   Go Down
Author Topic: Alert action selection issue  (Read 573 times)
0 Members and 1 Guest are viewing this topic.
bmcclure
Jr. Member
**

Karma: 0
Offline Offline

Posts: 13


View Profile
« on: October 26, 2009, 09:20:11 PM »

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.
Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #1 on: October 26, 2009, 11:57:25 PM »

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 '<form id="add_action_form" method="post" class="invisible">';
 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.
Logged

-- See you in the other screen.

bmcclure
Jr. Member
**

Karma: 0
Offline Offline

Posts: 13


View Profile
« Reply #2 on: October 27, 2009, 12:11:48 AM »

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

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #3 on: October 27, 2009, 12:23:17 AM »

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.
Logged

-- See you in the other screen.

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST