There is no cpu temp item to monitor for Zabbix ???
Im using both the IPFIRE & the LINUX template together in the ipfire host in zabbix and cannot find cpu temp. possible ???
There is no cpu temp item to monitor for Zabbix ???
Im using both the IPFIRE & the LINUX template together in the ipfire host in zabbix and cannot find cpu temp. possible ???
I am also messing with this a bit but havent gotten very far sice I am setting up an additional 40-50 devices and doing it a bit on and off on my spare time.
Have you checked @robinr1 's Zabbix Template over here:
And of course this: www.ipfire.org - Zabbix Agent
I do find Ram, and many many many other items that I guess one should somehow select and put in to graphs or some such, but dunno how yet. No “cpu”.
I don’t think there is a Zabbix shipped template with CPU temperature. I assume because this will differ from used sensor chip/cpu type/etc… But you can query sensor data using the agent: See Zabbix manual: 1 Zabbix agent and 6 Sensor .
Use the zabbix_get utility to test what item gives you the required value and create a new template yourself to monitor the sensor data.
See also https://www.youtube.com/watch?v=iTcQMXJ9kCM for an alternative way on a raspberry pi.
There are also a few conversations about cpu temp monitoring on the Zabbix forum.
CPU temperature is not an IPFire specific metric, so my template also does not provide that.
Hum, I would consider CPU Temp, or motherboard temp at the very least, a rather important value to determine the health of the running computer. It is most certainly one of the most basic values measured while monitoring any other computer or server setup, AFAIK, so why is it not available in IPFire?
Or is there something I am not understanding here?
CPU temp may be important, but different motherboards measure it in different ways and need different drivers. As an example, if you run lm-sensors, you have to run sensors-detect to try to determine which sensors can be read and how to read them before lm-sensors will work. You may also need extra drivers, although I never have. In other words, there is no universal method for reading temperatures. You have been given some references to look at and I suggest you do so.
i dont understand monitoring a box without cpu temp. doesnt make any sense. is it possible to add it to the template ?
As @nickh mentioned there is no universal method for this. It depends on drivers, just as so many other hardware stuff, and it seems it is not feasable to add drivers that would cover all cpu architectures for this.
I do wonder though, because I have messed with at least half a dozen Linux desktop and server distros over the years and never lacked such a basic thing as CPU temp that I can recall. Fedora, Suse, Debian, Ubuntu, even FreeBSD, not forgetting all Windows and Windows server versions.
As I referenced in my previous post: In Zabbix manual: Appendix 4. 6 Sensor is explained how you can use sensors -u to determine which values you want to monitor and then add a new item in Zabbix to your host or new template to monitor that value using the item key sensor[device,sensor,<mode>].
Please read that page well, it fully explains how that item works and how to use it.
It is not a matter of distribution, but a matter of hardware. IPFire as distro, supports such sensors and commands sensors and sensors-detect is available. On my IPFire mini appliance, I can also get the temperature from /sys/class/thermal/thermal_zone0/hwmon0/temp1_input but for example on my desktop computer I can’t. This all depends on HW and sensor-drivers.
So you will have to investigate yourself how to get the temperature on each HW-type you want to monitor. That is why it is not included by default in the shipped Zabbix templates. It is theoretically possible to create a template that tries to discover which sensors are available, and then start monitoring it.. But that would probably require quite a lot of maintenance as sensor hw comes and goes and the same sensor HW on different motherboards, can possibly give different results.. and so on… So as long as nobody in the open source community pick this up and starts maintaining such a template, you will have to do it on your own for your own HW.
Zabbix already provides the possibility to read out sensor data using the Zabbix Agent sensor item. You just have to find out which sensor on which device you want monitored and then create your own templates, one for every HW-type you want to monitor that uses different sensors and/or methods.
I think all possible answers are given here, any further discussing this would only take us farther away from IPFire, which is what these forums are for. For help in creating items, templates and/or using Zabbix itself, please refer to the excellent Zabbix documentation, search help on the Zabbix Community Forums or one of the many regional Zabbix Telegram/Discord or IRC channels. Check out the Zabbix blog for tutorials. Or the YouTube channels of Aigars Kadikis (Zabbix employee) or Dmitry Lambert (Former Zabbix employee) for many tutorials, tips and tricks.
Also, have a look at the Zabbix Community Templates, it contains many templates for many server hardware, probably monitoring things like CPU temp.