[MacPorts] #32141: munin node fail to update with "Plugin XYZ Can't drop privileges: setrgid()"

MacPorts noreply at macports.org
Sat Nov 19 17:19:26 PST 2011


#32141: munin node fail to update with "Plugin XYZ Can't drop privileges:
setrgid()"
-----------------------------------+----------------------------------------
 Reporter:  jacques2020@…          |       Owner:  alpha@…           
     Type:  defect                 |      Status:  new               
 Priority:  Normal                 |   Milestone:                    
Component:  ports                  |     Version:  2.0.3             
 Keywords:  Lion                   |        Port:  munin             
-----------------------------------+----------------------------------------
Changes (by ryandesign@…):

  * owner:  macports-tickets@… => alpha@…
  * keywords:  munin 10.7 Lion => Lion


Old description:

> Hi
>
> When calling the any plugin on Lion via telnet, it results in the same
> error (see below some modifications needed to successfully install)
>
> Trying 129.20.159.199...
> Connected to pr159199.med.univ-rennes1.fr.
> Escape character is '^]'.
> # munin node at pr159199.med.univ-rennes1.fr
> fetch df
> # Bad exit
> .
> cap
> cap multigraph
> list
> cupsys_pages df df_inode if_en0 if_err_en0 load lpstat netstat ntp_offset
> postfix_mailqueue processes test users
>
> while it run fine using munin-run on the node computer
>
> sudo -u munin /opt/local/sbin/munin-run df
> Password:
> _dev_disk0s2.value 4
> _dev_disk3.value 100
> _dev_disk1s3.value 19
> _dev_disk2s2.value 100
> _dev_disk4s2.value 33
>
> and here is the corresponding munin-node.log
>
> 2011/11/19-19:31:45 CONNECT TCP Peer: "129.20.159.165:48055" Local:
> "129.20.159.199:4949"
> 2011/11/19-19:31:45 [2392] DEBUG: > # munin node at pr159199.med.univ-
> rennes1.fr
> 2011/11/19-19:31:53 [2392] DEBUG: < fetch df
> ".11/11/19-19:31:53 [2392] DEBUG: Running command "fetch df
> 2011/11/19-19:31:53 [2392] Error output from df:
> 2011/11/19-19:31:53 [2392]      # Set /rgid/ruid/egid/euid/ to
> /500/4294967294/500 500 /4294967294/
> 2011/11/19-19:31:53 [2392]      2011/11/19-19:31:53 [2393] Plugin 'df'
> Can't drop privileges: setrgid() not implemented at
> /opt/local/lib/perl5/site_perl/5.12.3/Munin/Node/OS.pm line 272, <STDIN>
> line 1.\n. Bailing out.
> 2011/11/19-19:31:53 [2392] Service 'df' exited with status 1/0.
> 2011/11/19-19:31:53 [2392] DEBUG: > # Bad exit
> 2011/11/19-19:31:53 [2392] DEBUG: > .
> 2011/11/19-19:31:58 [2392] DEBUG: < cap
> ".11/11/19-19:31:58 [2392] DEBUG: Running command "cap
> 2011/11/19-19:31:58 [2392] DEBUG: > cap multigraph
> 2011/11/19-19:32:01 [2392] DEBUG: < list
> ".11/11/19-19:32:01 [2392] DEBUG: Running command "list
> 2011/11/19-19:32:01 [2392] DEBUG: > cupsys_pages df df_inode if_en0
> if_err_en0 load lpstat netstat ntp_offset postfix_mailqueue processes
> test users
> 2011/11/19-19:32:01 [2392] DEBUG: >
> 2
>

> ======================================
>
> I experience difficulties in installing minion node on snow leopard (PPC
> and intel core 2 duo as well as Lion / intel Xeon and i5)
>
> First of all, after installing, I tried to run
> sudo munin-node-configure --suggest --shell | sh
>
> I got an error
>
> Could not open plugin configuration directory: No such file or directory
> at /opt/local/lib/perl5/site_perl/5.12.3/Munin/Node/Service.pm line 81
>
> Looking at the code, I assumed that
>
> sudo mkdir /opt/local/etc/munin/plugin-conf.d
>
> could fix the issue… In fact the plugin folder could not be written by an
> admin and sh seems to be sudo, like
>
> sudo munin-node-configure --suggest --shell | sudo sh
>
> on Lion, none of the plugin succeeded in autoconf with message
> Non-zero exit during autoconf (1)
> So, I also had to run as munin user
>
> sudo -u munin munin-node-configure --suggest --shell | sudo sh
>
> (but there is still an  issue with asking for password if the precedent
> sudo is not recent enough…)
>
> it might be interesting to dig into that or at least to when it is
> suggested to run the munin-node-configure to add the proper command.
>
> thank you for your help

