Answer the question
In order to leave comments, you need to log in
How to transfer zabbix server configuration? How to add temperature monitoring?
Colleagues, I am setting up a Zabbix server for one serial piece of hardware. The task is to monitor other pieces of iron in a serial local network (with hard-coded IP, interfaces, problems, etc.). There is a problem of portability and a backup of the given server. Exporting the configuration gives some kind of liquid xml file. And you need to transfer the network scheme, settings, etc. Those. just copy from one product to another (regardless of the server OS version and family, i.e., for example, transfer from ubunta to centos). Are there any simple and affordable recipes for these purposes?
Also, in order not to produce questions, I will ask: how to monitor the temperature of the processor? Found one solution . As a result, I corrected the agent config a little for myself:
UserParameter=system.temp0, sensors | grep -m 1 "temp1" | awk '{print $2}' | cut -c 2-3
I set up the server with the sensor.core0 key. I even monitored the temperature for a while (several minutes), and then fell off:
With the inscription "Unsupported item key." I understand that I would immediately refuse to work, but even the schedule ran. CHADNT?
Thank you!
Answer the question
In order to leave comments, you need to log in
Temperature solution:
add
two lines to the end of the /etc/zabbix/zabbix_agentd.conf file:
UnsafeUserParameters=1
UserParameter=system.temp0, sensors | grep -m 1 "temp1" | awk '{print $2}' | cut -c 2-3
And after that we add the data element with the system.temp0 key. Everything works successfully!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question