Hi @neeloj,
not in livestatus but if you are using it on the CLI, you can CLI tools to achieve that.
I.e.
take the result of your first query and pipe it to:
wait, so it’s not just about services?
Can you create some mock-up output of what you need or explain the problem you are trying to solve? Maybe there is a better solution that livestatus queries.
Hi @neeloj,
ok, I think you will need multiple queries to do that, simply because the “services” table in livestatus holds the contact_groups and contacts, but not the contact mail address. The mail address is only available in the “contacts” table. As far as I know and Livestatus command reference seems to support that, livestatus query language, doesn’t support SQL style joins. So you have to query your services first and then combine the output with a query against the contacts table. I would suggest python for this. There are examples and code at ~/share/doc/check_mk/livestatus within each checkmk installation
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.