To get notified about a problem you have to be a user first off.
Define a user per the docs. Add that user "tech" to the contact.cfg file. Give him 24/7 timeperiod.
Define a service check and a host for that service. Put that host in a hostrgroup called "tech_servers".
define a contact group called "techs" in the contactgroups.cfg file. Put that user in this group as a member.
In the service defintion for the service, tell it the contact_group is "techs".
Now, click on the service and click on "Enable notifications for this service".
Down the service in some method and see if you are getting an email. If not, let us know the errors.
You don't have to define any macros, or rewrite nagios. That's been done already, so don't worry about the $ stuff at this point.
So as you can see, if a service fails, nagios will contact whatever you have in the services.cfg for "contact_groups", in this case "techs".
Since in the contactgroups.cfg you have defined a contactgroup called "techs" and "tech" is a a member as shown in that file, then "tech" will be notified.
Lastly since you defined a "contact_name" in the contacts.cfg called "tech" and his "service_notification_period" is 24/7, he/she will be notified and life is good.
Edited Fri Jul 22 2005, 09:00AM ]