- 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.
- Ansible Configuration Management
- Splunk 7 Essentials(Third Edition)
- 三菱FX3U/5U PLC從入門到精通
- 網絡服務器架設(Windows Server+Linux Server)
- JavaScript實例自學手冊
- Hadoop 2.x Administration Cookbook
- WOW!Illustrator CS6完全自學寶典
- 可編程控制器技術應用(西門子S7系列)
- Hadoop Real-World Solutions Cookbook(Second Edition)
- 大學計算機應用基礎
- 水晶石精粹:3ds max & ZBrush三維數字靜幀藝術
- Blender Compositing and Post Processing
- MATLAB/Simulink權威指南:開發環境、程序設計、系統仿真與案例實戰
- INSTANT Puppet 3 Starter
- Machine Learning with Spark(Second Edition)