AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 461817
Accepted
smokris
smokris
Asked: 2012-12-31 10:53:22 +0800 CST2012-12-31 10:53:22 +0800 CST 2012-12-31 10:53:22 +0800 CST

如何在 SmartOS Global Zone 上运行 munin-node?

  • 772

我想munin-node在我的 SmartOS Global Zone 上运行,以远程监控硬件和软件状态。

我试过pkgin in munin-node-1.4.5了,但安装失败,因为它无法创建munin用户帐户(这是有道理的,因为/etc/passwd它是 root ramdisk 的一部分)。

这样做的正确方法是什么?

munin
  • 1 1 个回答
  • 448 Views

1 个回答

  • Voted
  1. Best Answer
    smokris
    2012-12-31T11:09:09+08:002012-12-31T11:09:09+08:00

    我能够通过从源代码安装来让它工作。这是我使用的食谱:

    pkgin in gmake perl
    cpan HTML::Template Log::Log4perl Net::Server Net::Server::Fork
    mkdir -p /opt/local/src
    cd /opt/local/src
    wget http://sourceforge.net/projects/munin/files/stable/2.0.9/munin-2.0.9.tar.gz/download
    tar zxvf munin-2.0.9.tar.gz
    cd munin-2.0.9
    vi Makefile.config
        # change PREFIX to `/opt/local`
        # change CONFDIR to `/opt/local/etc/munin`
        # change LIBDIR to `$(PREFIX)/lib/munin`
        # change STATEDIR to `$(DESTDIR)/var/run`
        # change USER and GROUP to `nobody`
    make
    make install-common-prime install-node-prime install-plugins-prime
    vi /opt/local/etc/munin/munin-node.conf
        # set access controls
    munin-node-configure --shell | sh -x
    mkdir -p /opt/custom/smf
    

    并/opt/custom/smf/munin-node.xml使用以下内容创建:

    <?xml version='1.0'?>
    <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
    <service_bundle type='manifest' name='export'>
      <service name='network/munin-node' type='service' version='0'>
        <create_default_instance enabled='true'/>
        <single_instance/>
        <exec_method name='start' type='method' exec='/opt/local/sbin/munin-node' timeout_seconds='0'>
          <method_context/>
        </exec_method>
        <exec_method name='stop' type='method' exec=':kill' timeout_seconds='0'>
          <method_context/>
        </exec_method>
      </service>
    </service_bundle>
    
    • 1

相关问题

  • munin 中的 irqstat 图代表什么?

  • 什么是 RES 中断(来自 Munin)

  • Munin 和 Mac OSX 的 CPU(或内存/等)插件?

  • 在 RHEL 上安装 Munin 以跟踪多台服务器的性能需要哪些步骤

  • 有间歇性客户的穆宁

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve