SNMP and WMI devices with Ask Mugi
Ask Mugi can set up the monitoring of an SNMP or a WMI device almost from scratch: test it from a probe, create it, choose what it polls and with which thresholds, set its schedule, then follow and change it. This page walks through it, prompt by prompt.
For a first setup, follow the illustrated monitoring walkthrough. It covers two SNMP OIDs, two WMI metrics, and two container workloads.
These tools are for admin accounts. Every change waits for your confirmation in the panel, unless you chose to skip confirmations (see Confirmations).
What Ask Mugi does, and what stays in the web UI
| Step | Ask Mugi | Web UI |
|---|---|---|
| Install and register the probe | ✓ | |
| Save an SNMP or WMI credential set (community, v3 keys, Windows account) | ✓ | |
| Test a device from a probe, read its vendor/model or inventory | ✓ | ✓ |
| Create an SNMP or WMI device | ✓ | ✓ |
| Add, change or remove polled OIDs / WQL queries and their thresholds, apply a template | ✓ | ✓ |
| Schedule, tags, description, address, port, timeout, retries, notification switches | ✓ | ✓ |
| Re-point a device to another saved credential set | ✓ | ✓ |
| Enable or disable a device, read its status, export the list as CSV | ✓ | ✓ |
| Create a remote host or a container host (they need a secret of their own) | ✓ |
No password, community string or key ever goes through the chat. What you type is sent to the AI provider and kept in the conversation, so Ask Mugi refuses them: a device uses a credential set saved in the web UI, named in the chat.
Before you start
- A probe that reaches the device. SNMP uses UDP 161; WMI uses TCP 135 and the DCOM dynamic ports of the Windows host.
- A credential set. Open Configuration → snmp devices (or wmi devices)
and use Manage SNMP credentials (or Manage WMI credentials). Give the set a
name you will reuse in the chat, for example
Network ROorAD monitoring. - Ask Mugi set up by an admin (gear icon of the panel → AI provider).
SNMP, step by step
1. Check the credential sets
Which SNMP credential sets do we have?
Mugi lists their names and SNMP versions, never a secret.
2. Test the device
Test 10.0.0.10 from probe1 with the Network RO credentials and tell me what it is.
Mugi asks probe1 to reach the device with that set and reads its system information (vendor, model, description). Nothing is saved. If the test fails, see Troubleshooting.
3. Create it
Create an SNMP device “core switch” on probe1, IP 10.0.0.10, with Network RO, type switch, tag network, and apply our Cisco template.
Mugi shows the change for confirmation, then creates the device as the web UI’s Add does: its monitors are created on probe1. Without a schedule it is polled every 5 minutes. If something is missing (the probe, the address, the credential set), Mugi asks for it instead of guessing.
The device’s name is <display name>_<probe> with spaces as _: here
core_switch_probe1.
4. Choose what it polls
What can core switch poll?
Mugi asks the probe to read the device: the generic items every device should answer, those of its vendor (from its sysObjectID), the CPUs and disks it lists (averaged CPU load, used % per disk), the battery and output of a UPS, and a status and a traffic item per interface, on the 64-bit counters when the device has them. Vendor tables add a row per component: Cisco fans, power supplies, temperature state, memory pools and CPUs; Juniper routing engines; HPE/Aruba ProCurve sensors, CPU and memory; Dell iDRAC system and storage status; Fortinet, Palo Alto and Check Point items; printer supplies and temperature sensors of any brand. For WMI: per disk and service, plus the items of the roles it finds (domain controller, IIS, SQL Server, Hyper-V), whose services come first; the web UI’s panel names the roles found. Also covered: Ubiquiti EdgeSwitch and UniFi, Aruba CX, and Arista, whose temperatures are graded at the switch’s own limits. It shows only the items the device answered, with their current reading and Mugnsoft’s default thresholds, and says which ones need yours: traffic, for instance, depends on the link speed. Pick the ones you want (“all the health items, and eth0 status and traffic, critical above 800 Mbit/s”) and confirm.
You can also give items yourself:
On core switch, also watch the input errors of port 1 per second, major above 1, critical above 5.
Each polled item has a name, a value (the OID), an operator (number >,
number < or regexp) and optional minor/major/critical thresholds; regexp needs
a pattern. An existing item is updated by name; ask to remove one by its name.
Remove the “cpu” item from core switch.
Counters: poll a rate, not the raw value
Traffic, errors and discards (ifInOctets, ifInErrors, ifHCInOctets…) are
counters: they only grow, from the device’s last restart. A threshold on their
raw value means nothing, and would end up always breached. Poll them as a rate with
a MIB expression, which Mugi writes for you when you ask for “per second”:
| What | Value of the item |
|---|---|
| Input errors per second, port 1 | delta(1.3.6.1.2.1.2.2.1.14.1)/deltaTime() |
| Traffic in + out in bit/s, port 1 (64-bit counters) | (delta(1.3.6.1.2.1.31.1.1.1.6.1)+delta(1.3.6.1.2.1.31.1.1.1.10.1))*8/deltaTime() |
How the probe computes it: at each check it reads the counters twice, 5 seconds apart, and divides the difference by the time between the two readings. So:
- the value is a 5-second sample at each check, not an average over the schedule: a burst between two checks is not seen;
- each such check takes 5 seconds longer;
- for traffic, prefer the 64-bit
ifHC*counters (1.3.6.1.2.1.31.1.1.1.6in,.10out): the 32-bitifInOctetswraps around after 4 GB, every 34 s on a fully loaded 1 Gbit/s link, and a check that falls on a wrap or on a device restart reads a negative value. Avoidnumber <thresholds on a rate for that reason; - the last number of the OID is the interface index: ask Mugi to test the device to find it.
Reuse a set of items: templates
Save what core switch polls as the template “campus switch”. Save the items I picked as the template “windows base”. Set up 10.0.0.11 on probe1 with Network RO like core switch, with the campus switch template.
A template is saved from the items you chose among the suggestions, or from what a device already polls (all its items, or some by name). It is the same template as the ones saved from the web UI’s device dialogs: both see it, and creating or changing a device can apply it. An existing name is replaced only if you ask; a template is deleted in the web UI.
Mugi does not invent thresholds: give the values, or use those it suggested or those of a template. A threshold left empty never fires: a missing minor or major takes the next more severe value, so “critical above 5” alone alerts only as critical, and an item with no threshold is graphed but never alerts.
Devices saved before this version turned an empty threshold into 80, 100 or 120. Ask “which devices have items with empty thresholds?”, then “save core switch again”: its items are pushed again to the probe with levels that never fire. The alerts of those items change, so check them first. Templates are the OID and WQL query templates saved from the web UI’s device dialogs; applying one adds the items the device does not poll yet.
5. Schedule, tags, notifications
Poll core switch every 10 minutes, on weekdays from 08:00 to 18:00, and e-mail on failure.
Schedules are 1, 5, 10, 20, 30 or 60 minutes, optionally limited to weekdays and hours. Notification switches can be turned on or off; tokens and webhooks stay in the web UI.
6. Operate it
Is core switch OK? Pause polling of core switch. Export the SNMP devices as a CSV file.
Mugi reads the status the probe reports, disables or enables the device (it stays so until you ask again), and gives a download link for the CSV export.
WMI devices
The same prompts work, with three differences:
- the port defaults to 135 and the namespace to
root\CIMV2; - polled items are WQL queries instead of OIDs, for example
SELECT PercentProcessorTime FROM Win32_PerfFormattedData_PerfOS_Processor WHERE Name='_Total'; - the test with discover reads the Windows inventory (host name, domain, manufacturer, model, OS).
Test dc01 at 10.0.0.20 from probe2 with the AD monitoring credentials, with its inventory. Create a WMI device “dc01” on probe2, 10.0.0.20, AD monitoring, type server, tag windows, and apply our Windows server template.
Example conversation
You: I want to monitor our new core switch, 10.0.0.10, from probe1.
Mugi: Which SNMP credential set should it use? Saved:
Network RO(v2c),Legacy v1(v1).You: Network RO.
Mugi: probe1 reached it: Cisco IOS XE, C9300-48P. Shall I create “core switch” with the Cisco template (CPU, memory, interface errors)? [confirmation]
You: Yes, and alert me by e-mail on failure.
Troubleshooting
| Mugi answers | What it means |
|---|---|
| no saved snmp credential set named … | The name does not match a saved set. Ask for the list, or create the set in the web UI. |
| no probe named … | Check the probe’s exact name (list the probes). |
| … already exists: change it instead | A device with that display name exists on that probe. |
| The test times out | The probe cannot reach the device: firewall, wrong community/user, SNMP or WMI not enabled on the device. |
| a new item needs its value | An OID or WQL query is missing for a new polled item. |
| credentials … are changed in the web UI | You asked for a secret or for a host/container credential: use the web UI. |
Good to know
- Remote hosts and container hosts can be read, enabled, disabled and tuned from Ask Mugi, but they are created in the web UI.
- A standalone SNMP monitor (not a device) can also be created by Ask Mugi; give it a saved credential set as well, never a community string in the chat.
- Every change Ask Mugi makes is recorded in
log/api_audit.log, with"via":"ai-panel".