Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force exclusion of CDROM (iso9660) from disk check #1786

Merged
merged 1 commit into from
Aug 10, 2015
Merged

Conversation

JohnLZeller
Copy link
Contributor

Currently the agent disk check is including the monitoring of mounted cd-rom images. This isn't good as these are read-only and already have 100% usage. This is a threat for triggers false positives.

Solution is to forcibly exclude CDROM (iso9660) filesystems from the disk check.

@JohnLZeller JohnLZeller force-pushed the zeller/exclude-cdrom branch from 3dc1e72 to 4540d67 Compare July 27, 2015 18:22
@remh
Copy link

remh commented Jul 27, 2015

Nice but as far as i can see iso9660 is for Windows only. Did you try this on a linux host ?

(https://en.wikipedia.org/wiki/ISO_9660)

@remh
Copy link

remh commented Jul 27, 2015

Also it seems that for windows, the CD rom case is already covered:
https://github.com/DataDog/dd-agent/blob/zeller/exclude-cdrom/checks.d/disk.py#L117-L119

@JohnLZeller
Copy link
Contributor Author

Bah, I'll take another look at this.

@JohnLZeller
Copy link
Contributor Author

Looks like iso9660 is for both Windows and Linux. I tested on Linux, and sure enough the fstype is iso9660. Testing now between this change, and how we did things with 5.3.0

@JohnLZeller
Copy link
Contributor Author

Agent 5.3.0 reports disk usage for read-only disks. This PR will exclude mounted cdrom disks, but preserves the behavior of agent 5.3.0 reporting disk usage of read-only disks.

remh pushed a commit that referenced this pull request Aug 10, 2015
Force exclusion of CDROM (iso9660) from disk check
@remh remh merged commit b773e9c into master Aug 10, 2015
@LeoCavaille LeoCavaille deleted the zeller/exclude-cdrom branch August 11, 2015 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants