Software :: Nagios - Auto Acknowledging Alerts After Many Tries/sends Notification
Mar 17, 2011
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.
I have configured Nagios on SLES 10 SP2. I could configure nagios but 2 things are not working correctly.
1.It doesnt show correct disk utilization for /local partition. 2.It doesnt send Alerts.
I have installed NAGIOS (nagios-3.2.0-11.1, nagios-plugins-1.4.14-11.1 and few other which are required to remove dependency) on server and I have installed nagios (nagios-plugins-1.4.14-11.1, nagios-nrpe-client-2.12-11.1 and few other packages to remove dependency) on client.
Configuration files from NAGIOS server: nagios.cfg (Since this file is big, I have copied the relevant portion only. Let me know if any specific info is required from this file)=>
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'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 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).
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'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?
I'm currently administering an Ubuntu box remotely. It's set to install security updates automatically, and it notifies me when I log in via ssh whether it has installed an update which requires a reboot. For example, if it installed a kernel update a few days ago, the update manager will touch a "reboot_required" file in /var/run, and when I ssh into the machine today I'll be greeted with a "System restart required" message. Is there a similar functionality for yum or Packagekit?
How to see the code behind the nagios plugin: Nagios Checker? I opened the folder which i have downloaded. After that where do i have to go to see the codes? Is it in App_Codes?
So we monitor all of our disk space, but only get pages for critical. What we would like to do is have one email sent to our team every month with all the "Warnings" for our disk. I have been searching and haven't found a way to do this. Any suggestions?
I have set up a server using Suse, which I have done several times. This one is running 11.2 'Emerald'. It has 2 network cards. One is connected to a bt router with a static ip, and the other is for the internal network. The server is used as the gateway for the internet via masquerading. I have 2 issues, which I suspect are related. I can ssh to and from the server fine, but if I try to scp a file, it is fine sending to a remote machine, but stalls if I try the other way.
It also stalls if I try and send from the remote machine to this one. I have tried debug mode, but no 'error's occur, it just stalls.The internet connection is also very slow and sometimes stalls, so there may be a link.I am not new to linux, but this has me baffled. This server replaced a Suse 10.2 server with similar config, and that worked fine.The firewall allows ssh, so I don't think its that.
I cannot remember the name of an app I once found that sends keystrokes from terminal. I believe it started with the letter t and was only a few letters long...
It seems there is a bug with F13Files send over Bluetooth to my WM phone are corrupted.When I send files, the Bluetooth transfer starts normal, then when the transfer finishes the window stays open (like it does not complete the transfer).I am unable to run or use that files on the WM (they are binary or data) so I assume they are corrupted. I have no problem with Ubuntu/Opensuse (I have a test disk with Ubuntu and OpenSuse) only with F13.
I just installed my version of 11.2 and am slowly setting up the software I need to make my Windows box an expensive paperweight. I recently set up my KMail to receive mail on my POP3 acct. I only recently had reason to send an email to myself at work to remind me to do something. When I hit send this is what I got:
[code]...
And it was in the clear. hmmmm. Is this how KMail sends it's authentication string? I have never really looked at SMTP or POP packets so maybe they all send them like this but I was a bit shocked when it came up like that. What if someone had been looking over my shoulder?
I'm looking for a live Linux distro that is secure and preserves my anonymity online. For what I need, Tor seems to do the job - but such software requires configuration that someone who is not knowledgeable in how it works might find difficult. I was looking at 'Lightweight portable security' but it does not specify whether it sends all traffic through Tor. Does anyone know more information about it and/or any other such live Linux distro?
how can attachment sends through mail command in linux with mail command either with mail -s or -v option also please confirm how to download the attachments from it . and how one should knows with mail command that attachment is present with the particular mail
It's hard to understand the whole systemd stuff. Specially in combination with mdadm and sendmail. My goal is to get a mail every boot about the state of the RAID. Also get a mail when someone is wrong with the RAID while my computer is running. How I can reach this target I don't care especially. It just has to be a Debian package and stable
OK, to the story: I made a while ago an dist-upgrade from wheezy to jessie. Before, everything works fine. I boot my computer, the RAID gets checked and a mail was sent to my email-address with the state of my RAID and the disks of it. For this I followed a HowTo from [URL] .... After the upgrade, I dont get a mail anymore.
Here some details.
Actually installed: Debian 8.2 Jessie
Code: Select allsystemctl status mdadm-raid -l ● mdadm-raid.service - LSB: MD array assembly Loaded: loaded (/etc/init.d/mdadm-raid) Active: active (exited) since Son 2015-10-11 16:11:34 CEST; 21min ago Process: 281 ExecStart=/etc/init.d/mdadm-raid start (code=exited, status=0/SUCCESS)
Code: Select allecho "This is a test e-mail from my server using msmtp" | msmtp -d xyz@gmx.net or Code: Select allmdadm --monitor --scan --test --oneshot
Everything works. I get the mails like I need it. In my opinion it's not a problem of the mail configuration. It seems, there is no network when the RAID get's started and the mails want to be send.
What I'm wondering is also, that obviously the
/etc/default/mdadm is ignored by systemd and only the /lib/systemd/system/mdmonitor.service is executed. But while booting the RAID get's startet with /etc/init.d/mdadm-raid and this should read the /etc/default/mdadm. Right? Confusing!
Anyway, is there a way, how I can easy change the order (without any side-effects) of the startup for the network and the RAID. I can't figure out, which unit I have to change, that it will work. Or maybe is there another solution? Like I mentioned, it's just have to work with Debian stable packages
There are various units who sounds nice, but wich one is the correct one?
My server is opensuse 11.1 I recently wrote a small script to quickly shut down or reboot my server (I needed this because I need to close an application manually before shutting down. The shutdown line in the script was: /sbin/shutdown -r now When I tested the script (as root) from the console terminal, It worked just fine but after reboot strange things started to happen if I logged in as root - while the mouse works, the keyboard freezes (rebooting the server does not help). While I can still use console terminal, if I try to start any application that requires root permission or log in as root from my sftp client then I will get an error on the server that says; broadcast message from root (time & date), the system is going down for reboot now! I have since commented out level 6 in my inittab, so that now when root sends a reboot signal and It shows the message about going to reboot, it does not actually go into reboot anymore because of the commented out line but that is ofcourse not an healthy way to go about it.
The only problem is I'm having trouble with Bindwood, the bookmark synchronising program. I'm on 9.10 and using firefox and whenever I try and delete a bookmark it just appears in my bookmarks next time I restart firefox.
I have 2 email accounts set up in Thunderbird - one is gmail and the other was given me by our server admins few years ago. Everything works fine on windows but when I try to send something from the second account (not gmail) in ubuntu it says that password is incorrect. Ive double checked all settings and seems like everything set correct. Now the most interesting part: when I set up this account as root (gksu thunderbird and then do same as I did under my account) everything works perfect.
I found only one thread at this forum with same issue and sure it's not solved [URL]..
a file or a process that is always running and pinging for example [URL]. returning 1 or 0, when returns 0 (that means have no response) do something else. i already made the something else, basicly sends an email etc.
I'm relatively new to ubuntu and linux and for convenience I choose to surrender to the "ME" set-up by ubuntu, when it comes to using Empathy over my preferred Pidgin (I still use Thunderbird though without integration). The thing that annoys me is that the alert sounds, when I get chat massages and so on, are really low! Lot's of times I missed chats from friends because I didn't hear them. I've looked on the internet and I've tried different sound settings in the main preferences, but nothing. How to turn up the alert volume for Empathy?