# sysmon

This is the standard Aussom-Lang system monitoring module. It is based on
[Sigar v1.6.4](https://github.com/hyperic/sigar) by Hyperic and provides
cross-platform access to CPU, memory, file system, network, and TCP
information for the host running the Aussom application.

## Usage

Here's a short example, please see the API doc for details.

```
// Create a new sysmon instance.
sm = new sysmon();

// Get CPU info.
cinfo = sm.getCpuInfo();
c.log(cinfo);

// Get memory usage.
mem = sm.getMem();
c.log("Used " + sm.formatPerc(mem.usedPercent) + " of " + (mem.total / sm.megabyte()) + " MB");

// Get file system info.
for (fs in sm.getFsInfo()) c.log(fs);

// Get network interface info.
for (nic in sm.getNetIntInfo()) c.log(nic);
```


## License

Copyright 2026 Austin Lehman

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
