Community discussions

MikroTik App
 
foolbaby
just joined
Topic Author
Posts: 18
Joined: Sun Feb 07, 2010 5:02 pm

[ask] how to get value of /system resource monitor?

Mon Sep 18, 2023 7:19 pm

we know that when running this command
/system resource monitor once
will give the result like this
[admin@Mikrotik] > /system/resource/monitor once
cpu-used: 22%
cpu-used-per-cpu: 7%, 8%, 17%,59%
free-memory: 132988KiB

my question is how to get those result to print in the log, when one of the cpu(cpu-used-per-cpu) goes to 90% ?
 
msatter
Forum Guru
Forum Guru
Posts: 2915
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: [ask] how to get value of /system resource monitor?

Mon Sep 18, 2023 9:41 pm

 
foolbaby
just joined
Topic Author
Posts: 18
Joined: Sun Feb 07, 2010 5:02 pm

Re: [ask] how to get value of /system resource monitor?

Tue Sep 19, 2023 1:44 am

thanks @msatter
found this to get closer for what i want
[admin@Mikrotik] > :put [system/resource/monitor once as-value]         
cpu-used=14;cpu-used-per-cpu=8%;7%;12%;31%;free-memory=133036
and i also reading this to understand :roll:
https://wiki.mikrotik.com/wiki/Manual:S ... and_Tricks

Who is online

Users browsing this forum: No registered users and 10 guests