|
View previous topic :: View next topic |
Author |
Message |
r00t-shell
Joined: 09 Jan 2007 Posts: 9
|
Posted: Thu Sep 27, 2007 9:13 am Post subject: Alert Profile and Expressions |
|
|
Need some understanding of processes within the software.
I only want one notification per folder - regardless of what, or how many items have failed in a folder.
From my understanding i need to have a master test with an expression, and an alert with an expression but the examples i've seen do not make sense. Can i get an quick example to perform this function? |
|
Back to top |
|
|
Yoorix
Joined: 14 Dec 2005 Posts: 177
|
Posted: Thu Sep 27, 2007 10:03 am Post subject: |
|
|
I think, you may figure it out in a following way: in each folder you have to create one "dummy" test, for instance ping 127.0.0.1, and assign to this test an action profile with advanced mode action. You may use "%FolderCurrent_BadTests%" variable in expression, e.g. (%FolderCurrent_BadTests% > 0).
%FolderCurrent_BadTests% - Number of the test items (in the folder) those have "Bad" status
http://www.ks-soft.net/hostmon.eng/mframe.htm#actions.htm#foldermacro
No action profiles should be specified for the other tests in the folder.
BR,
Yoorix |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Sep 27, 2007 10:41 am Post subject: |
|
|
No, this will not work. (%FolderCurrent_BadTests% > 0) means action should be started every time there is at least one bad test, so you will receive alerts again and again until all tests restore good status.
There are 2 possible solutions:
1) use additional dependant test (dependand, not master) with expression like (%FolderCurrent_BadTests%==0) or ((%FolderCurrent_BadTests%==1) and ('%SimpleStatus%'=='DOWN')) and assign alert profile with "standard" action to this test
Please read the following topic for details:
http://www.ks-soft.net/cgi-bin/phpBB/viewtopic.php?p=18147
2) another solution (no additional tests required): assign alert profile to each tests within the folder, use "advanced" mode action with expression like %FolderCurrent_BadTests%==1 for this action
http://www.ks-soft.net/cgi-bin/phpBB/viewtopic.php?p=17851
Regards
Alex |
|
Back to top |
|
|
r00t-shell
Joined: 09 Jan 2007 Posts: 9
|
Posted: Mon Oct 01, 2007 8:03 pm Post subject: |
|
|
Ok that make sense.
It's either or, not a combination of the two.
THat would explain why it worked on moment, then not the next when i implemented an alert profile and also used the expression.
Let me ask you this, of the two examples given what are the differences? Pro/Cons of each.
Let me give this whirl.
Thanks, |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Tue Oct 02, 2007 12:10 pm Post subject: |
|
|
Quote: | Let me ask you this, of the two examples given what are the differences? Pro/Cons of each. |
Just different ways to get the same result. I do not see any obvious advantages or disadvantages of each method.
Regards
Alex |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|