Ticket #890 (closed patch: fixed)

Opened 2 years ago

Last modified 3 months ago

dev_cpu_ doesn't find sysclt after logrotation

Reported by: claudius Assigned to: kenyon
Priority: normal Milestone: Munin 1.4.7
Component: plugins Version: 1.4.3
Severity: normal Keywords: dev_cpu_
Cc:

Description (Last modified by kenyon)

dev_cpu_ doesn't find sysctl after log rotation, because $PATH changes after sighup. Patch to use absolute path of sysctl

Attachments

dev_cpu_.in.diff (0.5 kB) - added by claudius on 15/03/10 01:07:57.
dev_cpu_.in.diff
coretemp.patch (0.7 kB) - added by fedor.dikarev on 01/03/11 09:19:36.

Change History

15/03/10 01:07:57 changed by claudius

  • attachment dev_cpu_.in.diff added.

dev_cpu_.in.diff

15/03/10 01:12:59 changed by claudius

forgot to include /sbin/sysctl -n "dev.cpu.$cpu.$func" |sed 's/C//g'

sysctl -n dev.cpu.0.temperature returns 47.0C and we have to strip of the trailing "C"

01/03/11 09:19:15 changed by fedor.dikarev

I've got simmilar problem with "coretemp" plugin, but I think my patch more elegant -- it allows to override this values from plugins.conf file.

01/03/11 09:19:36 changed by fedor.dikarev

  • attachment coretemp.patch added.

18/10/11 09:11:20 changed by kenyon

  • keywords changed from dev_cup_ to dev_cpu_.
  • owner changed from nobody to kenyon.
  • status changed from new to assigned.
  • description changed.
  • severity changed from major to normal.

18/10/11 09:13:19 changed by kenyon

  • status changed from assigned to closed.
  • resolution set to fixed.

Patches applied in r4440, thanks.