Skip to content

FileWatch Configuration

Set up FileWatch to detect file existence and checksum changes.

4 min read Updated SS

FileWatch Configuration#

This guide covers how to configure FileWatch monitoring through the HEAL Control Center. For an overview of what FileWatch is and how to view the data in HEAL UI, see the ConfigWatch & FileWatch User Guide.

FileWatch vs Property Watch

FileWatch (File Watch) tracks the file itself — does it exist? Has it been modified? It does not show the exact content change — think of it as a checksum monitor that answers "did this file change?" not "what changed inside it?"

Note

If you need to track what changed inside a file (key-value pairs, settings), use Configuration Properties (Property Watch) instead. See ConfigWatch Configuration for details.

There are two levels of FileWatch:

Level Use Case Where to Configure
Component-level Application config files (server.xml, web.xml, WAR files) Edit Component → Group Values → File Watcher
Host-level System files (/etc/crontab, /etc/hosts, /etc/passwd) Edit Host → Group Values → File Watcher

Step-by-Step: Configure FileWatch#

Step 1: Navigate to Group Values#

  1. Open the classic Control Center: https://<HEAL_IP>:9998/heal-controlcenter/
  2. Ensure your account is selected in the top-right dropdown (e.g., MyCompany)
  3. Click Setup in the top navigation bar
  4. Click Monitoring
  5. Click the Services card
  6. Click your service name (e.g., PetclinicService)
  7. On the left sidebar, under Configuration, click Instances
  8. On the instance row, click the three-dot menu (⋮) under the Actions column
Manage Service screen with Instances selected under Configuration in the left sidebar, listing instance rows with the three-dot Actions menu at the right end of each row

Choose the appropriate level:

  • For application config files: Click Edit Component → Group Values
  • For system files: Click Edit Host → Group Values
Actions menu expanded on an instance row, showing the Group Values option under both the Edit Host and Edit Component sections

Step 2: Add File Paths#

  1. On the left sidebar of the Group Values page, click File Watcher
  2. For each file you want to monitor:
    • Click the + (plus) button to add a new row
    • Attributes: Enter the full absolute file path on the target server
    • Display Name: Enter a friendly label for the file
    • Data Collection: Toggle to ON
  3. Click Save
Edit Component Group Values page with File Watcher selected in the left sidebar, showing one file path per row under Attributes, a Data Collection ON/OFF toggle beside each row, the + button to add a new row, and the Save button

One File Per Row

Each file is added as a separate row with its own ON/OFF toggle. You cannot put multiple file paths in one row.

Step 3: Apply Changes#

After saving, restart the Component Agent for immediate effect:

  1. In Control Center, go to Health → Monitoring → Agents
  2. Find the agent for your target server
  3. Click Agent Actions → Restart
  4. Wait for the agent status to show Running

The agent downloads the updated configuration and begins monitoring on the next collection cycle.


Configure Component-Level FileWatch#

Use this for application configuration files (Tomcat config, WAR files, etc.).

Example: Tomcat Application Files#

Attributes (File Path) Display Name
/opt/Components/Tomcat/apache-tomcat-8.5.27/conf/server.xml server.xml
/opt/Components/Tomcat/apache-tomcat-8.5.27/conf/web.xml web.xml
/opt/Components/Tomcat/apache-tomcat-8.5.27/webapps/petclinicoracledb.war petclinicoracledb.war
/opt/Components/Tomcat/apache-tomcat-8.5.27/webapps/docs/appdev/sample/sample.war sample.war

Configure Host-Level FileWatch#

Use this for system configuration files. Select Edit Host → Group Values → File Watcher.

Edit Host Group Values page with File Watcher selected in the left sidebar, showing /etc/crontab as the first monitored file path with its Data Collection toggle set to ON
Attributes (File Path) Display Name Why Monitor It
/etc/hosts Hosts File Detect DNS override changes
/etc/crontab Crontab Detect unauthorized scheduled tasks
/etc/resolv.conf DNS Config Detect DNS server changes
/etc/fstab Fstab Detect mount configuration changes
/etc/passwd Password File Detect user account changes
/etc/sudoers Sudoers Detect privilege escalation changes
/etc/selinux/config SELinux Config Detect SELinux policy changes

What Gets Detected#

Event How It's Detected Status Badge
File first seen First checksum recorded Added (green)
File content changed MD5 checksum differs from previous collection Modified (yellow)
File deleted File path returns "not found" Deleted (red)
File unreadable File returns "permission denied" Not Collected (red)

FileWatch Does Not Show Content Changes

FileWatch only tells you that a file changed — not what changed inside it. If you need to see specific property changes within a file, configure that file under Configuration Properties (Property Watch) instead.


Collection Timing#

Step Time
Agent polls for config changes Every 5 minutes
Agent starts monitoring the file After the next poll cycle
File change detected Within 60 seconds of the change

After saving the configuration, wait up to 5 minutes for monitoring to begin, then changes are detected every 60 seconds.


Troubleshooting#

Problem Cause Fix
File not appearing in UI Agent hasn't polled yet Wait 5 minutes for config update, then restart agent
"Data Not Available" Wrong time range selected Use Last 1 hour or wider
File shows but no changes detected File hasn't changed since baseline Make a test change to the file
Error E1202 in agent log Permission denied Grant the dedicated agent identity only the required read access through an approved owner, group, or narrowly scoped ACL; do not make the file broadly readable
Error E1203 in agent log File not found Verify the file path is correct: ls -la /path/to/file
FileWatch appears in wrong tab Configured at wrong level Component files → Edit Component; System files → Edit Host

For more detailed troubleshooting, see Data Collection Issues.

Note

Full reference: For the full reference on editing Group Values (including Config and File Watch) per instance, see KPI Details For Instances in the Administration Guide.