diff --git a/src/main.rs b/src/main.rs index 34d9f1b..6318559 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,6 +17,9 @@ fn main() { "cifs" => { true }, + "ceph" => { + true + }, _ => false }, _ => false @@ -68,6 +71,13 @@ fn process_mount(fstype: &str, what: &String, path: PathBuf) { failed_initial_check = ping_unreachable(&ip, 5); higher_timeout = true; }, + "ceph" => { + let host = what.split(",").nth(1).unwrap(); + let ips = lookup_host(host).unwrap(); + let ip = ips.first().unwrap(); + failed_initial_check = ping_unreachable(&ip, 5); + higher_timeout = true; + }, _ => {} }