KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

User-defined variable in file integrity

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Wish list
View previous topic :: View next topic  
Author Message
timn



Joined: 20 Nov 2003
Posts: 184
Location: United States

PostPosted: Mon Nov 24, 2003 8:16 am    Post subject: User-defined variable in file integrity Reply with quote

Something that would be handy is if you could specify a
user defined variable for the checksum in a file integrity
test.

We have a situation in which the same file exists on 60
different servers - but this file changes once every 2-3
weeks.

If it were possible to specify %udv_currentcksum%
as the value for the checksum field, then when the file is
intentionally updated, I could just change the user defined
variable in one location rather than update each of 60
tests.

Currently, the best way I can see to do this is to export all
tests to text, thenuse a global search and replace on the
checksum value, then re-import from text. This method is
not terrible but a UDV would be easier.

Just a suggestion...
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Nov 24, 2003 6:06 pm    Post subject: Reply with quote

Quote:
We have a situation in which the same file exists on 60
different servers - but this file changes once every 2-3
weeks.


Only name of the file changes? Content (CRC) does not change?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
timn



Joined: 20 Nov 2003
Posts: 184
Location: United States

PostPosted: Wed Nov 26, 2003 10:09 am    Post subject: Reply with quote

Sorry Alex, I should have been a bit clearer.

The file name stays the same on all 60 machines but the content of the file changes -- thus the CRC changes.

In the global user defined variable, I would like to store the value of the CRC.

When the content does change, I could determine the new CRC/checksum and modify a single global UDV, which would then be used as the new test value for all 60 tests. (As opposed to modifiying 60 tests manually.)
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Nov 26, 2003 2:06 pm    Post subject: Reply with quote

Probably another test option "Recalculate CRC when fie content changes detected" will be more useful?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Marcus



Joined: 18 Nov 2002
Posts: 367

PostPosted: Wed Nov 26, 2003 3:29 pm    Post subject: Reply with quote

I could be missing something, but this is what i see:

Test a file for its CRC (so some action when it fails)
But when it fails you want to change the test to the new CRC??

Doesn't sound logic to me
A file/folder availability test sounds more logical: Test for the presence of the file and generate an action when not found.
Back to top
View user's profile Send private message
timn



Joined: 20 Nov 2003
Posts: 184
Location: United States

PostPosted: Wed Nov 26, 2003 3:43 pm    Post subject: Reply with quote

Testing for the presense of a file if not sufficient. What we are attempting to do is detect 'unauthorized' changes to a web page.

Here's another way of looking at it.


  1. We have a web page that is loaded onto a 60-server web farm. It is the same file contents, directory and file name on all 60 servers. We would have 60 total CRC tests - one test for the file on each of 60 servers.

  2. Normally, we want to monitor for any changes to this file on all 60 servers and generate an alert if the page changes without our permission - indicating we have possibly been hacked.

    Say for example, someone hacks server #38 and changes our web page to redirect to a competitor's site or simply defaces the site with some profanity. In this case, the file would still be present, but -- because of the change -- the CRC monitor will fail and hopefully, notify us soon enough to fix the problem before it becomes a media event.

  3. However, there are 'authorized' changes made by us to this page every couple of weeks. The updated page is then re-uploaded to all 60 servers. When such 'authorized' changes occur, the CRC changes and the tests for all 60 servers must be updated so that they DON'T generate an alert. (i.e. the tests need to be told about the new 'valid' CRC)

We dont want to 'automatically update' the test CRC value if it changes -- how would we know if someone has made 'unauthorized' changes to this file?

But, instead of updating 60 individual tests (where the only difference is the IP address), if I could change a single global UDV that was used by each of the 60 tests, then my life would be easier. The UDV would hold the calculated CRC value.

Does this make sense or is there a better way (already) to do this? Host Monitor keeps amazing me with what it can already do...
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Nov 26, 2003 5:10 pm    Post subject: Reply with quote

Quote:
We dont want to 'automatically update' the test CRC value if it changes -- how would we know if someone has made 'unauthorized' changes to this file?


HostMonitor will recalculate CRC after changes detected, it means you will receive alert once after each file modification.
Its good to know are are checking web servers because this option already available for HTTP test, you can use it.

Quote:
Does this make sense or is there a better way (already) to do this


Yes, I think there is better solution - use "Compare Files" test to compare file on each web server with original backup copy. In this case you don't need to do anything with HostMonitor. Every time you change file, you copy it to each web server and make one more copy on HostMonitor's system. That's it, if all changes authorized you will not receive alerts at all.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
timn



Joined: 20 Nov 2003
Posts: 184
Location: United States

PostPosted: Thu Nov 27, 2003 11:46 am    Post subject: Reply with quote

Alex - thanks for taking the time to address this. I will follow your advice - it sounds just as simple as my idea and it's already available.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Wish list All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index