CloudStack: get number of instances script

Heres a handy piece of Python that will output a few totals of instances running in CloudStack. It’s handy for Nagios monitoring or some Cacti graphing. Figures include:

  • VMware instances
  • XenServer instances
  • Virtual routers
  • System VMs

I don’t have any KVM boxes in my lab so I haven’t added that in yet. I’m using authenticationless port 8096 or the API because I’m lazy, so you’ll need that enabled to use this.

 

Yes I know using CloudMonkey is probably easier but I like my way better :)

Posted in CloudStack

Leave a Reply

Your email address will not be published.