Hi,
I'm planning to use HostMonitor to monitor hundreds of machines with the same sort of configuration. Each machine will have about 50 tests running on it (through RMA). I therefore want to be able to easily add the same set of test to any new machine that gets installed. I do that by having a folder for each machine (or RMA) and the tests for that RMA in the folder.
The problem I have therefore is that I have a very large number of tests with the same name. Unfortunately, it means that the Log Analyzer is not usable, as it groups the logs for all the RMAs together.
Would there be a way to add the Folder name, or something like that to the logs, so that the Log Analyzer can show the logs separately for each machine?
TestID in the standard logs
There is undocumented option - you may add "LogUseFullPath=1" line into [Logging] section of hostmon.ini file and restart HostMonitor.
However I would recommend another solution - use unique names. E.g. if you add ip address to the name (Ping 10.10.5.5), you will be able to use replicator to replicate tests for set of hosts and use unique names for each host.
Regards
Alex
However I would recommend another solution - use unique names. E.g. if you add ip address to the name (Ping 10.10.5.5), you will be able to use replicator to replicate tests for set of hosts and use unique names for each host.
Regards
Alex
Yes, I had thought about having unique test names, but it makes it difficult in the long run, as I will have so many RMAs, all with the same tests. It would make it difficult to create per-RMA logs that can all read the same way (for my clients)
I tried your suggestion of changing the .ini file, but it didn't seem to change anything to the logs. The logs still look the same, and the log analyser still "groups" tests with the same name (even though they are not for the same host). I aslo tried adding the line in the [logging1] and [logging2] sections, with no success
Here is the section of the ini file, in case I've done something obviously wrong:
I tried your suggestion of changing the .ini file, but it didn't seem to change anything to the logs. The logs still look the same, and the log analyser still "groups" tests with the same name (even though they are not for the same host). I aslo tried adding the line in the [logging1] and [logging2] sections, with no success
Here is the section of the ini file, in case I've done something obviously wrong:
Code: Select all
[Logging]
LoggingScheme=620
SysLogFileName=C:\Program Files\HostMonitor7\Logs\syslog.htm
LogSuccessActions=0
LogFailedActions=1
odbcLogSource=
odbcLogUser=
odbcLogPswd=
odbcLogTimeout=10
odbcLogSQLQuery=Insert into hmlog (eventtime, testname, status, reply, testid, testmethod) VALUES ('%DateTime%', '%TestName%', '%Status%', '%Reply%', %TestID%, '%TestMethod%')
LogStateChanges=1
RecordPrimaryRMAErrors=1
odbcParam1=
UseBothLogs=0
LogUseFullPath=1
[Logging1]
FileName=C:\Program Files\HostMonitor7\Logs\log.txt
File2Name=C:\Program Files\HostMonitor7\Logs\%ddmmyyyy%-log.htm
LogFormat=0
Target=1
SaveMode=3
LogNameMethod=3
UseDeadAction=0
UseGoodAction=0
DeadActionID=-1
GoodActionID=-1
LogUseFullPath=1
Sorry, my mistake. Should be "UseFullPath=1"
Regards
Alex
Code: Select all
[Logging]
LoggingScheme=620
SysLogFileName=C:\Program Files\HostMonitor7\Logs\syslog.htm
LogSuccessActions=0
LogFailedActions=1
odbcLogSource=
odbcLogUser=
odbcLogPswd=
odbcLogTimeout=10
odbcLogSQLQuery=Insert into hmlog (eventtime, testname, status, reply, testid, testmethod) VALUES ('%DateTime%', '%TestName%', '%Status%', '%Reply%', %TestID%, '%TestMethod%')
LogStateChanges=1
RecordPrimaryRMAErrors=1
odbcParam1=
UseBothLogs=0
UseFullPath=1
Alex