file contains string works for NT4 hosts, not W2k?

General chat about HostMonitor (all messages posted before March 07, 2003 available here).
Locked
fluke
Posts: 5
Joined: Sun Oct 20, 2002 6:00 pm
Contact:

Post by fluke »

I use the 'file contains string' within HostMonitor on a W2k server. When checking a file on a remote NT4S station it reacts as expected. When checking a file on a remote Win2000S station it reacts always with the same status, regardless if the file contains the string or not. I cannot figure out why...
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

>always with the same status,

What exactly status?

Regards
Alex
fluke
Posts: 5
Joined: Sun Oct 20, 2002 6:00 pm
Contact:

Post by fluke »

test method=compare file; alert when file contains string; string=performed; (compare is NOT case sens.; NOT whole word; test is NOT reversed)
Result is the Good/Alive alert, wethere the string is in the file or not.
If I DO reverse the alert the result is the Bad/Dead action.
If I play with 'reverse test' and 'file does not contain' the result is consequent, but string independant.
I'm not sure the file is checked, though the same file is sent with the alert succesfully.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What is Reply value? "File not found"? I think HM cannot access file, probably it does not have permissions or you have specified wrong path.

Regards
Alex
fluke
Posts: 5
Joined: Sun Oct 20, 2002 6:00 pm
Contact:

Post by fluke »

It appears to be the queried file: checking the log file created by ntbackup (w2k) it gives a fixed status (like if the string is not found); If I create a new file (right mouse click-new-text document) checking the file is fine: the action is according the string found. Ntfs rights are both times the same (everyone FC), as is the owner (same as HM account). I created a local account with the same name/password as the domain account which is used for HostMonitor. No success either. Help... I've a deadline comming near.
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

Have you checked the 'share rights' ?
fluke
Posts: 5
Joined: Sun Oct 20, 2002 6:00 pm
Contact:

Post by fluke »

I think I've found the cause: The logging file created by ntbackup.exe (w2k) appears to have a strange header. If I use FOR to read a line I am unsuccessfully as well. If I type the content to a second file (type backup.log > dummy.txt) I can successfully search the dummy.txt file for a string!
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If you have this problem with some specific file, zip file and send to our address line1@ks-soft.net. And please send your HML file with tests, or export problem test into txt file and send that file.

Regards
Alex
Locked