Providing this isn't a production host, I'd use locate to find the file
posix.rb (that's your built-in file provider), then insert some puts
statements to see if you can find out exactly where in the code it's
failing.
On Friday, March 27, 2015 at 3:49:24 PM UTC+11, Gabriel Filion wrote:
>
> On 27/03/15 12:40 AM, Gabriel Filion wrote:
> >> Failing that, strace'ing might show you something more useful.
> > I'll see what I can find with strace...
>
> unfortunately, nothing really useful..
>
> in the output below, the first file access gives the same error as the
> one failing, but seems to work ok:
>
> lstat("/etc/munin/plugin-conf.d/if_err_eth0.conf", 0x7fff125de9c0) = -1
> ENOENT (No such file or directory)
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> gettimeofday({1427430950, 856657}, NULL) = 0
> gettimeofday({1427430950, 856828}, NULL) = 0
> gettimeofday({1427430950, 856904}, NULL) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> gettimeofday({1427430950, 857379}, NULL) = 0
> gettimeofday({1427430950, 857540}, NULL) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> gettimeofday({1427430950, 857827}, NULL) = 0
> gettimeofday({1427430950, 857970}, NULL) = 0
> lstat("/etc/munin/plugin-conf.d/uptime.conf", 0x7fff125de9c0) = -1
> ENOENT (No such file or directory)
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> gettimeofday({1427430950, 858358}, NULL) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> gettimeofday({1427430950, 858793}, NULL) = 0
> gettimeofday({1427430950, 859145}, NULL) = 0
> sendto(3, "<27>Mar 27 00:35:50 puppet-agent"..., 191, MSG_NOSIGNAL,
> NULL, 0) = 191
> write(1, "\33[1;35merr: /Stage[main]/Site_mu"..., 165err:
> /Stage[main]/Site_munin/Munin::Plugin[uptime]/File[/etc/munin/plugin-conf.d/uptime.conf]:
>
>
> Could not
> evaluate: undefined method `[]=' for :chec:Symbol) = 165
> write(1, "\n", 1
> ) = 1
> gettimeofday({1427430950, 859715}, NULL) = 0
> gettimeofday({1427430950, 859788}, NULL) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> gettimeofday({1427430950, 860310}, NULL) = 0
> gettimeofday({1427430950, 860568}, NULL) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> gettimeofday({1427430950, 860877}, NULL) = 0
> gettimeofday({1427430950, 861091}, NULL) = 0
>
> --
> Gabriel Filion
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/c065c1cd-7611-4d82-a9db-144ba0f22c2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.