PDA

View Full Version : Action messages


ari
18-11-2011, 03:18
With 1.9.7, the default action messages look like this:

Trigger: ping failed to host 'SCC Camperdown'
Trigger status: PROBLEM
Trigger severity: High
Trigger URL:

Item values:

1. ping (SCC Camperdown:icmpping): 0
2. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*
3. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*

I like the idea that we can show multiple items in the message, but all those UNKNOWNs are a bit confusing. Is there a way to customise the message to only show as many items as are relevant? For other triggers, having two or three items might be very nice. But 99% of them are simply one item.

richlv
22-11-2011, 13:24
those should be last 3 values, so if you have only one, others are unknown. i definitely agree that it doesn't look nice, but i don't know of a simple solution.
a fairly complex one would be to have some sort of a variable expansion like bash has, or some if/then syntax which could hide values and additional text...

ari
03-01-2012, 07:56
Don't know what you mean by 'last 3'. I've only ever seen one in there, even for items that have been collecting data for a long time.

Is this related to the bug we found where nodata(1000) returns rubbish results?

We are running 1.9.7 still because 1.9.8 has broken mysql upgrade scripts.

richlv
03-01-2012, 10:05
Don't know what you mean by 'last 3'. I've only ever seen one in there, even for items that have been collecting data for a long time.


hmm. if you look at the history for those items, do the values show up ?


Is this related to the bug we found where nodata(1000) returns rubbish results?


i don't think it should return "rubbish results"... what do you mean by that ?


We are running 1.9.7 still because 1.9.8 has broken mysql upgrade scripts.

broken how exactly ?

richlv
03-01-2012, 14:21
hmm. if you look at the history for those items, do the values show up ?


argh, ignore this. by default, it will show last value for the first 3 items, used in the trigger expression - if your expression doesn't use more than one item, it will always be only one value, of course :)