Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Nagios Alert Messaging Issues
New Posts  All Forums:Forum Nav:

Nagios Alert Messaging Issues

post #1 of 5
Thread Starter 
I'm having some issues getting Nagios to send out alerts correctly on a couple machines/VMs I have running.

Basically, I have the Nagios software running on a Debian box, and it monitors the hosts fine and the web UI is up without issue. However, I'm having a hard time getting Nagios to actually send out an email when an event happens.

My main monitoring target is a Windows Server 2008 R2 VM. Now, I know that NSClient++ is not fully supported on that OS, but the service runs enough to where I can get Nagios to report whether or not the machine is up and online, which is my primary concern. The software will correctly show events and alerts on the Web UI, but I cannot get it to properly send out an email. Further, I can't get it to even send a message to a user on the host Debian box.

I'm wondering if anyone here has any experience with this sort of setup, and what you had to do in order to get Nagios to properly send an email alert.
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
post #2 of 5
It's always just worked for me. Exactly what are you doing?
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #3 of 5
on the Debian box, do you have a MTA setup? Something like postfix or sendmail... you need a proper MTA setup to deliver the mail (either to local accounts or to SMTP servers or a SMTP gateway)

if you look at your nagios configuration files, you'll notice that email notifications are sent by a 'notify-service-by-email' command. This command basically runs the 'sendmail' command which injects the mail to your local MTA. Your MTA then delivers the mail.

If you have a MTA configured and running, check the logs to see if it is running into any issues... usually something like /var/log/maillog or similar.
TAIPEI
(10 items)
 
AURORA
(13 items)
 
 
MotherboardGraphicsRAMHard Drive
ASRock X99 Extreme11 EVGA GTX 980 Superclocked 32GB 8x4GB Corsair LPX Samsung XP941  
Hard DriveCoolingOSMonitor
Western Digital 3TB RE Noctua NH-D15 Fedora 21 Linux Samsung S27D590C 
PowerCase
Seasonic SS-1200XP Cooler Master Cosmos II 
CPUMotherboardGraphicsRAM
Dual Quad-core L5430 2.66Ghz 12mb cache Intel 5000 chipset ATI ES1000 64GB FBDIMM DDR2 PC2-5300 667Mhz 
Hard DriveOSPower
WD3000FYYZ PERC H700 w/ 512MB cache CentOS 7.2.1511 950W x2 
  hide details  
Reply
TAIPEI
(10 items)
 
AURORA
(13 items)
 
 
MotherboardGraphicsRAMHard Drive
ASRock X99 Extreme11 EVGA GTX 980 Superclocked 32GB 8x4GB Corsair LPX Samsung XP941  
Hard DriveCoolingOSMonitor
Western Digital 3TB RE Noctua NH-D15 Fedora 21 Linux Samsung S27D590C 
PowerCase
Seasonic SS-1200XP Cooler Master Cosmos II 
CPUMotherboardGraphicsRAM
Dual Quad-core L5430 2.66Ghz 12mb cache Intel 5000 chipset ATI ES1000 64GB FBDIMM DDR2 PC2-5300 667Mhz 
Hard DriveOSPower
WD3000FYYZ PERC H700 w/ 512MB cache CentOS 7.2.1511 950W x2 
  hide details  
Reply
post #4 of 5
Thread Starter 
Quote:
Originally Posted by BLinux View Post
on the Debian box, do you have a MTA setup? Something like postfix or sendmail... you need a proper MTA setup to deliver the mail (either to local accounts or to SMTP servers or a SMTP gateway)

if you look at your nagios configuration files, you'll notice that email notifications are sent by a 'notify-service-by-email' command. This command basically runs the 'sendmail' command which injects the mail to your local MTA. Your MTA then delivers the mail.

If you have a MTA configured and running, check the logs to see if it is running into any issues... usually something like /var/log/maillog or similar.
I had postfix installed, check /var/log/mail.log and it appeared to be having issues a few days ago, but no errors since then. However, I'm going to try sendmail to see if it was just an odd quirk. Anything special I need to do during the sendmail configuration?
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
post #5 of 5
Quote:
Originally Posted by TurboTurtle View Post
I had postfix installed, check /var/log/mail.log and it appeared to be having issues a few days ago, but no errors since then. However, I'm going to try sendmail to see if it was just an odd quirk. Anything special I need to do during the sendmail configuration?
well, honestly if you have postfix working, i would just leave it alone. in my opinion, postfix is much better than sendmail.

can you verify that whatever MTA you have is actually working? for example, from the shell, can you send an email to the address that nagios would send mail to? try some local accounts like root and then non-local accounts and see if it will deliver it. if that checks out, then the next thing i would check is your nagios configuration. make sure the nagios command to send out email makes sense... like the path to the command is correct for your system, etc.
TAIPEI
(10 items)
 
AURORA
(13 items)
 
 
MotherboardGraphicsRAMHard Drive
ASRock X99 Extreme11 EVGA GTX 980 Superclocked 32GB 8x4GB Corsair LPX Samsung XP941  
Hard DriveCoolingOSMonitor
Western Digital 3TB RE Noctua NH-D15 Fedora 21 Linux Samsung S27D590C 
PowerCase
Seasonic SS-1200XP Cooler Master Cosmos II 
CPUMotherboardGraphicsRAM
Dual Quad-core L5430 2.66Ghz 12mb cache Intel 5000 chipset ATI ES1000 64GB FBDIMM DDR2 PC2-5300 667Mhz 
Hard DriveOSPower
WD3000FYYZ PERC H700 w/ 512MB cache CentOS 7.2.1511 950W x2 
  hide details  
Reply
TAIPEI
(10 items)
 
AURORA
(13 items)
 
 
MotherboardGraphicsRAMHard Drive
ASRock X99 Extreme11 EVGA GTX 980 Superclocked 32GB 8x4GB Corsair LPX Samsung XP941  
Hard DriveCoolingOSMonitor
Western Digital 3TB RE Noctua NH-D15 Fedora 21 Linux Samsung S27D590C 
PowerCase
Seasonic SS-1200XP Cooler Master Cosmos II 
CPUMotherboardGraphicsRAM
Dual Quad-core L5430 2.66Ghz 12mb cache Intel 5000 chipset ATI ES1000 64GB FBDIMM DDR2 PC2-5300 667Mhz 
Hard DriveOSPower
WD3000FYYZ PERC H700 w/ 512MB cache CentOS 7.2.1511 950W x2 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Nagios Alert Messaging Issues