-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System temperature and voltage #83
Comments
It does:
However those values are not present on hardware that does not support them, like running RouterOS on off the shelf x86 hardware. It think there's also a bug on some CRS devices with SNMP and temperature, so perhaps that is related. Were you trying this with a particular piece of hardware? |
I am using a hEX |
Are you invoking with |
For reference this does work for me on the following devices: |
i cant seem to get this to work, i have the following in my config file: devices:
- name: router
address: xxx
user: xxx
password: xxx
log-level: debug
features:
BGP: true
DHCP: true
DHCPL: true
Health: true
Firmware: true
#routes: true
Optics: true
POE: true
Monitor: true also tried with lowercase. it just doesnt seem to be pulling this in. In particular i cant see the health data. Not sure where im going wrong :( using Docker |
I have the CRS312-4C+8XG and the don't get any health exports with the latest commit d3285ba and using Metrics available on the switch/router (at least via its SSH interface):
|
@pklaus what is the path in the OS that you are using to get those metrics? I only get :
This is on a RB3011UiAS-RM. |
On the CRS312-4C+8XG, the command
With the latest commit 26d4264, I do get the CPU temperature now:
|
@pklaus ok thanks. I'll take a look. Kind of annoying that the API doesn't just return a list for something like |
Just chiming in: health metrics are 'broken' and don't return anything on RouterOS 7+. [admin@MikroTik] > /system health print
Columns: NAME, VALUE, TYPE
# NAME VALU T
0 voltage 23.8 V
1 temperature 42 C
|
I don't have a 7.0 device to test this on. I wonder if they changed something in the response. can you pull and build from the
|
Here's the requested output: root@host:/# /usr/local/bin/mikrotik-exporter -device RB4011 -address 10.0.1.1 -user <redacted> -password <redacted> -with-health -log-level debug
{"level":"info","msg":"setting up collector for devices","numDevices":1,"time":"2021-05-06T08:47:03+02:00"}
{"level":"info","msg":"Listening on :9436","time":"2021-05-06T08:47:03+02:00"}
{"device":"RB4011","level":"debug","msg":"trying to Dial","time":"2021-05-06T08:47:10+02:00"}
{"device":"RB4011","level":"debug","msg":"done dialing","time":"2021-05-06T08:47:10+02:00"}
{"device":"RB4011","level":"debug","msg":"got client","time":"2021-05-06T08:47:10+02:00"}
{"device":"RB4011","level":"debug","msg":"trying to login","time":"2021-05-06T08:47:10+02:00"}
{"level":"debug","msg":"!re @ []\n!re @ []\n!done @ []","time":"2021-05-06T08:47:10+02:00"}
{"level":"debug","msg":"OK: RB4011 collector succeeded after 0.028125s.","time":"2021-05-06T08:47:10+02:00"} Thank for looking into this 🎉 . |
Interesting, so that device and os version isn't returning any data for the health call :
I just pushed to that same branch an update that removes the property list that's being requested. So if it returns anything it should do it now and not just the specific properties that are being requested. Can you grab and build it again and see what the output is? If it's still empty then it's something over on the OS side. Assuming that other metrics are returned and this is the only one that's empty. |
Here it goes: {"level":"debug","msg":"!re @ [{`.id` `*D`} {`name` `voltage`} {`value` `23.9`} {`type` `V`}]\n!re @ [{`.id` `*E`} {`name` `temperature`} {`value` `42`} {`type` `C`}]\n!done @ []","time":"2021-05-07T09:22:25+02:00"} EDIT: you're right, all other metrics are returned and this is the only one that's empty. Only "broke" when I upgraded RouterOS to version 7+, worked perfectly fine before. |
@barnumbirr thanks. I'm going to have to figure out what I have that might be able to run 7.0. Looks like they have changed a bunch of stuff. |
I checked the output of branch
I hope that it helps. |
@pklaus && @barnumbirr ... looks like with v7.1beta4 Mikrotik has implemented a REST API. Which .. Yay!. I'll try to carve out some time in the next couple of weeks to figure out a way to integrated the v7 stuff into the exporter. |
@nshttpd any update on this issue? Anything we can do to help? |
who has a better grafana dashboard? can anyone share a more better and updated grafana dashboard than the 3 years old ones? |
anyone willing to share a more up to date grafana dashboard? |
I saw that a health collector fix for RouterOS 7 was implemented in e1b06c6 and have been testing it for a couple of days now, works a treat running v7.1.4. I'd say this issue can probably be marked as resolved. |
It would be great to get the system temperature and voltage.
The text was updated successfully, but these errors were encountered: