Hi,
I want to be able to do the following file tests:
1. I have a file in a particular path which has contents like:
[curver]=06082005
[prever]=06022005
I want to be able to send an email with the contents as those of curver. How do I do it?
2. Also, I am looking for another kind of file test:
Oracle generates alert logs in a file called alert.log. Now for maintenance what we do is every week we manually go to this file and check the last date and time an error log has been reported. Sometimes it might just be that the database started but sometimes it has an error and it will be very helpful to get alerts whenever there is some information written to the alert log file and also what information was lastly written to the file. How do I do it?
Contents from a file
Does "contents like" mean that file contain exactly these lines? In this case you may use "Compare Files" test method.1. I have a file in a particular path which has contents like:
[curver]=06082005
[prever]=06022005
I want to be able to send an email with the contents as those of curver. How do I do it?
If these lines may contain different information, what is variable part? I mean you should tell HostMonitor what exactly must be checked. E.g. "[curver]" or "06082005"...
"Text Log" allows you to check records added by some application. However HostMonitor cannot check for "any" information. You should specify some possible phrases that should be detected. E.g. "Warning" or "Error" or "Failed".will be very helpful to get alerts whenever there is some information written to the alert log file and also what information was lastly written to the file. How do I do it?
Regards
Alex
For the first part the search string is always going to be the same which is [currver]. So I can go with that.
For giving you further details regarding the second question, I want to be notified if there are two words "error" and "ora-". Now will this check be only for additional data or for the whole file. For eg.,
Today contents of the file will be :
"something like this
error
no problems".
so today i want to get an alert that this file has error.
tomorrow if the added contents are:
"dbfvbfjbvdjfb"
then i should not be notified and I should be notified only when again there is some other error. not the first one.
Please help.
Thanks.
For giving you further details regarding the second question, I want to be notified if there are two words "error" and "ora-". Now will this check be only for additional data or for the whole file. For eg.,
Today contents of the file will be :
"something like this
error
no problems".
so today i want to get an alert that this file has error.
tomorrow if the added contents are:
"dbfvbfjbvdjfb"
then i should not be notified and I should be notified only when again there is some other error. not the first one.
Please help.
Thanks.
Answer in the manual: http://www.ks-soft.net/hostmon.eng/mfra ... tm#textlog
Alex
RegardsThis test is useful when you need to check log files created by another application. Unlike "Compare Files" test that warns you when any part of a file contains some specific string the Text Log test warns you only when the string is found in a NEW record. It means that if log file already has "bad' records when you started HostMonitor, you will not receive any alerts; but if any new "bad" record will be added to the log file while HostMonitor is running, you will receive a warning about the new problem. So the Text Log test works like NT Event Log test but it checks text files instead of NT Event Log Database.
Alex