Hi Greg, Sorry for not responding earlier about your Nagios problem, most of the Vitrage team is busy preparing to Boston.
We have already heard about the Ubuntu 16.04 issue but didn’t investigate it yet, so unfortunately I don’t have a solution for you at the moment. If you are only interested in having alarms in Vitrage, there are several options to achieve this. 1. Use Yujun’s suggestion 2. Raise a “compute down” alarm and let the Doctor datasource handle it. You need to: · Make sure ‘doctor’ is defined in the list of ‘types’ in /etc/vitrage/vitrage.conf (if not, add it and restart vitrage-graph) · Send an event to Vitrage using the CLI: vitrage event post --type="compute.host.down" --details='{"hostname":"<your_hostname>","source":"sample_monitor","cause":"link-down","severity":"critical","status":"down","monitor_id":"monitor-1","monitor_event_id":"123"}' 3. Raise an Aodh alarm with constant state ‘alarm’ · Make sure ‘aodh’ is defined in the list of ‘types’ in /etc/vitrage/vitrage.conf (if not, add it and restart vitrage-graph) · Call aodh CLI: aodh alarm create --type threshold --name 'cpu_alarm' --state alarm --description 'CPU utilization is above 1%' -m 'cpu_util' --period 60 --threshold 0.01 --comparison-operator gt --query 'resource_id=< instance uuid>' --enabled False Hope this helps. Best Regards, Ifat. From: "Yujun Zhang (ZTE)" <zhangyujun+...@gmail.com> Reply-To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org> Date: Thursday, 4 May 2017 at 1:56 To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org> Subject: Re: [openstack-dev] [vitrage] trouble installing Nagios on devstack on ubuntu 16.04 ... One easy way could be writing a scenario to raise deduced alarm based on a simple rule, e.g. when a host is discovered, raise an alarm saying host is up. Waines, Greg <greg.wai...@windriver.com<mailto:greg.wai...@windriver.com>>于2017年5月4日 周四04:35写道: I don’t think I saw any responses to this. Alternative question ... so I’ve got vitrage up and running fine ... What’s the easiest way to generate an alarm against a host ? ( OTHER than NAGIOS, due to problem in original email ) ??? let me know any ideas, Greg. From: Greg Waines <greg.wai...@windriver.com<mailto:greg.wai...@windriver.com>> Date: Tuesday, May 2, 2017 at 9:03 AM To: "openstack-dev@lists.openstack.org<mailto:openstack-dev@lists.openstack.org>" <openstack-dev@lists.openstack.org<mailto:openstack-dev@lists.openstack.org>> Subject: [openstack-dev] [vitrage] trouble installing Nagios on devstack on ubuntu 16.04 ... Hey ... I’m working thru the ‘Vitrage - Getting Started Guide’ https://docs.openstack.org/developer/vitrage/vitrage-first_steps.html Was able to get vitrage up and running and enabled in horizon ... on ubuntu 16.04 . ( I tried on ubuntu 14.04 and ‘./stack.sh’ warned that it had not been tested on trusty (14.04), I FORCE=yes it ... but it failed. ) Now trying to install Nagios in devstack https://docs.openstack.org/developer/vitrage/nagios-devstack-installation.html BUT it doesn’t seem like there is an OMD package available for ubuntu 16.04 ... and the trusty (14.04) package won’t install due to dependency issues. Any suggestions ? Greg. __________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe<http://openstack-dev-requ...@lists.openstack.org?subject:unsubscribe> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev -- Yujun Zhang
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev