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 Beryllium.
Return the processor load as a percentage
CLI Example:
salt '*' status.cpu_load
salt.modules.win_status.
diskusage
(human_readable=False, path=None)¶New in version Beryllium.
Return the disk usage for this minion
True
, usage will be in KB/MB/GB etc.CLI Example:
salt '*' status.disk_usage 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 Beryllium.
CLI Example:
salt '*' status.procs
salt '*' status.procs count
salt.modules.win_status.
saltmem
(human_readable=False)¶New in version Beryllium.
Returns the amount of memory that salt is using
CLI Example:
salt '*' status.salt_mem
salt '*' status.salt_mem human_readable=True
salt.modules.win_status.
uptime
(human_readable=False)¶New in version Beryllium.
Return the system uptime for this machine in seconds
True
, then the number of seconds will be translated into years,
months, days, etc.CLI Example:
salt '*' status.uptime
salt '*' status.uptime human_readable=True