PDA

View Full Version : UI is not adding linked triggers correctly


James Wells
09-08-2005, 02:49
Greetings,

Using a 1.1Alpha11... I create a trigger on a link parent, and when it gets added to the children, it will populate the functions table correctly, but in the triggers table, it retains the function information for the first child for every other child.

Trigger I used to determine this was;
{__Template_Linux_SVR:status.last(0)}=2&{__Template_Linux_SVR:status.prev(0)}=2

The first child, called test1.internal.net gets;
{test1.internal.net:status.last(0)}=2&{test1.internal.net:status.prev(0)}=2

While the second and subsequent children get;
{test1.internal.net:status.last(0)}=2&{test1.internal.net:status.prev(0)}=2

James Wells
12-08-2005, 16:31
Still having the same issue in 1.1Alpha12;

I added this to the template;
{__Template_Linux_SVR:status.last(0)}=2&{__Template_Linux_SVR:status.prev(0)}=2

The first child was properly loaded;
{test1.internal.net:status.last(0)}=2&{test1.internal.net:status.prev(0)}=2

The second and subsequent children were all loaded incorrectly;

{test1.internal.net:status.last(0)}=2&{test1.internal.net:status.prev(0)}=2
{test1.internal.net:status.last(0)}=2&{test1.internal.net:status.prev(0)}=2
{test1.internal.net:status.last(0)}=2&{test1.internal.net:status.prev(0)}=2
{test1.internal.net:status.last(0)}=2&{test1.internal.net:status.prev(0)}=2

Instead of test1.internal.net, these should read test2, test3, test4, and test5.internal.net

mconigliaro
18-08-2005, 20:38
im having the same problem on alpha12.

James Wells
19-08-2005, 04:41
I applied the change that LinuxDR posted and it works perfectly. BTW, because of the change, as of today, Nagios no longer exists in my data center. :) I removed the last of the Nagios monitors from my servers at 4:30 PM today. ;)

mconigliaro
21-09-2005, 16:49
this seems to be at least partially fixed in 1.1beta1.

the expressions in the children of linked templates look correct, but the descriptions do not. all of my linked children have the same description as the parent.

im also getting this error on all the children: "Unable to get value for functionid [12455]"