]> granicus.if.org Git - icinga2/blobdiff - plugins/check_disk.h
Move new password functions into tlsutility
[icinga2] / plugins / check_disk.h
index c49199e0bdc42dd7f57ba5e23bf89a5591e22a09..1280ebed9b2b6a964f65dba39fcec701b67b495e 100644 (file)
@@ -1,6 +1,6 @@
 /******************************************************************************
  * Icinga 2                                                                   *
- * Copyright (C) 2012-2015 Icinga Development Team (http://www.icinga.org)    *
+ * Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/)  *
  *                                                                            *
  * This program is free software; you can redistribute it and/or              *
  * modify it under the terms of the GNU General Public License                *
@@ -29,7 +29,7 @@
 struct drive
 {
        std::wstring name;
-       double cap, free;
+       double cap, free, used;
        drive(std::wstring p)
                : name(p)
        {
@@ -41,12 +41,13 @@ struct printInfoStruct
        threshold warn, crit;
        std::vector<std::wstring> drives, exclude_drives;
        Bunit unit;
+       BOOL showUsed;
 };
 
 static INT parseArguments(int, wchar_t **, boost::program_options::variables_map&, printInfoStruct&);
 static INT printOutput(printInfoStruct&, std::vector<drive>&);
 static INT check_drives(std::vector<drive>&, std::vector<std::wstring>&);
 static INT check_drives(std::vector<drive>&, printInfoStruct&);
-static BOOL getFreeAndCap(drive&, const Bunit&);
+static BOOL getDriveSpaceValues(drive&, const Bunit&);
 static bool checkName(const drive& d, const std::wstring& s);
-#endif /*CHECK_DISK_H*/
\ No newline at end of file
+#endif /*CHECK_DISK_H*/