PDA

View Full Version : More info in a Action trigger message possible?


schirpich
10-03-2006, 03:23
I've written my own custom key for getting used HD percentages for linux and BSD. On its own I can successfully get action alerts working and everything. I custom made a key
hdpercent
With this it gives me the percentage used on a specific partition such as /usr in this example. It'll give me 93% as the result lets say.

So basicly up to this point I have a trigger {SERVERNAME:hdpercent.last(0)}>80

So if /usr goes over 80% used space, i get a notification via the action's. And in that Action it tells me I'm 93% full on /usr.

ok, so now that is out of the way. What I want is to add diskfree
into the Action "message" field along with the hdpercent, however when I do this diskfree

returns the same value that hdpercent[usr] does in the action message.

Has anyone been able to put two key's that differ in the same action and actually gotten accurate result? Is this even possible?

Please help and if I havn't explained something, please let me know! If I can get this to work, I have quite a few idea's I want to put into play here with my company.