define contact{
contact_name nagiosadmin ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Nagios Admin ; Full name of user
email [email]rvenkitar@petermoyes.wa.edu.au[/email] ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
}
Without answering your question directly because Nagios Core isn’t very easy to configure and maintain (I’ve seen and discussed Nagios with several people who ended up with weird deployments because they didn’t have a deep understanding what to do), I’d recommend you consider various network monitoring systems that are built on Nagios instead.
The alternatives to Nagios Core are varied, from those that re-invented Nagios from the ground up but still retaining interoperability and structure (like Zabbix), those that created a better and more extensive UI (like the “official” NagiosXL). There are many more projects to choose from besides the two I mentioned,
If you take a look at those, you’ll kill 2 birds with one stone…
You’ll likely address your notifications problem which may or may not be related to configuring contacts correctly
If you’re not deeply experienced with Nagios, you’ll get easy to use management tools which in particular should guide you in configure profiles and various groupings which IMO is the most common failing of do-it-yourselfers.
You’ll likely get better tools to create NRPE and NSCA plugin configurations which can mean the difference between minutes or days/weeks(using only Core).
thanks TSU. On openSUSE, core’s email isn’t working, on Ubuntu, the Apache is not pointed correctly! Anyway, I will try something else, for a person not so experienced in Linux, this is just a pain reading thousands of pages and getting no where, whereas the information on their own website is not uptodat to the latest version of Linux and Nagios!
Notifications were turned ON, the emails were not being sent, so I guess the problem was with postfix.
But having setup on Ubuntu, there was issues with the notifications there as well, but I have got it all sorted now and its working.