|
Re: alerts per node: msg#00067db.rddtool.munin.general
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 :-) -- Bjørn ------------------------------------------------------------------------- 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 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | alerts per node: 00067, martin campbell |
|---|---|
| Next by Date: | Re: Can't locate RRDs.pm or HTML/Template.pm: 00067, Victor |
| Previous by Thread: | alerts per nodei: 00067, martin campbell |
| Next by Thread: | Re: alerts per node: 00067, martin campbell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |