Forum Discussion

deepankar_37689's avatar
deepankar_37689
Icon for Nimbostratus rankNimbostratus
Nov 14, 2018

File monitor to search for .txt file on 2 nodes

I would like to build a File based monitor which will check the presence of .txt file on 2 nodes (eg: \node\d\abc\test.txt). These 2 nodes in actual would be 2 different NAS location on different datacenters. The monitor would check for presence of test.txt file on each nodes and mark the node as DOWN when the file test.txt is not present on any of the nodes.

 

Kindly help me to create the monitor?

 

2 Replies

  • Sounds like a job for an external monitor.

     

    What protocol are you using to access the NAS file shares? Do you have authentication enabled or are you allowing anonymous access?

     

  • External monitor is best option to validate both Nodes.

    However you can try internal Monitor send string

    GET \node\d\abc\
    and receive String
    test.txt
    (Guessing)