Skip to content
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

No CPUs were found for temperature test (mini-IPMI) #71

Open
BassT23 opened this issue Sep 10, 2022 · 3 comments
Open

No CPUs were found for temperature test (mini-IPMI) #71

BassT23 opened this issue Sep 10, 2022 · 3 comments

Comments

@BassT23
Copy link

BassT23 commented Sep 10, 2022

Please complete the following information:

  • OS: Ubuntu 22.04
  • Zabbix server version: 5.2.7
  • Active or passive check: Active
  • Using zabbix proxy: No proxy
    Additional context
    Raspberry Pi 4 B 4GB
@BassT23 BassT23 added the bug label Sep 10, 2022
@nobody43
Copy link
Owner

Do you have an output on:

$ cat /sys/class/hwmon/hwmon0/temp1_input

Then try using:

UserParameter=mini.cputemp.discovery[*], echo '{"data": [{"{#CPU}": 0 }]}' && echo \"$2\" mini.cpu.temp[cpu0,MAX] $(( `cat /sys/class/hwmon/hwmon0/temp1_input` / 1000 )) | zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -i - &> /dev/null

BTW, what's your sensors -u output?

@BassT23
Copy link
Author

BassT23 commented Sep 11, 2022

hwmon output is:
58913

sensors -u:

Adapter: Virtual device
temp1:
  temp1_input: 58.913

rpi_volt-isa-0000
Adapter: ISA adapter
in0:
  in0_lcrit_alarm: 0.000

sry, I'm no expert in zabbix programming. I set the code in /etc/zabbix/zabbix_agentd.conf.d/userparameter_mini-ipmi2.conf (third line and disabled 2. line) and restarted the agent service. Is this correct? Do anything else?

@nobody43
Copy link
Owner

If there's no errors - all should be fine. You can test it like the others:
https://github.com/nobodysu/zabbix-mini-IPMI#testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants