Some problem with "status" and "Last status&q

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
fve
Posts: 98
Joined: Sun Apr 27, 2008 11:25 am
Location: Denmark

Some problem with "status" and "Last status&q

Post by fve »

Some problem with "status" and "Last status"

I have a test there have 9 "depends", the test is in a schedule ex. 09-11.
When the time is out of the slot the status is "out of schedule" thats is what I expect. But there are some problem with the status of the "Last status" because it show "OK" nearly all the time.
If the test if not fired because the depends is not satisfied then I expect that last status is something like "wait for master" but it show OK if the last real scan was ok.

It is little confusing?

Some hints...
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

This is correct behavior. LastStatus does not count on statuses that are not related to test results. Out of schedule, wait for master, paused - its a status but not a test result.

Regards
Alex
fve
Posts: 98
Joined: Sun Apr 27, 2008 11:25 am
Location: Denmark

Post by fve »

Hi

Then I need some help:-)

My test is as described.

1)
At the moment I have configured the "Alive Action" to add 8 hour to the schedule, that mean it only run one time in the time slot if the test is detected as OK!
But

2)
If the test have not been triggered (remember is have 9 depends) when the time slot is over (out of schedule) I want the test to be run one time?

Some help:-)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I think we already discussed this theme here
http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=5304
You cannot perform test if "master" conditions do not allow to perform the test. If you want to perform test once a day regardless of master test status, setup item without "master" conditions.

Regards
Alex
fve
Posts: 98
Joined: Sun Apr 27, 2008 11:25 am
Location: Denmark

Post by fve »

Hi

Yes you are right wee discussed it before.
But then you suggest I made a new test.... There came my problem because I then think I can use the "Last status" as input for my new test, and it i not working as you tell me.

My hole problem is:
I have a program that only must run is 9 other test is OK. After that the program run in a schedule 09-11. and if not fires at 11:00 because of one or more depends is not set, I want it to run anyway! After that it sit and wait for next day at 09:00.

Little background: The program get some logfile from the 9 computers and if no logfile no running at all. But at 11:00 I want to get what there is, therefore I want the program to run.


Is it not possible at all to have this to work?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

There came my problem because I then think I can use the "Last status" as input for my new test, and it i not working as you tell me.
I did not say anything about LastStatus. I said you may setup another test item that should be performed once a day regardless of any master test.
Is this a problem? Is this a problem to check your log file using 2 test items? One test item will be executed when master tests allow, another test item will be executed everyday at 11:00.

Regards
Alex
fve
Posts: 98
Joined: Sun Apr 27, 2008 11:25 am
Location: Denmark

Post by fve »

Hi

How to say i don't blame you, just understand that my English is not so good. "LastStatus" was my ide, and it not work.

It's not a problem to have the 2 test, the problem is if they both run. The program is a c# program, and it do lot more than the logfile....

I just looking for a way to fire the program, but it must not run more than once a day.
If it is not possible to do in my way. Maybe your way will be the best. if I make some status when my c# program has made a run, then I thereafter can check to see the c# status, and then just skip.

Thanks for the sparring, and for your always fast support:-)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

So you are using Shell Script test method to execute some external code that should not be executed twice?
I think you may assign HMScript actions ("good" and "bad" action) to 1st test (that depends on 9 master tests) and use PauseTest command to pause 2nd test for 130 min (11:00-9:00=120 min, 10 min for additional pause)
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
So, if 1st test will be executed, it will pause 2nd test. If 1st test will not be executed then HostMonitor will perform 2nd test.

Regards
Alex

PS Schedule execution for 2nd test after 11:00 (e.g. 11:04)
fve
Posts: 98
Joined: Sun Apr 27, 2008 11:25 am
Location: Denmark

Post by fve »

Hi

I think your last reply is my solution, will try it out tomorrow.

:D
Post Reply