- Snmp oid windows cpu temperature
- Re: Need OID For Temperature To Monitor Via SNMP
- Re: Need OID For Temperature To Monitor Via SNMP
- Re: Need OID For Temperature To Monitor Via SNMP
- Re: Need OID For Temperature To Monitor Via SNMP
- Re: Need OID For Temperature To Monitor Via SNMP
- Re: Need OID For Temperature To Monitor Via SNMP
- Re: Need OID For Temperature To Monitor Via SNMP
- Re: Need OID For Temperature To Monitor Via SNMP
- Re: Need OID For Temperature To Monitor Via SNMP
- How to monitor Windows CPU and fan temperature by SNMP or other ways
- 1 Answer 1
- What is the OID to get number of CPU cores in SNMP
- 3 Answers 3
- Not the answer you’re looking for? Browse other questions tagged snmp or ask your own question.
- Related
- Hot Network Questions
- Subscribe to RSS
- Zabbix 2.2: Мониторинг температуры процессора Windows машины
- MRTG & Температура CPU
- Re: MRTG & Температура CPU
- Re: MRTG & Температура CPU
- Re: MRTG & Температура CPU
- Re: MRTG & Температура CPU
- Re: MRTG & Температура CPU
- Re: MRTG & Температура CPU
- Re: MRTG & Температура CPU
- Re: MRTG & Температура CPU
Snmp oid windows cpu temperature
Sat Jul 10, 2010 8:45 pm
Re: Need OID For Temperature To Monitor Via SNMP
Mon Jul 12, 2010 10:26 am
Re: Need OID For Temperature To Monitor Via SNMP
Fri Jul 16, 2010 2:25 am
Re: Need OID For Temperature To Monitor Via SNMP
Tue Jun 16, 2015 9:14 pm
please can anyone tell me how to use this function on dude ?
Re: Need OID For Temperature To Monitor Via SNMP
Sat Nov 14, 2015 2:48 pm
please can anyone tell me how to use this function on dude ?
Topic seems pretty old, still question is unanswered so here it comes.
In device appearance add something like:
[Device.Name]
IP: [Device.FirstAddress]
[device_performance()][Device.ServicesDown]Uptime: [oid(«1.3.6.1.2.1.1.3.0»)]
Temperature: [oid(«1.3.6.1.4.1.14988.1.1.3.10.0»)/10] °C
There are 2 oids- first one is uptime and the second one is temperature divided by 10.
This is because output of oid is an integer and it cannot handle floating point number and it’s for example 340 instead of 34.0.
Re: Need OID For Temperature To Monitor Via SNMP
Mon Sep 26, 2016 12:33 pm
Re: Need OID For Temperature To Monitor Via SNMP
Tue Mar 13, 2018 10:29 pm
For RB750Gr3 (6.41.3)
Temperature: [oid(«1.3.6.1.4.1.14988.1.1.3.10.0»)] °C
shows real temperature (32°C)
But for RB750G (6.41.3)
Temperature: [oid(«1.3.6.1.4.1.14988.1.1.3.10.0»)] °C
shows nothing (empty value)
Re: Need OID For Temperature To Monitor Via SNMP
Fri Mar 16, 2018 9:55 pm
For RB750Gr3 (6.41.3)
Temperature: [oid(«1.3.6.1.4.1.14988.1.1.3.10.0»)] °C
shows real temperature (32°C)
But for RB750G (6.41.3)
Temperature: [oid(«1.3.6.1.4.1.14988.1.1.3.10.0»)] °C
shows nothing (empty value)
If I remember correctly RB750G doesn’t have temperature/voltage sensor.
Check with /system health print
Re: Need OID For Temperature To Monitor Via SNMP
Fri Mar 16, 2018 11:57 pm
Re: Need OID For Temperature To Monitor Via SNMP
Wed Jun 13, 2018 12:22 am
Hi everybody, I have a problem when I try to get the voltage value from 750GL router using the snmp protocol.
The terminal of 750GL show the OIDs of system health:
[admin@MikroTik] > system health print oid
active-fan: .1.3.6.1.4.1.14988.1.1.3.9.0
voltage: .1.3.6.1.4.1.14988.1.1.3.8.0
temperature: .1.3.6.1.4.1.14988.1.1.3.10.0
processor-temperature: .1.3.6.1.4.1.14988.1.1.3.11.0
current: .1.3.6.1.4.1.14988.1.1.3.13.0
fan-speed: .1.3.6.1.4.1.14988.1.1.3.17.0
fan-speed2: .1.3.6.1.4.1.14988.1.1.3.18.0
power-consumption: .1.3.6.1.4.1.14988.1.1.3.12.0
psu1-state: .1.3.6.1.4.1.14988.1.1.3.15.0
psu2-state: .1.3.6.1.4.1.14988.1.1.3.16.0
When I use the command snmpGet I get the following:
D:\SNMP>snmpGet -v:1 -c:public -r:192.168.3.1 -o:.1.3.6.1.4.1.14988.1.1.3.8.0
SnmpGet v1.01 — Copyright (C) 2009 SnmpSoft Company
[ More useful network tools on http://www.snmpsoft.com ]
%Failed to get value of SNMP variable. Variable does not exist (noSuchName(2))
However when I use other OID the request is succesful:
D:\SNMP>snmpGet -v:1 -c:public -r:192.168.3.1 -o:.1.3.6.1.2.1.2.2.1.2.1
SnmpGet v1.01 — Copyright (C) 2009 SnmpSoft Company
[ More useful network tools on http://www.snmpsoft.com ]
Is it possible to get the voltage value from 750GL and how?.
How to monitor Windows CPU and fan temperature by SNMP or other ways
I want to monitor 3 kinds of data for windows machines: cpu temperature, fan temperature
and fan speed, retrieving these data every 5 minutes. If these data can be retrieved by SNMP , that’s my first choice.
I am wondering whether these data’s root data source comes from Microsoft or the vendor of the motherboard. If they come from Microsoft, their OID should starts with 1.3.6.1.4.1.311, if they come from motherboard vendor, their OID should starts with 1.3.6.1.4.1.[motherboard vendor private snmp vendor OID ], for example 1.3.6.1.4.1.11 for a HP server machine, 11 represents HP’s private snmp vendor OID .
1 Answer 1
If you simply want to know how to query a Windows machine for the relevant SNMP data, this is possibly not the right site to ask this question on as it is a site for Q&A specific to software development. You may have better success asking at Server-Fault — here is a similar question to yours on there.
The OIDs for hardware specific SNMP monitoring are usually vendor specific. Typically you would need the Management Information Base (MIB) files that apply to your specific hardware in order to extract the information about which OIDs pertain to the data you require — as far as I know, CPU and Fan temperature are not generic SNMP properties.
If you cannot find the MIBs for your hardware sets (or there is no SNMP agent for your specific hardware), there is a piece of Windows software called SpeedFan that has an SNMP plugin that allows you to monitor the CPU and fan temperatures via SNMP. However this would require the Speedfan software to run in the background on all machines you wish to monitor. The OIDs for the SpeedFan software SNMP plugin are:
To get started monitoring this SNMP data on a Windows client machine you typically would need to:
- install SNMP agent service
- configure the SNMP service
- Install speedfan
- Install the Speedfan SNMP plugin
- determine which OIDs are pertinent to your hardware (either using SpeedFan or vendor specific MIBs)
- use an SNMP tool to perform an SNMP walk or an SNMP get to fetch the relevant SNMP data.
Using the command-line tool netsnmp you can walk the SNMP tree like so:
(Assuming that your community string is «public» and you want to walk the «SpeedFan termperatures» sub-tree of your machine in this example).
A handy client tool with a gui for viewing snmp data is mibbrowser
The linked to Server-Fault Q&A has other useful information and links to various SNMP monitoring software solutions such as nagios, opennms etc.
What is the OID to get number of CPU cores in SNMP
Does anyone knows what is the OID to get the number of CPU cores in SNMP? I want to get an Integer value for this.
3 Answers 3
You can do a SNMP walk of this OID: 1.3.6.1.2.1.25.3.3.1.2 it will return the load for each CPU, you can simple count the results and you will know the numbers of cores.
That OID 1.3.6.1.2.1.25.3.3.1.2 follows the HOST-RESOURCES-MIB from Standards / RFCs, so it should work on other platforms. http://www.oidview.com/mibs/0/HOST-RESOURCES-MIB.html
My sample code using SharpSnmpLib:
result ‘s count will be 4 as I’m using an Intel i5 with 4 cores.
Here is the NETSNMP version based on the previous answer by @celso-catarino-neto
The OID for the hrProcessorTable is .
Use snmpwalk tool for it.
It will return an integer as a desired number of CPU cores
Not the answer you’re looking for? Browse other questions tagged snmp or ask your own question.
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.4.16.39093
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Zabbix 2.2: Мониторинг температуры процессора Windows машины
При первом знакомстве с zabbix, меня переполняли эмоции и фантазии о мониторинге всего на свете. Первой была идея предотвращения физических неисправностей путем отслеживания основных показателей железа, например температуру или напряжение, поскольку мне видится весьма логичным и экономически выгодным, поменять термопасту или начать подбирать замену уставшей технике до того как пользователь сообщит о её преждевременной кончине или страшных тормозах.
Система мониторинга Zabbix действительно очень мощная и гибкая, но, к сожалению, далеко не все аспекты для отслеживания доступны из стандартных коробочных шаблонов. Таким образом, моя фантазия с треском разбилась об стену отсутствия штатных инструментов мониторинга температур в Windows.
Процесс поиска в интернете поставил меня перед фактом, что вытащить температуры железа без сторонних средств нельзя. При поиске этих самых средств, я столкнулся с популярной утилитой SpeedFan, которая умеет собирать данные о температуре устройств, скорости вентиляторов, напряжений. Но получить от неё готовые к обработке данные без установки еще одной утилиты нет возможности. Плюс ко всему они не open source и требует активации компонента SNMP протокола. Вывод: попробовать на windows сервере без IMPI можно, но как вариант массового распространения в сети – не годен. Дальнейший поиск навел на программы hwmonitor и aida64 — монстры, крупногабаритные и платные.
OpenHardwareMonitor
Уже почти отчаявшись, зацепился за короткое сообщение на англоязычном форуме zabbix. Рекомендовали небольшую open source утилиту OpenHardwareMonitor — она имеет графический интерфейс и умеет считывать температуру устройств с датчиков. И самое главное её автор, по просьбе трудящихся написал консольную версию(последняя версия 28.10.2012), выводящую информацию в готовой для обработки форме.
Консольная версия состоит из двух файлов, exe исполняемого файла и dll библиотеки.
- OpenHardwareMonitorReport.exe
- OpenHardwareMonitorLib.dll
Где брать данные мы поняли, теперь нужно наладить поставки значений показателей Zabbix серверу.
Настройка сервера
Для начала на сервер для узла сети добавим новый элемент данных:
Назовем его: CPU Temperature. (Температура процессора)
Тип: Zabbix агент
Ключ: Temperature.CPU[0]. (Название не принципиально, главное чтобы с конфигом агента совпадал).
Интерфейс узла сети: ip\dns. (Узел, который будем мониторить).
Тип информации: Числовой (целое положительное)
Тип данных: Десятичный
Интервал обновлений (в сек): 3600. (На скриншоте стоит 10 сек, для временной проверки).
На сервере закончили, переходим к конфигурации клиента.
Настройка клиента
Нестандартные данные мы будем отправлять через Zabbix agent в конфиге(zabbix_agentd.conf) которого предусмотрены так называемые пользовательские параметры – UserParameters вида:
Команда, через которую мы получим значение, обрабатывается на стороне клиента. Zabbix сервер будет получать ключ с присвоенным ему значением. В статье имеется в виду, что агент у вас уже установлен в виде службы и дружит с сервером.
В конец конфиг файла агента добавляем:
CPUTemperature.bat — написанный мной batch файл который вытаскивает из OpenHardwareMonitor, среднюю температуру по процессору. В программе эта строка называется CPU Package.
В C:\OpenHardwareMonitor лежат 3 файла:
- OpenHardwareMonitorReport.exe
- OpenHardwareMonitorLib.dll
- CPUTemperature.bat
Инвалид на костылях.
Взываю к habra-сообществу о помощи в преобразовании этого ужаса в нормальный программный код без костылей из текстовых файлов.
Тем не менее, со своей задачей скрипт справляется.
Обновлено: Новый код от уважаемого cawaleb
Для процессоров intel так же справедлив вариант с find вместо findstr и регулярным выражением:
Скрипт возвращает значение в виде десятичного числа.
После этого изменения конфиг файла и размещения всех файлов и скриптов, перезагружаем службу zabbix agent.
Начинаем получать значения на сервер:
Заключение
Решена задача по извлечения температуры CPU. По той же схеме можно получить температуру GPU. Но по-прежнему остро стоят вопросы определения скорости работы вентиляторов, напряжения на бп, а так же вопрос есть ли способ проверки состояния северного и южного мостов.
MRTG & Температура CPU
у вас snmpget на этих MIBы все правильно показывает?
И в правду ругается.
]# snmpget -v1 -c monitoring localhost .1.3.6.1.4.1.2021.13.16.2.1.3.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: UCD-SNMP-MIB::ucdExperimental.16.2.1.3.1
Может надо с какими-то флагами пересобрать? В данный момент собран с такими флагами:
./configure —prefix=/usr/local/net-snmp \
—enable-ucd-snmp-compatibility
Re: MRTG & Температура CPU
гугел врет
./configure —prefix=/usr —with-mib-modules=»ucd-snmp/lmSensors» ; make; make install
Re: MRTG & Температура CPU
та же история. Не работает.
Re: MRTG & Температура CPU
гм, кстати вы lm_sensors ставили и настраивали?
>sensors
что то показывает?
Re: MRTG & Температура CPU
Ставил и настраивал, вот результат sensors:
w83793-i2c-0-2f
Adapter: SMBus I801 adapter at 1100
VCoreA: +1.29 V (min = +0.92 V, max = +1.49 V)
VCoreB: +1.29 V (min = +0.92 V, max = +1.49 V)
Vtt: +1.20 V (min = +1.08 V, max = +1.33 V)
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +30°C (high = +85°C)
coretemp-isa-0001
Adapter: ISA adapter
Core 1: +34°C (high = +85°C)
coretemp-isa-0002
Adapter: ISA adapter
Core 2: +33°C (high = +85°C)
coretemp-isa-0003
Adapter: ISA adapter
Core 3: +32°C (high = +85°C)
В принципе, я мог бы написать скриптик, который из вывода sensors будет вытягивать информацию для MRTG. Но, как то хотелось бы готовыми средствами SNMP.
Re: MRTG & Температура CPU
Всем спасибо, проблема решена (во всяком случае ошибка не выдается). Просто после конфигурирования lm_sensors надо было пересобрать net-snmp.
Re: MRTG & Температура CPU
Встает вопрос: данные о температуре какого процессора берутся из SNMP?
Re: MRTG & Температура CPU
походу скриптик будет всетаки универсальнее 😉
Re: MRTG & Температура CPU
> походу скриптик будет всетаки универсальнее 😉
Видимо. Иначе не могу понять (но еще не ковырялся) о каком проце идет речь в snmp, если у меня их два.