get_info/1 is an Erlang function exported by "sysmon" module. This function simply returns set of fields with various of system information. The function has one optional parameter to setup on how the system information has to be gathered. By default this parameter is just an empty list, however, the following atoms can be applied in case of necessity: •ignore_errors - An integer value 1 or 0 (default). Select 1 if you want to collect all possible data ignoring any errors. By default, the function stops on the first error. •wait_for_load - An integer value 1 or 0 (defaul t). Select 1 if you want to specify particular measurement time. By default, the Caller controls the measurement frequency. •measure_time - An integer value in milliseconds to specify the timeout between two measurements. •devices - Experimental. A list of HDD for continuous monitoring. It is experim ental because of some discrepancies between the operating systems. Currently works on Linux only. The result contains generic and grouped fields (see the code sample below). The following groups are supported: •{cpu_info, []} - list of installed CPUs with detailed information per CPU •{net_info, []} - list of installed network devices with detailed information per device •{hdd_info, []} - list of installed HDD devices with detailed information per device
Notes about some of the returned generic fields: •node_name - represents the name of an AGE node. This info is quite useful when you're gathering system information as SaaS from multiple AGE nodes (machines). •machine - refers to the machine's architecture. For example x86_64 = 64-bit architecture. •uptime - calculated in seconds, shows the system up-time. For example, 9437 sec = 2.6 h (9437 / 3600) system up-time. •total_physical_memory (or any other "memory" related parameter) - calculated in bytes, shows the total size of installed physical memory on the machine.
Important! Be advised that by improving this plug-in we could add more and more fields to the output result on our discretion. |
|
|