Opened 3 years ago

Last modified 3 years ago

#947 new defect

http_loadtime fails on FreeBSD

Reported by: mikkelhoegh Owned by: nobody
Priority: normal Milestone: Munin 1.4.7
Component: plugins Version: 1.4.4
Severity: normal Keywords:
Cc:

Description

I have issues with http_loadtime on FreeBSD 8.1. Every time data collection runs on the node, I get an error like this:

Error output from http_loadtime:
     usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
            mktemp [-d] [-q] [-u] -t prefix

Apparently, the semantics of mktemp are a bit different from Linux, in that mktemp requires either a prefix or template argument.

Change History (2)

comment:1 Changed 3 years ago by mikkelhoegh

A fix could be to change the mktemp line to something like

mktemp -dt munin_http_loadtime.XXXXXX

That does still have different semantics, but it works both on FreeBSD and Linux:

FreeBSD output: /tmp/munin_http_loadtime.XXXXXX.E0WOtFOK
Linux output: /tmp/munin_http_loadtime.IJfSJM

comment:2 Changed 3 years ago by mikkelhoegh

Ahm, where’s the edit button?

FreeBSD output: /tmp/munin_http_loadtime.XXXXXX.E0WOtFOK

Linux output: /tmp/munin_http_loadtime.IJfSJM

Note: See TracTickets for help on using tickets.