Module for returning various status data about a minion. These data can be useful for compiling into stats later, or for problem solving if your minion is having problems.
New in version 0.12.0.
| depends: |
|
|---|
salt.modules.win_status.cpuload()¶New in version 2015.8.0.
Return the processor load as a percentage
CLI Example:
salt '*' status.cpuload
salt.modules.win_status.diskusage(human_readable=False, path=None)¶New in version 2015.8.0.
Return the disk usage for this minion
True, usage will be in KB/MB/GB etc.CLI Example:
salt '*' status.diskusage path=c:/salt
salt.modules.win_status.master(master=None, connected=True)¶New in version 2015.5.0.
Fire an event if the minion gets disconnected from its master. This function is meant to be run via a scheduled job from the minion. If master_ip is an FQDN/Hostname, is must be resolvable to a valid IPv4 address.
CLI Example:
salt '*' status.master
salt.modules.win_status.procs(count=False)¶Return the process data
If True, this function will simply return the number of processes.
New in version 2015.8.0.
CLI Example:
salt '*' status.procs
salt '*' status.procs count
salt.modules.win_status.saltmem(human_readable=False)¶New in version 2015.8.0.
Returns the amount of memory that salt is using
CLI Example:
salt '*' status.saltmem
salt '*' status.saltmem human_readable=True
salt.modules.win_status.uptime(human_readable=False)¶New in version 2015.8.0.
Return the system uptime for the machine
| Parameters: | human_readable (bool) – Return uptime in human readable format if Note Human readable format is |
|---|---|
| Returns: | The uptime in seconds or human readable format depending on the
value of human_readable |
| Return type: | str |
CLI Example:
salt '*' status.uptime
salt '*' status.uptime human_readable=True
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2018.3.3