On 1 Jun 2010, at 16:02, Matt Rose wrote: > As far as I can tell, the API XML .rng doesn't have event handler > configuration defined for the create action. Granted, this check was > done by simply doing a search for 'event' and coming up with nothing, > then scanning over it to see if it was named something else. > > Did I miss it? If so, what's the XML schema for defining it at host > creation?
I believe we may have some work coming up soon to improve the API - at the moment there are several pieces of functionality missing such as this one. > If I didn't miss it, do I have any option but to find a service check ID > and host ID and insert an appropriate mapping into > opsview.hostserviceeventhandlers, checking opsview.hostservicechecks to > make sure the service check I'm handling wasn't inherited from a > template, and inserting a service check mapping into > opsview.hostservicecheck if needed? Yes, it is possible to do it that way, but please make sure you back up your opsview database before making any changes. You are best using a perl script and the provided perl libraries to perform such as task as there are various helper functions for resolving templates and so on. There may be something useful in the utils directory you can use as a base. > > Finally, if that's my only option, do I need to do anything else to let > Opsview know the configuration for the host has been changed behind its > back so that the host's configuration gets properly created when the > configs are reloaded? At reload time all the config is pulled from the database so as long as the database changes are sane then you should be ok. In reference to the UI seeing the changes you should set 'uncommitted' on relevant objects in the DB so they get highlighted in the UI. We generally don't recommend manipulating the database like this, but it is probably your only option at this time. Duncs -- Duncan Ferguson Senior Developer/Support Engineer
<<inline: opsview-logo-email_100px.png>>
Global Headquarters: Unit 69 Suttons Business Park | Reading | Berkshire | RG6 1AZ | UK UK: +44 (0) 845 057 7887 USA: +1 866 879 9184 Fax: +44 (0) 1189 074 071 email: tom.call...@opsview.com Skype: tom.callway Web: www.opsview.com This e-mail is confidential, intended only for the named recipient(s) above and may contain information that is privileged and confidential. If you receive this message in error, or are not the named recipient(s), please notify the sender at the phone number above, do not copy this message, do not disclose its contents to anyone, and delete this e-mail message from your computer. Although we routinely screens for viruses, addressees should scan this e-mail and any attachments for viruses. Opsera makes no representation or warranty as to the absence of viruses in this e-mail or any attachments.
_______________________________________________ Opsview-users mailing list Opsview-users@lists.opsview.org http://lists.opsview.org/lists/listinfo/opsview-users