Ticket #890 (new patch)

Opened 5 months ago

Last modified 5 months ago

dev_cpu_ doesn't find sysclt after logrotation

Reported by: claudius Assigned to: nobody
Priority: normal Milestone: Munin 1.4.6
Component: plugins Version: 1.4.3
Severity: major Keywords: dev_cup_
Cc:

Description

dev_cpu_ doesn't find sysclt 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

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"