I have installed ICINGA2 Server on Ubuntu 16.04 LTS.
Now I added 3 Windows hosts to monitoring and everything works fine, but I also configured UPTIME and MEMORY services for my new Windows hosts. I works properly but plugin check_uptime return output like this: UPTIME OK 2500h. How can I change unit from hours to days? The same with check_memory windows plugin - I received: MEMORY OK - XX % free
, but I want to display output like this:
MEMORY OK - XX % (X MB) free
It is possible to do?
EDITED: With reference to Sorcha respond I have checked help of check_uptime but I received different output.
check_uptime.exe Help
Version: 1
check_uptime.exe is a simple program to check a machines uptime.
You can use the following options to define its behaviour:
-h [ --help ] Print help message and exit
-V [ --version ] Print version and exit
-d [ --debug ] Verbose/Debug output
-w [ --warning ] arg Warning threshold (Uses -unit)
-c [ --critical ] arg Critical threshold (Uses -unit)
-u [ --unit ] arg Unit to use:
h- hours
m- minutes
s- seconds (default)
ms- milliseconds
It will then output a string looking something like this:
UPTIME WARNING 712h | uptime=712h;700;1800;0