Networking :: Setting Up A Mail Notification Nagios On A Ubuntu Machine?
Feb 11, 2011
I I'm currently working on Nagios Core 3.2.2, and I'm trying to set up a mail notification. I already install postfix and mailx. And I'm able to send a mail via Ubuntu. I checked this with the command: echo "mail test" | mailx -s "test subject" mail address.But I don't know what to do next. I'v tried many different suggestions that I found on goolge, but nothing seems to work.
I'm currently working with Nagios Core 3.2.2 and I'm trying to set up a mail notification.
My current settings:
Commands
Quote:
Notification Type: $NOTIFICATIONTYPE$
Date/Time: $LONGDATETIME$
Notification Type: $NOTIFICATIONTYPE$
Additional Info:
Services
Quote:
Host
Quote:
Quote:
I have 2 problems:
I'm getting mail that the PC is OK every 3 minutes.
And I don't know what I should config in Service and host .cfg. Sow that I will get a good description of the problem in the mail that Nagios is sending me.
I've gotten myself involved in the Nagios monitoring tools and somewhat managed to configure the Nagios host, but I'm still having some issues with the email notifications.
From what I've read/researched, one of the favourite methods to get the email notification up is by using sendmail/postfix. I've went through it and learned that they are MTAs. What I actually needed is just a basic email client, and I would email the notices directly to an email address over the internet. Thus, I wont be needing something as complex like sendmail/postfix.
I gotten my hands on "Nail mail". I've successfully configured it to be able to send emails from my linux machine over the internet. However, when I copied the same command lines to nagios's contact.cfg, it did not work.
This is the command line that I'm using. Let me explain what I'm trying to achieve below. Firstly, I would save all the text notifications into a text file(green), and then email it out. The problem is NailMail command (red) does not work on Nagios,but the command line works in the terminal command on my Nagios account. Has anyone attempted using Nail mail with Nagios?
How to set crontab not send mail notification to the owner script if the script success running? because I'm monitoring mail server, and notification from cron is not necessary for me. I'm using ubuntu 10.04 server
I want to have like 4 machines, each one of them with Nagios and nrpe (plugin+daemon) installed so that every one of the machines could be able to monitor all of the others.. Is there any problem doing this? Or having nrpe+nagios in the same machine is ok?
I have got a nagios server running on my network, The configuration seems to be okay but each time there is a service alert notification, and an e-mail is sent to the contact group, Nagios continuously sends e-mail over and over again. Do anyone know of a way to set Nagios directives to only send one e-mail per alert without it flooding mail boxes.
I install Nagios Core Version 3.2.3 in CentOS 5.5 via rpmforge repo configure ssmpt to sent mail via my gmail account. i test and don't see any in it even some notification to nagiosadmin is get deliver now i create one user in contacts.cfg
Code:
I also add one contact groups
Code:
Now i add one windows xp machine on nagios for monitor (i install NSClient++ 0.3.8.75 and it working fine)
Here is my windows.cfg
Code:
But my problem is when my host goes down i m not getting any notification to my define contactgroup,
I have a setup with Centos 5.5, Nagios 3.2.3, sendmail 8.13.8. When a insident is happening Nagios notify-by-mail is triggered and Nagios sends via sendmail. Unfortunately there is a trailing $-sign added to the $CONTACTEMAIL. Sendmail cannot mail to xxx@mail.address$
A hack is to insert mailaddress in misccommands.cfg but I would like to have a more clean way.
Nagios has been up and running for quite sometime now and no issues till this month. For some reason, Nagios kept failing to send notifications out to our department. Out of curiosity I've sent the email out manually and tailed the mail.log then found out that every email being sent is getting a "Connection Refused." Can this be a permission issue? If so where and why all of the sudden it just stopped working as none has changed in the OS (Ubuntu Core).
Is there a way to trigger Nagios to "Auto Acknowledge" any host alerts after x amount of times? Sometimes system has been down in the mid of the night but no one really has responded to the notification which might mean bunch of emails flown through in each inbox within the department coming from these alerts.
Somebody gave me an old Celeron 333MHz system w/ 96 MB RAM and I thought I would set it up as a little torrent server. So I installed Ubuntu server on it, but it does not see the NIC. I know the NIC functions because the person was using it hooked up to a network until a few days ago. Unfortunately, it's an ISA-based NIC and not PCI and my understanding is that I have to pass it IRQ and DMA settings to get it to work. Unfortunately, I wiped the windows 98 partition without thinking of snagging those settings. First of all, lspci does not show the hardware AT ALL. Here's the output I get:
The machine is an old 'Compaq Presario 5050' with a really crappy BIOS that doesn't really offer any help. I read a post somewhere that trying to load the 'ne' driver should work, so I tried:
I have installed Ubuntu 10.04 Server on an older desktop with the intent of making it into a firewall box. What I would like to do is hook one nic into the modem, and the other nic into my router. I'm not sure if I want to setup the 2 nics as bridged.
I installed the "mail notification" applet from synaptic and I like it best because it monitors multiple email accounts, something I find hard to find. I do have one question though, how do I get it to start up with every gnome session?
I can't get rid of the "Mail Notification Properties" Window at startup. Every time the system comes up, there is the window for the settings. It's just empty as I don't want any more mail notifications than Thunderbird has.
I looked into the Mail Notification Properties and haven't found any settings to get rid of the window. And I disabled "Mail Notification" in System > Preferences.
Still this window keeps coming back over and over again.
It even survived the upgrade from Karmic to Lucid. How can I get rid of it?
I use the Gnome Mail Notification Applet and have recently moved from a wired desktop machine to a wireless laptop.
The problem I have is that the Mail Notification shows an error because it tries to check mail immediately, the network hasn't finished connecting at this time though.
Is there a way to add a delay to this? I can't see one.
Or if anyone can suggest an alternative that is just as good (or better) and allows for a delay?
I have three machines say A B and C. I want to make machine B as a router for A and C, so that the ping packets from C to A should be going via B. I have directly connected two interfaces(eth4) of A and B and similarly two interfaces(eth5) of B and C. I have even set up a route between B and C. 1. But I am not able to set a route between B and A.2. If I ping A from eth4 of B(viceversa) it works. When I ping B from eth5 of C it work but not the viceversa.3. Also, if I ping from C to A, B receives the packets, but not A.
I've been using mail-notification from the repos for ages to monitor my gmail account with no problems. Since I upgraded to Karmic, it's been popping up an irritating dialog window whenever a new mail arrives (as well as the standard notification). how to turn it off without losing all notifications?
I have mail-notification installed (using Lucid beta) but for some reason it doesn't send notifications using libnotify, but instead shows a standard gtk pop-up. I have the evolution plugin for mail-notification installed, and in fact the issue is not related to evolution, since I tried setting up mail-notification directly for an IMAP account and got the same ugly pop-up.
I've had Mail Notification installed for awhile, but was disappointed by the fact that it tries to check for e-mail before my computer can even establish an internet connection (and then never checks again), forcing me to manually start the program after every boot (an issue others have reported as well).
As a result, I removed the program via Ubuntu Software Center, and tried using cGmail (which I've used before, without issue), only to encounter a bug. I then uninstalled cGmail, and installed Mail Notification again. However, as soon as I started Mail Notification, I noticed that it still had all of my preferences, including my previous e-mail account, saved.
How is this possible? I tried removing it via Ubuntu Software Center, and then again with Synaptic---but still, if I reinstall it, the settings are all still there. I want to completely remove Mail Notification, and all of its settings (even if I decide to eventually install it again), but now am confused as to how to do this.
I have a gmail account. After I installed ubuntu 11.04 cannot use "mail notification" properly. the pop-up windows is like an error in the middle of the screen (instead of the classic and attractive window reside on the right-up screen).
I am using: Code: Ubuntu 10.4 2.6.32-21-generic Evolution 2.83.3
I have noticed that when I get a new email, it never shows a new mail icon in the panel. I had the same problem with 9.10, and I thought the problem would go away when I upgraded to 10.4. I have checked the properties in Mail preferences: Code: Play sound - yes Display a notification - yes Indicate new messages in panel - yes
It does not send mail if I only add contact_groups in host definition.
Code:
define host{ use generic-host ; Inherit default values from a template host_name NAME1 ; The name we're giving to this switch address XX.X.X.X ; IP address of the switch
I am unable to open nagios web page on another machine. where iam able to see nagios page on server where i have installed nagios. but another machine if i put server ip in browser its authenticate for nagiosusername & password but after putting same. getting below error.
The webpage cannot be found HTTP 404 Most likely causes: There might be a typing error in the address. If you clicked on a link, it may be out of date.
What you can try: Retype the address. Go back to the previous page. Go to and look for the information you want. More information
i have installed opensuse 11.3 on my PC. i want to display pop up message when new mail arrives. For that, i have installed mail-notification 5.4 ( which requires libnotify-0.4.4). while building mail-notification,it shows the following error . "src/mn-evolution-folder-tree-server.gob:26:33: fatal error: mail/mail-component.h: No such file or directory compilation terminated. command failed."
anyone knows how to setting email reminder and privacy when sent email.
This email and any files transmitted with it are confidential and intended solely for the use by or information of the individual or entity to whom they are addressed. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action based on the contents of this information is strictly prohibited. If you have received this email in error or is not the intended recipient, please notify the sender by return email and delete this e-mail (together with any files transmitted with it) immediately. i want this reminder will automatically sent when user sent their email without need to write this reminder. means all email sent by user will display that reminder when email opened
I'm using Ubuntu Lucid 64bit. Thunderbird 2 had an add-on for new mail icon notification in the tray, but I haven't yet found a working replacement for Thunderbird 3.