Ad Widget

Collapse

More info in a Action trigger message possible?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • schirpich
    Junior Member
    • Mar 2006
    • 3

    #1

    More info in a Action trigger message possible?

    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
    Code:
    hdpercent[usr]
    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
    Code:
    {SERVERNAME:hdpercent[usr].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
    Code:
    diskfree[/usr]
    into the Action "message" field along with the hdpercent, however when I do this
    Code:
    diskfree[/usr]
    returns the same value that
    Code:
    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.
Working...