官术网_书友最值得收藏!

  • Monitoring with Opsview
  • Alan Wijntje
  • 237字
  • 2021-07-21 18:06:23

Creating and installing Opspacks

Once you have created all kinds of host templates, service checks, and plugins, there might be times that you wish to copy them to another Opsview system or keep a backup.

Opspacks is a lesser known feature of Opsview. They are tarballs containing the following items (some of these will be discussed in the next chapter):

  • Plugins
  • Keywords
  • Service groups
  • Attributes
  • Service checks
  • Host templates

To create an Opspack, simply update your Opsview system with host templates, plugins, and so on. Then log in to your system using SSH and become the Nagios user (or log in as the Nagios user directly).

Running the following command will create a subdirectory in your current directory, which is named after the specified host template:

/usr/local/nagios/bin/create_opspack --username=admin --password=initial 'host template name'

On successful execution of the command, go to the new subdirectory and edit the info file if needed. The info file contains the version number, describes any dependencies, or tells you which version of Opsview is required.

Then, simply run the following command to create a tarball:

make mpack

You can now send the tarball to your other system and install it there using the following command:

/usr/local/nagios/bin/install_opspack tarball_name

As you can see, exporting and importing host templates (and their associated checks, attributes, and so on) is very easy and you can use this method to create Opspacks for any host template you have created.

主站蜘蛛池模板: 乳源| 阿拉善右旗| 山阴县| 永年县| 敦煌市| 乐业县| 社会| 镇巴县| 德昌县| 莆田市| 福海县| 莒南县| 张家口市| 崇州市| 肥西县| 天津市| 庆阳市| 潜山县| 独山县| 黑山县| 廉江市| 固镇县| 浏阳市| 轮台县| 拜泉县| 广宁县| 都江堰市| 手游| 菏泽市| 巧家县| 五家渠市| 布尔津县| 调兵山市| 东海县| 东安县| 儋州市| 柳河县| 隆尧县| 乌审旗| 阿拉善右旗| 红桥区|