Hi there,
We've got a few Problem in some Ping tests with active RMAs. There are up to 20% unknown Status in a ping test from a active RMA to a firewall. Why are there unknown statuses? Is it possible to ignore them and repeat the test automatically if this happens?
Another problem we have is about a compare file test which checks a file for content like "sucessful" this is based on a logfile with a date variables and wildcards. %yyyy%-%mm%-%dd[-1d]%*.log. The files looks like this 2009-10-18-21-00-01. the last three blocks are variable from day to day the rest remains.
Thanks in advance
Zubler
Unknown Status and Macro with Wildcards
What exactly is test status? Unknown or Unknown host?We've got a few Problem in some Ping tests with active RMAs. There are up to 20% unknown Status in a ping test from a active RMA to a firewall. Why are there unknown statuses?
Do you see error message in Reply field of the test? What exactly message?
You may disable "Treat Unknown status as Bad" test property.Is it possible to ignore them and repeat the test automatically if this happens?
Also you may add "advanced mode" "Repeat test" action into alert profile assigned to the test. You may use expression like ('%Status%'=='Unknown') and (%Recurrences%==1)
1) I think you are using wrong expresion. If you want to apply date stamp using yesterday date, use expression like %yyyy-mm-dd[-1d]%Another problem we have is about a compare file test which checks a file for content like "sucessful" this is based on a logfile with a date variables and wildcards. %yyyy%-%mm%-%dd[-1d]%*.log. The files looks like this 2009-10-18-21-00-01. the last three blocks are variable from day to day the rest remains.
2) Solution depends on version of HostMonitor. If you are using HostMonitor version 8.06+, you may use the following variables:
%NewestFile%, %OldestFile%
Regards
Alex
Thanks for your help.
Test status is Uknown with the reply RMA not connected. But If I do a manual refresh everything is ok. This happens with agents in the internet and local here in the LAN. Is this simply the unstable network?
I will try these setting, may this can tune our results.
I will try these expression. I know the %NewestFile% macro, but my if the logfile isn't created, this test will not fail, although it should.
Best regards
Zubler
Test status is Uknown with the reply RMA not connected. But If I do a manual refresh everything is ok. This happens with agents in the internet and local here in the LAN. Is this simply the unstable network?
I will try these setting, may this can tune our results.
I will try these expression. I know the %NewestFile% macro, but my if the logfile isn't created, this test will not fail, although it should.
Best regards
Zubler
May be... could you check "successful audit" and "failure audit" RMA log files? Any errors?Test status is Uknown with the reply RMA not connected. But If I do a manual refresh everything is ok. This happens with agents in the internet and local here in the LAN. Is this simply the unstable network?
So you have many files in the folder and you need to check file with unknown name that can be presented or not? Sorry, we do not have solution for you.I will try these expression. I know the %NewestFile% macro, but my if the logfile isn't created, this test will not fail, although it should.
Unless you can use move "old" files to another folder after each check.
Regards
Alex
Following a Log of a intern RMA:
[29.09.2009 07:49] Z&P_applsrv01 Connection error
[29.09.2009 08:26] Z&P_applsrv01 Decode error: Cannot read data
[29.09.2009 08:26] Z&P_applsrv01 Connection error
[29.09.2009 08:27] Z&P_applsrv01 Connection error
[13.10.2009 08:30] Z&P_applsrv01 Decode error: Cannot read data
[22.10.2009 08:38] Z&P_applsrv01 Agent "Z&P_applsrv01" already
Are there any other settings or ports to make except open port 5056?
No, not exactly. we have a tool whic writes logfile once a day with the actual date and a random time in it. One each day. So if I use %NewestFile% I will check alway the newest File in the folder. But if the tool fails and don't create that file today I still check yesterdays file. The possibility with the macro doesnt work with a "*" for the time part of File name. Like this: %yyyy-mm-dd[-1d]%*
regards
zubler
[29.09.2009 07:49] Z&P_applsrv01 Connection error
[29.09.2009 08:26] Z&P_applsrv01 Decode error: Cannot read data
[29.09.2009 08:26] Z&P_applsrv01 Connection error
[29.09.2009 08:27] Z&P_applsrv01 Connection error
[13.10.2009 08:30] Z&P_applsrv01 Decode error: Cannot read data
[22.10.2009 08:38] Z&P_applsrv01 Agent "Z&P_applsrv01" already
Are there any other settings or ports to make except open port 5056?
No, not exactly. we have a tool whic writes logfile once a day with the actual date and a random time in it. One each day. So if I use %NewestFile% I will check alway the newest File in the folder. But if the tool fails and don't create that file today I still check yesterdays file. The possibility with the macro doesnt work with a "*" for the time part of File name. Like this: %yyyy-mm-dd[-1d]%*
regards
zubler
No, agent requires just 1 open port.Are there any other settings or ports to make except open port 5056?
Looks like sometimes connection drops unexpectedly...
Yes, I understand this. That why I said "Sorry, we do not have solution for you. Unless you can use move "old" files to another folder after each check."No, not exactly. we have a tool whic writes logfile once a day with the actual date and a random time in it. One each day. So if I use %NewestFile% I will check alway the newest File in the folder. But if the tool fails and don't create that file today I still check yesterdays file.
Can you move these "old" log files to another folder after each check? Simple .BAT file started by HostMonitor can do that...
Regards
Alex