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
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
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
into the Action "message" field along with the hdpercent, however when I do this
returns the same value that
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.
Code:
hdpercent[usr]
So basicly up to this point I have a trigger
Code:
{SERVERNAME:hdpercent[usr].last(0)}>80
ok, so now that is out of the way. What I want is to add
Code:
diskfree[/usr]
Code:
diskfree[/usr]
Code:
hdpercent[usr]
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.