Health readings with v7

The health menu (/system/health/) has been restructured. I am reworking a script (“Notify about health state”) to work with RouterOS v7 but I do not have devices with all the sensors around. Can you share your output, especially if it contains more than temperature (type=C) or voltage (type=V)? Thanks!

This is from my Cloud Core CCR1072.

[admin@NHSHITFW001] > / system health print;
Columns: NAME, VALUE, TYPE
 #  NAME                VALUE  TYPE
 0  power-consumption   50.7   W   
 1  cpu-temperature     40     C   
 2  fan1-speed          4931   RPM 
 3  fan2-speed          5060   RPM 
 4  fan3-speed          4986   RPM 
 5  fan4-speed          5099   RPM 
 6  board-temperature1  27     C   
 7  board-temperature2  25     C   
 8  psu1-voltage        12.1   V   
 9  psu2-voltage        12.1   V   
10  psu1-current        0.3    A   
11  psu2-current        3.9    A

Great, thanks a lot!

I know other devices do have just PSU state (not voltage). Can anybody give an example for these?

Guten Abend,

\

nov/16/2021 20:31:46 by RouterOS 7.1rc6

model = CRS328-24P-4S+

/ system health print;

NAME VALUE TYPE

0 power-consumption 14.2 W
1 cpu-temperature 50 C
2 fan1-speed 2565 RPM
3 fan2-speed 2790 RPM
4 fan3-speed 2145 RPM
5 fan4-speed 2250 RPM
6 board-temperature1 29 C
7 psu1-voltage 26.2 V
8 psu2-voltage 52.3 V
9 psu1-current 0 A
10 psu2-current 0.2 A

Thanks a lot, much appreciated!

Still missing output with a psu state… Anybody else?

PSU-State ?
Do you know which models have this output ?
Dual Power supplies Devices?

I know that the rack version of CCR1009 has the states for PSUs. I own one, but it runs stable RouterOS in production.

Looks like bigger CCRs have voltage sensors for both PSUs, but no state (see above).

Same Problem here…
CCR1009 are all in production use.

Not sure, but i think updating them to V7 is punishable by death :laughing:

Interesting Information.

Can some post output of:

 :put [/system health get]

This would then give me a better naming of the variables (to use with Splunk)

nov/16/2021 20:31:46 by RouterOS 7.1rc6

model = CRS328-24P-4S+

[/system health print as-value]


.id=*10;name=power-consumption;type=W;value=8.9;.id=*11;name=cpu-temperature;type=C;value=54;.id=*1b59;name=fan1-speed;type=RPM;value=0;.id=*1b5a;name=fan2-speed;type=RPM;value=0;.id=*1b5b;name=fan3-speed;type=RPM;value=0;.id=*1b5c;name=fan4-speed;type
=RPM;value=0;.id=*1bbd;name=board-temperature1;type=C;value=30;.id=*1c21;name=psu1-voltage;type=V;value=26.2;.id=*1c22;name=psu2-voltage;type=V;value=52.3;.id=*1c85;name=psu1-current;type=A;value=0;.id=*1c86;name=psu2-current;type=A;value=0.1

Thanks, can you also try:

:put [/system health get]

Doesn’t seam to work on ROS7
21-11-_2021_21-53-41.jpg

Strange, try:

It works on my CHR router:

[@M-71rc6] > :put [/system/health/get]
state=disabled;state-after-reboot=enabled

Try add all the /

Result from your Script (:foreach id in=[/system health find] do=…)


.id=*10;name=power-consumption;type=W;value=9.6
.id=*11;name=cpu-temperature;type=C;value=54
.id=*1b59;name=fan1-speed;type=RPM;value=0
.id=*1b5a;name=fan2-speed;type=RPM;value=0
.id=*1b5b;name=fan3-speed;type=RPM;value=0
.id=*1b5c;name=fan4-speed;type=RPM;value=0
.id=*1bbd;name=board-temperature1;type=C;value=30
.id=*1c21;name=psu1-voltage;type=V;value=26.2
.id=*1c22;name=psu2-voltage;type=V;value=52.3
.id=*1c85;name=psu1-current;type=A;value=0
.id=*1c86;name=psu2-current;type=A;value=0.1

Result of :put [/system/health/get]
21-11-_2021_23-12-51.jpg

It’s seams to be a ROS7 problem…

I upgrade the Swich back to ROS version 6.48.5
The Command :put [/system health get] works normally ..
21-11-_2021_23-21-14.jpg

Can you post a support ticket to Mikrotik about this.
What I also see in 6.x I have to devide voltage by 10. But if you look at your post for v7, it give correct voltage:

.id=*1c22;name=psu2-voltage;type=V;value=52.3

No need to open a support ticket, this is the new intended behavior.

At first I struggled myself, but it makes sense: Every sensor is no longer a property but an item. Think of other items, the sensors behave the same now - try with something like ip addresses.

Why do I not get the same on my test setup?

On my 7.1 RC 6 CHR router I do get the old format:

  MMM      MMM  III  KKK  KKK  RRR  RRR   OOOOOO      TTT     I

  MikroTik RouterOS 7.1rc6 (c) 1999-2021       https://www.mikr

[xxx@M-71rc6] > :put [/system/health/get]
state=disabled;state-after-reboot=enabled
[xxx@M-71rc6] >

Also can some other post output of (7.x router):

:foreach id in=[/system/health/find] do={:put [/system/health/get $id]}

I do only get error on the find command on 7.1 RC6 CHR router.

CHR should behave the same. If it does not that is an issue I guess.