New description:

 Hi

 When calling the any plugin on Lion via telnet, it results in the same
 error (see below some modifications needed to successfully install)

 {{{
 Trying 129.20.159.199...
 Connected to pr159199.med.univ-rennes1.fr.
 Escape character is '^]'.
 # munin node at pr159199.med.univ-rennes1.fr
 fetch df
 # Bad exit
 .
 cap
 cap multigraph
 list
 cupsys_pages df df_inode if_en0 if_err_en0 load lpstat netstat ntp_offset
 postfix_mailqueue processes test users
 }}}

 while it run fine using munin-run on the node computer

 {{{
 sudo -u munin /opt/local/sbin/munin-run df
 Password:
 _dev_disk0s2.value 4
 _dev_disk3.value 100
 _dev_disk1s3.value 19
 _dev_disk2s2.value 100
 _dev_disk4s2.value 33
 }}}

 and here is the corresponding munin-node.log

 {{{
 2011/11/19-19:31:45 CONNECT TCP Peer: "129.20.159.165:48055" Local:
 "129.20.159.199:4949"
 2011/11/19-19:31:45 [2392] DEBUG: > # munin node at pr159199.med.univ-
 rennes1.fr
 2011/11/19-19:31:53 [2392] DEBUG: < fetch df
 ".11/11/19-19:31:53 [2392] DEBUG: Running command "fetch df
 2011/11/19-19:31:53 [2392] Error output from df:
 2011/11/19-19:31:53 [2392]      # Set /rgid/ruid/egid/euid/ to
 /500/4294967294/500 500 /4294967294/
 2011/11/19-19:31:53 [2392]      2011/11/19-19:31:53 [2393] Plugin 'df'
 Can't drop privileges: setrgid() not implemented at
 /opt/local/lib/perl5/site_perl/5.12.3/Munin/Node/OS.pm line 272, <STDIN>
 line 1.\n. Bailing out.
 2011/11/19-19:31:53 [2392] Service 'df' exited with status 1/0.
 2011/11/19-19:31:53 [2392] DEBUG: > # Bad exit
 2011/11/19-19:31:53 [2392] DEBUG: > .
 2011/11/19-19:31:58 [2392] DEBUG: < cap
 ".11/11/19-19:31:58 [2392] DEBUG: Running command "cap
 2011/11/19-19:31:58 [2392] DEBUG: > cap multigraph
 2011/11/19-19:32:01 [2392] DEBUG: < list
 ".11/11/19-19:32:01 [2392] DEBUG: Running command "list
 2011/11/19-19:32:01 [2392] DEBUG: > cupsys_pages df df_inode if_en0
 if_err_en0 load lpstat netstat ntp_offset postfix_mailqueue processes test
 users
 2011/11/19-19:32:01 [2392] DEBUG: >
 2
 }}}

 I experience difficulties in installing minion node on snow leopard (PPC
 and intel core 2 duo as well as Lion / intel Xeon and i5)

 First of all, after installing, I tried to run
 {{{
 sudo munin-node-configure --suggest --shell | sh
 }}}

 I got an error

 {{{
 Could not open plugin configuration directory: No such file or directory
 at /opt/local/lib/perl5/site_perl/5.12.3/Munin/Node/Service.pm line 81
 }}}

 Looking at the code, I assumed that

 {{{
 sudo mkdir /opt/local/etc/munin/plugin-conf.d
 }}}

 could fix the issue… In fact the plugin folder could not be written by an
 admin and sh seems to be sudo, like

 {{{
 sudo munin-node-configure --suggest --shell | sudo sh
 }}}

 on Lion, none of the plugin succeeded in autoconf with message

 {{{
 Non-zero exit during autoconf (1)
 }}}

 So, I also had to run as munin user

 {{{
 sudo -u munin munin-node-configure --suggest --shell | sudo sh
 }}}

 (but there is still an  issue with asking for password if the precedent
 sudo is not recent enough…)

 it might be interesting to dig into that or at least to when it is
 suggested to run the munin-node-configure to add the proper command.

 thank you for your help

--

Comment:

 Please remember to use WikiFormatting so your posts are legible.

 There is no such thing as Snow Leopard for PowerPC.

-- 
Ticket URL: <https://trac.macports.org/ticket/32141#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list