|
Re: alerts per node: msg#00071db.rddtool.munin.general
On Thu, 2006-12-14 at 19:39 +0100, Bjørn Ruberg wrote: > martin campbell wrote: > > hi, is it possible to configure alerting from node1 to be directed at > > contactA & alerts from node2 to be directed at contactB? > > > > i'm guessing its possible to create multiple contacts via 'contacts' in > > the global section of munin.conf but its not obvious how i can configure > > a node to only alert a specific recipient. > > You need to use the configuration directive "contacts". > > Valid values to this directive is any contact defined in munin.conf, or > "no" to disable warnings. > > Let's say you want to define Nagios as one alert target, and your > mailbox as another. The following configuration i munin.conf will > support that: > > --- start of config extract --- > > # This contact is labeled "nagios" > contact.nagios.command /usr/bin/send_nsca -H your.nagios-host.here \ > -c /etc/send_nsca.cfg > > # This contact is labeled "yourmail" > contact.yourmail.command mail -s "Bad things!" test@xxxxxxxxxxx > > # Generally, send to all contacts. > # Contacts should be separated with whitespace. > # The default behaviour is to send to all contacts that have > # "contact.[contact name].command" lines. > contacts nagios yourmail > > --- end of config extract --- > > Then, we configure Munin to only send to Nagios for all web servers, by > defining the active contacts for the group. > > --- start another config extract --- > > # By using the ';' the configuration applies to all hosts in the group > [Web servers;] > contacts nagios > > [Web servers;node1.example.com] > address 10.0.0.10 > > [Web servers;node2.example.com] > address 10.0.0.11 > > --- end of another config extract --- > > And for SQL servers, only send mail to you: > > --- start of yet another config extract --- > > [SQL servers;] > contacts yourmail > > [SQL servers;sql1.example.com] > address 10.0.0.20 > > # One of them is a test server and no warnings should ever be sent > [SQL servers;sql2.example.com] > address 10.0.0.21 > contacts no > # except for disk space, where warnings should be sent to Nagios > df.contacts nagios > > --- end of yet another config extract --- > > Hope this helps :-) thanks bjorn - this is very helpful. i assume from that config extract that we can take the granularity even further & have for example: # this contact is labeled "mailDBAs" contact.mailDBAs.command mail -s "Bad things!" dbas@xxxxxxxxxxx # this contact is labeled "mailWEBteam" contact.mailWEBteam.command mail -s "Bad things!" web@xxxxxxxxxxx & then configure specific nodes or even service contacts (eg. 'df.contacts mailWEBteam') to go to different mailboxes? thanks again for your reply. martin. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ munin-users mailing list munin-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/munin-users |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Can't call method "can_read": 00071, Johann Spies |
|---|---|
| Next by Date: | Munin: Permission denied in writing to web directory: 00071, Ben Prater |
| Previous by Thread: | Re: alerts per nodei: 00071, Bjørn Ruberg |
| Next by Thread: | Munin: Permission denied in writing to web directory: 00071, Ben Prater |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |