README.md in cloudstack-nagios-0.7.8 vs README.md in cloudstack-nagios-0.8.0

- old
+ new

@@ -16,19 +16,19 @@ ## Installation Install the cloudstack-cli gem: -```bash +```sh $ gem install cloudstack-nagios ``` ## Setup Create the initial configuration: -```bash +```sh $ cs-nagios setup ``` cloudstack-nagios expects to find a configuartion file with the API URL and your CloudStack credentials in your home directory named .cloudstack-cli.yml. If the file is located elsewhere you can specify the loaction using the --config option. @@ -51,62 +51,36 @@ ### Basics See the help screen: -```bash +```sh $ cs-nagios ``` ### Generate all Nagios configuration files at once Generate all configuration files: -```bash -$ cs-nagios nagios_config generate_all +```sh +$ cs-nagios nagios_config generate all ``` +You can also generate each config file individualy. +The following types are awailable: -### Generate Nagios configuration files of each type - -Note that you can also use your own ERB templates using the '--template' option to generate the nagios confifuration files. - -Generate nagios host configuration for virtual routers: - -```bash -$ cs-nagios nagios_config router_hosts +```sh +$ cs-nagios nagios_config list +all +hostgroup +zone_hosts +router_hosts +router_services +capacities +async_jobs +storage_pools ``` -Generate nagios host configuration for virtual routers: - -```bash -$ cs-nagios nagios_config router_services -``` - -Generate nagios host configuration api hosts (one pseudo host per Cloudstack zone): - -```bash -$ cs-nagios nagios_config api_hosts -``` - -Generate nagios service configuration for storage pool checks: - -```bash -$ cs-nagios nagios_config storage_pool_services -``` - -Generate nagios service configuration for capacity checks: - -```bash -$ cs-nagios nagios_config capacity_services -``` - -Generate nagios service configuration for async job checks: - -```bash -$ cs-nagios nagios_config asyncjobs_services -``` - ### System VM checks For all vm checks access to the cloudstack management network is required in order to run the ckecks via ssh or snmp. #### Check system vms over ssh @@ -119,11 +93,11 @@ * rootfs_rw - check if the root file system is writeable * disk_usage - check the diks space usage of the root volume Example: -```bash +```sh $ cs-nagios check system_vm network --host 10.100.9.161 ``` #### Enabling snmpd checks for system vms @@ -138,31 +112,31 @@ Checks various global capacity values. Example: -```bash +```sh $ cs-nagios check capacity memory --zone ZUERICH_IX ``` ### Storage pool checks Checks the available disk space on Cloudstack storage pools. Example: -```bash +```sh $ cs-nagios check storage_pool --pool_name fs_cs_zone01_pod01 ``` ### Async jobs checks Checks the number of pending async jobs. Example: -```bash +```sh $ cs-nagios check async_jobs ``` ## References @@ -176,6 +150,6 @@ 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request ## License -Released under the MIT License. See the [LICENSE](https://bitbucket.org/swisstxt/cloudstack-cli/raw/master/LICENSE.txt) file for further details. +Released under the MIT License. See the [LICENSE](https://bitbucket.org/swisstxt/cloudstack-cli/raw/master/LICENSE.txt) file for further details. \ No newline at end of file