How to list recipients of a service from all clients
list Raymond Lee
If I go to the "info" test for one of my clients, I see the services and recipients in the Alerting section. If I want to see the recipients for the "disk" service for every client I'm monitoring, is there an easy CLI way of doing that? Thanks, Ray This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
list Asif Iqbal
hobbitd_alert --test host service
▸
On Fri, Feb 13, 2009 at 10:22 AM, Lee, Raymond <user-d4a5ab5607a1@xymon.invalid> wrote:If I go to the "info" test for one of my clients, I see the services and recipients in the Alerting section. If I want to see the recipients for the "disk" service for every client I'm monitoring, is there an easy CLI way of doing that? Thanks, Ray This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
list Henrik Størner
▸
On Fri, Feb 13, 2009 at 09:22:09AM -0600, Lee, Raymond wrote:
If I go to the "info" test for one of my clients, I see the services and recipients in the Alerting section. If I want to see the recipients for the "disk" service for every client I'm monitoring, is there an easy CLI way of doing that?
You mean like a report of who gets alerts for all of the hosts ? It's in the Reports -> Config Report (along with a lot of other info). Regards, Henrik
list Raymond Lee
Hi Henrik,
We don't have Reports -> Config Report. We're running Hobbit server 4.2.0. Was the Config Report added after that?
I tried what Asif prescribed, and it got the job done for me:
for client in `cat $HOBBIT_HOME/server/etc/bb-hosts | egrep -v "^#" | egrep "^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+" | awk '{print $2}'`
do
$HOBBIT_HOME/server/bin/hobbitd_alert --test $client disk --color=red | grep mail
done
Thanks,
Ray
▸
-----Original Message----- From: Henrik Størner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Friday, February 13, 2009 11:00 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] How to list recipients of a service from all clients On Fri, Feb 13, 2009 at 09:22:09AM -0600, Lee, Raymond wrote:If I go to the "info" test for one of my clients, I see the services and recipients in the Alerting section. If I want to see the recipients for the "disk" service for every client I'm monitoring, is there an easy CLI way of doing that?You mean like a report of who gets alerts for all of the hosts ? It's in the Reports -> Config Report (along with a lot of other info). Regards, Henrik
This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.