No longer receiving mms emails from Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
OpsTeam
Posts: 10
Joined: Fri Oct 19, 2018 10:47 am

No longer receiving mms emails from Nagios

Post by OpsTeam »

Up until Monday of this week we were able to send to the email address of our cell phones. We have a contact setup in Nagios with an email address of a distribution group that is setup in our on prem Exchange box. This group contains contacts where each contact is the cell phone email address for our team members. i.e. [email protected]. Monday at noon all phones on AT&T stopped receiving notifications, Verizon users did not. I did some digging and found out AT&T was blocking our exchange box for those types of messages if they contained a link. In the midst of trying to remove the default response and nagios links that appear in the notifications I managed to break all notifications for everyone. I modified the notification template and deployed to all users, that's when notifications stopped for everything. Fortunately we had a backup I was able to restore to that fixed everything. As a workaround we've added the AT&T users' company email addresses to the distribution group.

In Exchange I set each of the contact's messageformat and messagebodyformat to text. I then sent a test message from my company mailbox to each of the contact addresses where all were successful in reaching the user's cell phone. I added them to a new distribution group and sent another test, all received the test. I created a new contact in Nagios using this new distribution group, added it to the contact list for a service, and modified the thresholds to trigger an alert. No dice... Nobody received the "text". I added my email address to this distro and I received the email but still nobody received the text.

Is there something I'm missing in Nagios to send these in a text format? We're using the sendmail method, could that be part of the issue? I'm sorry for such a long post but I feel like I'm spinning my wheels at this moment.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No longer receiving mms emails from Nagios

Post by tgriep »

When the XI system is setup to use Sendmail as the Mail Method, it uses the local mailer daemon (Postfix / Sendmail) and it is logged in this file.

Code: Select all

/var/log/maillog
Check that file for any errors when you are sending a test email to the distribution group email address and post it here.
Be sure to check out our Knowledgebase for helpful articles and solutions!
OpsTeam
Posts: 10
Joined: Fri Oct 19, 2018 10:47 am

Re: No longer receiving mms emails from Nagios

Post by OpsTeam »

I don't have a maillog file in /var/log/. Just a mysqld and a yum log.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No longer receiving mms emails from Nagios

Post by tgriep »

Can you run the following commands as root on the Nagios server and post the output here?

Code: Select all

echo 'select * from xi_options;' |mysql -t -u root -pnagiosxi nagiosxi |grep mail_method
ps -ef --cols=300
Thanks.
Be sure to check out our Knowledgebase for helpful articles and solutions!
OpsTeam
Posts: 10
Joined: Fri Oct 19, 2018 10:47 am

Re: No longer receiving mms emails from Nagios

Post by OpsTeam »

Error 1049 (42000): Unkown database 'nagiosxi'

I'll have to dig up what the db name is.

I did some more testing via powershell from my exchange box this morning. This might be related to the from address being the root@localhost format. I've tried adjusting the nagios.cfg file with admin_email=[email protected] which is a configured inbox in our domain but the from is still showing [email protected]. I did a nagios reload after making these changes.

I looked at the notify by email (host and server) commands and I don't see any switches specifying the from address. Speaking of, is that switch something like this?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No longer receiving mms emails from Nagios

Post by tgriep »

Yes, to change the from address in the email command, you would add the -r [email protected] to it.

The nagiosxi database on your server is hosted by the Postgres database, so the command would be the following to get the mail method settings.

Code: Select all

echo 'select * from xi_options;' |psql nagiosxi nagiosxi |grep mail_method
Can you also, run this command as root and post the output here?

Code: Select all

ps -ef --cols=300
Thanks.
Be sure to check out our Knowledgebase for helpful articles and solutions!
OpsTeam
Posts: 10
Joined: Fri Oct 19, 2018 10:47 am

Re: No longer receiving mms emails from Nagios

Post by OpsTeam »

Code: Select all

      121 | mail_method                                       | sendmail

Code: Select all

UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Feb27 ?        00:01:04 /sbin/init
root         2     0  0 Feb27 ?        00:00:00 [kthreadd]
root         3     2  0 Feb27 ?        1-03:28:23 [migration/0]
root         4     2  0 Feb27 ?        05:58:22 [ksoftirqd/0]
root         5     2  0 Feb27 ?        00:00:00 [stopper/0]
root         6     2  0 Feb27 ?        06:31:07 [watchdog/0]
root         7     2  0 Feb27 ?        1-09:37:18 [migration/1]
root         8     2  0 Feb27 ?        00:00:00 [stopper/1]
root         9     2  0 Feb27 ?        13:50:07 [ksoftirqd/1]
root        10     2  0 Feb27 ?        07:45:30 [watchdog/1]
root        11     2  0 Feb27 ?        1-09:11:42 [migration/2]
root        12     2  0 Feb27 ?        00:00:00 [stopper/2]
root        13     2  0 Feb27 ?        13:30:44 [ksoftirqd/2]
root        14     2  0 Feb27 ?        07:27:28 [watchdog/2]
root        15     2  0 Feb27 ?        1-08:52:54 [migration/3]
root        16     2  0 Feb27 ?        00:00:00 [stopper/3]
root        17     2  0 Feb27 ?        13:03:02 [ksoftirqd/3]
root        18     2  0 Feb27 ?        07:12:17 [watchdog/3]
root        19     2  0 Feb27 ?        1-08:57:37 [migration/4]
root        20     2  0 Feb27 ?        00:00:00 [stopper/4]
root        21     2  0 Feb27 ?        12:20:29 [ksoftirqd/4]
root        22     2  0 Feb27 ?        07:00:29 [watchdog/4]
root        23     2  0 Feb27 ?        1-08:08:23 [migration/5]
root        24     2  0 Feb27 ?        00:00:00 [stopper/5]
root        25     2  0 Feb27 ?        12:12:28 [ksoftirqd/5]
root        26     2  0 Feb27 ?        06:46:40 [watchdog/5]
root        27     2  0 Feb27 ?        1-18:28:01 [events/0]
root        28     2  1 Feb27 ?        2-11:20:54 [events/1]
root        29     2  0 Feb27 ?        2-07:29:04 [events/2]
root        30     2  0 Feb27 ?        2-05:25:53 [events/3]
root        31     2  0 Feb27 ?        2-05:57:26 [events/4]
root        32     2  0 Feb27 ?        2-02:06:29 [events/5]
root        33     2  0 Feb27 ?        00:00:00 [events/0]
root        34     2  0 Feb27 ?        00:00:00 [events/1]
root        35     2  0 Feb27 ?        00:00:00 [events/2]
root        36     2  0 Feb27 ?        00:00:00 [events/3]
root        37     2  0 Feb27 ?        00:00:00 [events/4]
root        38     2  0 Feb27 ?        00:00:00 [events/5]
root        39     2  0 Feb27 ?        00:00:00 [events_long/0]
root        40     2  0 Feb27 ?        00:00:00 [events_long/1]
root        41     2  0 Feb27 ?        00:00:00 [events_long/2]
root        42     2  0 Feb27 ?        00:00:00 [events_long/3]
root        43     2  0 Feb27 ?        00:00:00 [events_long/4]
root        44     2  0 Feb27 ?        00:00:00 [events_long/5]
root        45     2  0 Feb27 ?        00:00:00 [events_power_ef]
root        46     2  0 Feb27 ?        00:00:00 [events_power_ef]
root        47     2  0 Feb27 ?        00:00:00 [events_power_ef]
root        48     2  0 Feb27 ?        00:00:00 [events_power_ef]
root        49     2  0 Feb27 ?        00:00:00 [events_power_ef]
root        50     2  0 Feb27 ?        00:00:00 [events_power_ef]
root        51     2  0 Feb27 ?        00:00:00 [cgroup]
root        52     2  0 Feb27 ?        00:00:00 [khelper]
root        53     2  0 Feb27 ?        00:00:00 [netns]
root        54     2  0 Feb27 ?        00:00:00 [async/mgr]
root        55     2  0 Feb27 ?        00:00:00 [pm]
root        56     2  0 Feb27 ?        01:44:34 [sync_supers]
root        57     2  0 Feb27 ?        02:05:44 [bdi-default]
root        58     2  0 Feb27 ?        00:00:00 [kintegrityd/0]
root        59     2  0 Feb27 ?        00:00:00 [kintegrityd/1]
root        60     2  0 Feb27 ?        00:00:00 [kintegrityd/2]
root        61     2  0 Feb27 ?        00:00:00 [kintegrityd/3]
root        62     2  0 Feb27 ?        00:00:00 [kintegrityd/4]
root        63     2  0 Feb27 ?        00:00:00 [kintegrityd/5]
root        64     2  0 Feb27 ?        20:17:07 [kblockd/0]
root        65     2  1 Feb27 ?        2-15:29:42 [kblockd/1]
root        66     2  1 Feb27 ?        2-13:39:59 [kblockd/2]
root        67     2  1 Feb27 ?        2-12:07:52 [kblockd/3]
root        68     2  1 Feb27 ?        2-10:46:48 [kblockd/4]
root        69     2  1 Feb27 ?        2-09:39:01 [kblockd/5]
root        70     2  0 Feb27 ?        00:00:00 [kacpid]
root        71     2  0 Feb27 ?        00:00:00 [kacpi_notify]
root        72     2  0 Feb27 ?        00:00:00 [kacpi_hotplug]
root        73     2  0 Feb27 ?        00:00:00 [ata_aux]
root        74     2  0 Feb27 ?        00:00:00 [ata_sff/0]
root        75     2  0 Feb27 ?        00:00:00 [ata_sff/1]
root        76     2  0 Feb27 ?        00:00:00 [ata_sff/2]
root        77     2  0 Feb27 ?        00:00:00 [ata_sff/3]
root        78     2  0 Feb27 ?        00:00:00 [ata_sff/4]
root        79     2  0 Feb27 ?        00:00:00 [ata_sff/5]
root        80     2  0 Feb27 ?        00:00:00 [ksuspend_usbd]
root        81     2  0 Feb27 ?        00:00:00 [khubd]
root        82     2  0 Feb27 ?        00:00:00 [kseriod]
root        83     2  0 Feb27 ?        00:00:00 [md/0]
root        84     2  0 Feb27 ?        00:00:00 [md/1]
root        85     2  0 Feb27 ?        00:00:00 [md/2]
root        86     2  0 Feb27 ?        00:00:00 [md/3]
root        87     2  0 Feb27 ?        00:00:00 [md/4]
root        88     2  0 Feb27 ?        00:00:00 [md/5]
root        89     2  0 Feb27 ?        00:00:00 [md_misc/0]
root        90     2  0 Feb27 ?        00:00:00 [md_misc/1]
root        91     2  0 Feb27 ?        00:00:00 [md_misc/2]
root        92     2  0 Feb27 ?        00:00:00 [md_misc/3]
root        93     2  0 Feb27 ?        00:00:00 [md_misc/4]
root        94     2  0 Feb27 ?        00:00:00 [md_misc/5]
root        95     2  0 Feb27 ?        00:00:00 [linkwatch]
root        97     2  0 Feb27 ?        00:06:01 [khungtaskd]
root        98     2  0 Feb27 ?        00:06:00 [kswapd0]
root        99     2  0 Feb27 ?        00:00:00 [ksmd]
root       100     2  0 Feb27 ?        03:35:09 [khugepaged]
root       101     2  0 Feb27 ?        00:00:00 [aio/0]
root       102     2  0 Feb27 ?        00:00:00 [aio/1]
root       103     2  0 Feb27 ?        00:00:00 [aio/2]
root       104     2  0 Feb27 ?        00:00:00 [aio/3]
root       105     2  0 Feb27 ?        00:00:00 [aio/4]
root       106     2  0 Feb27 ?        00:00:00 [aio/5]
root       107     2  0 Feb27 ?        00:00:00 [crypto/0]
root       108     2  0 Feb27 ?        00:00:00 [crypto/1]
root       109     2  0 Feb27 ?        00:00:00 [crypto/2]
root       110     2  0 Feb27 ?        00:00:00 [crypto/3]
root       111     2  0 Feb27 ?        00:00:00 [crypto/4]
root       112     2  0 Feb27 ?        00:00:00 [crypto/5]
root       119     2  0 Feb27 ?        00:00:00 [kthrotld/0]
root       120     2  0 Feb27 ?        00:00:00 [kthrotld/1]
root       121     2  0 Feb27 ?        00:00:00 [kthrotld/2]
root       122     2  0 Feb27 ?        00:00:00 [kthrotld/3]
root       123     2  0 Feb27 ?        00:00:00 [kthrotld/4]
root       124     2  0 Feb27 ?        00:00:00 [kthrotld/5]
root       125     2  0 Feb27 ?        00:00:00 [pciehpd]
root       127     2  0 Feb27 ?        00:00:00 [kpsmoused]
root       128     2  0 Feb27 ?        00:00:00 [usbhid_resumer]
root       129     2  0 Feb27 ?        00:00:00 [deferwq]
root       161     2  0 Feb27 ?        00:00:00 [kdmremove]
root       162     2  0 Feb27 ?        00:00:00 [kstriped]
root       343     2  0 Feb27 ?        00:00:00 [scsi_eh_0]
root       344     2  0 Feb27 ?        00:00:00 [scsi_eh_1]
root       351     2  0 Feb27 ?        1-10:15:38 [mpt_poll_0]
root       352     2  0 Feb27 ?        00:00:00 [mpt/0]
root       353     2  0 Feb27 ?        00:00:00 [scsi_eh_2]
root       428     2  0 Feb27 ?        00:00:00 [kdmflush]
root       430     2  0 Feb27 ?        00:00:00 [kdmflush]
root       448     2  1 Feb27 ?        2-20:01:34 [jbd2/dm-0-8]
root       449     2  0 Feb27 ?        00:00:00 [ext4-dio-unwrit]
root       535     1  0 Feb27 ?        00:00:00 /sbin/udevd -d
root       770     2  0 Feb27 ?        01:10:48 [vmmemctl]
root       798     2  0 Feb27 ?        00:00:00 [hd-audio0]
root       919     2  0 Feb27 ?        00:00:00 [jbd2/sda1-8]
root       920     2  0 Feb27 ?        00:00:00 [ext4-dio-unwrit]
root       953     2  0 Feb27 ?        00:35:39 [kauditd]
root       966     2  5 Feb27 ?        13-08:08:21 [flush-253:0]
root       973  1399  0 09:56 ?        00:00:00 sshd: root@pts/0
root      1199   973  0 09:56 pts/0    00:00:00 -bash
root      1301     1  0 Feb27 ?        03:19:13 auditd
root      1333     1  0 Feb27 ?        03:22:37 /sbin/rsyslogd -i /var/run/syslo                                                                  gd.pid -c 5
dbus      1348     1  0 Feb27 ?        00:00:00 dbus-daemon --system
root      1399     1  0 Feb27 ?        00:01:16 /usr/sbin/sshd
ntp       1421     1  0 Feb27 ?        00:08:54 ntpd -u ntp:ntp -p /var/run/ntpd                                                                  .pid -g
root      1689     1  0 Feb27 ?        00:29:50 /usr/libexec/postfix/master
postfix   1696  1689  0 Feb27 ?        00:16:40 qmgr -l -t fifo -u
root      1714     1  0 Feb27 ?        00:31:03 crond
root      1979     1  0 Feb27 tty1     00:00:00 /sbin/mingetty /dev/tty1
root      1981     1  0 Feb27 tty2     00:00:00 /sbin/mingetty /dev/tty2
root      1983     1  0 Feb27 tty3     00:00:00 /sbin/mingetty /dev/tty3
root      1985     1  0 Feb27 tty4     00:00:00 /sbin/mingetty /dev/tty4
root      1987     1  0 Feb27 tty5     00:00:00 /sbin/mingetty /dev/tty5
root      1989     1  0 Feb27 tty6     00:00:00 /sbin/mingetty /dev/tty6
root      1991   535  0 Feb27 ?        00:00:00 /sbin/udevd -d
root      1992   535  0 Feb27 ?        00:00:00 /sbin/udevd -d
apache    2065 63324  0 Oct23 ?        00:05:59 /usr/sbin/httpd
postgres  2195 62994  0 Oct23 ?        00:00:20 postgres: nagiosxi nagiosxi ::1(                                                                  47646) idle
root      9414     1  0 Sep14 ?        00:54:32 /usr/sbin/snmpd -LS0-6d -Lf /dev                                                                  /null -p /var/run/snmpd.pid
apache   14223 63324  0 Oct23 ?        00:08:27 /usr/sbin/httpd
postgres 14272 62994  0 Oct23 ?        00:00:28 postgres: nagiosxi nagiosxi ::1(                                                                  55475) idle
apache   17634 63324  0 Oct23 ?        00:03:10 /usr/sbin/httpd
postgres 17675 62994  0 Oct23 ?        00:00:11 postgres: nagiosxi nagiosxi ::1(                                                                  38721) idle
postfix  20091  1689  0 10:42 ?        00:00:00 pickup -l -t fifo -u
apache   24603 63324  0 Oct23 ?        00:09:20 /usr/sbin/httpd
postgres 24841 62994  0 Oct23 ?        00:00:31 postgres: nagiosxi nagiosxi ::1(                                                                  49026) idle
nagios   26961     1  2 10:45 ?        00:00:06 /usr/local/nagios/bin/nagios -d                                                                   /usr/local/nagios/etc/nagios.cfg
nagios   26962 26961  0 10:45 ?        00:00:01 /usr/local/nagios/bin/nagios --w                                                                  orker /usr/local/nagios/var/rw/nagios.qh
nagios   26963 26961  0 10:45 ?        00:00:00 /usr/local/nagios/bin/nagios --w                                                                  orker /usr/local/nagios/var/rw/nagios.qh
nagios   26964 26961  0 10:45 ?        00:00:00 /usr/local/nagios/bin/nagios --w                                                                  orker /usr/local/nagios/var/rw/nagios.qh
nagios   26965 26961  0 10:45 ?        00:00:00 /usr/local/nagios/bin/nagios --w                                                                  orker /usr/local/nagios/var/rw/nagios.qh
nagios   26966 26961  0 10:45 ?        00:00:00 /usr/local/nagios/bin/nagios --w                                                                  orker /usr/local/nagios/var/rw/nagios.qh
nagios   26967 26961  0 10:45 ?        00:00:00 /usr/local/nagios/bin/nagios --w                                                                  orker /usr/local/nagios/var/rw/nagios.qh
nagios   26968 26961  0 10:45 ?        00:00:00 /usr/local/nagios/bin/nagios --w                                                                  orker /usr/local/nagios/var/rw/nagios.qh
nagios   26969 26961  0 10:45 ?        00:00:00 /usr/local/nagios/bin/nagios --w                                                                  orker /usr/local/nagios/var/rw/nagios.qh
nagios   26970 26961  0 10:45 ?        00:00:01 /usr/local/nagios/bin/nagios --w                                                                  orker /usr/local/nagios/var/rw/nagios.qh
nagios   26973 63387  0 10:45 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c                                                                   /usr/local/nagios/etc/ndo2db.cfg
nagios   26975 26973  7 10:45 ?        00:00:20 /usr/local/nagios/bin/ndo2db -c                                                                   /usr/local/nagios/etc/ndo2db.cfg
nagios   27041 26961  0 10:45 ?        00:00:00 /usr/local/nagios/bin/nagios -d                                                                   /usr/local/nagios/etc/nagios.cfg
apache   27628 63324  0 Oct23 ?        00:02:38 /usr/sbin/httpd
postgres 27756 62994  0 Oct23 ?        00:00:09 postgres: nagiosxi nagiosxi ::1(                                                                  58102) idle
root     27948     1  0 Oct01 ?        00:00:00 xinetd -stayalive -pidfile /var/                                                                  run/xinetd.pid
nagios   27967     1  0 Oct01 ?        00:00:00 /usr/local/nagios/bin/nrpe -c /u                                                                  sr/local/nagios/etc/nrpe.cfg -d
496      28993     1  0 Oct01 ?        00:00:00 shellinaboxd -u shellinabox -g s                                                                  hellinabox --cert=/var/lib/shellinabox --port=7878 --background=/var/run/shellin                                                                  aboxd.pid --disable-ssl-menu -s /:SSH --localhost-only --css white-on-black.css
496      28994 28993  0 Oct01 ?        00:00:00 shellinaboxd -u shellinabox -g s                                                                  hellinabox --cert=/var/lib/shellinabox --port=7878 --background=/var/run/shellin                                                                  aboxd.pid --disable-ssl-menu -s /:SSH --localhost-only --css white-on-black.css
apache   29016 63324  0 Oct23 ?        00:02:23 /usr/sbin/httpd
postgres 29688 62994  0 Oct23 ?        00:00:08 postgres: nagiosxi nagiosxi ::1(                                                                  51593) idle
postfix  34118  1689  0 10:49 ?        00:00:00 smtp -t unix -u
nagios   35058 26970  1 10:50 ?        00:00:00 /usr/bin/perl -w /usr/local/nagi                                                                  os/libexec/check_snmp_storage_wizard.pl -H 192.168.11.52 -C public --v2c -m ^/z$                                                                   -w 90 -c 95 -f
root     35078  1714  0 10:50 ?        00:00:00 CROND
root     35079  1714  0 10:50 ?        00:00:00 CROND
root     35080  1714  0 10:50 ?        00:00:00 CROND
root     35081  1714  0 10:50 ?        00:00:00 CROND
root     35082  1714  0 10:50 ?        00:00:00 CROND
root     35083  1714  0 10:50 ?        00:00:00 CROND
nagios   35087 35078  0 10:50 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/                                                                  local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdataproc.log                                                                   2>&1
nagios   35090 35087  1 10:50 ?        00:00:00 /usr/bin/php -q /usr/local/nagio                                                                  sxi/cron/perfdataproc.php
nagios   35097 35080  0 10:50 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/                                                                  local/nagiosxi/cron/event_handler.php >> /usr/local/nagiosxi/var/event_handler.l                                                                  og 2>&1
nagios   35098 35083  0 10:50 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/                                                                  local/nagiosxi/cron/sysstat.php >> /usr/local/nagiosxi/var/sysstat.log 2>&1
nagios   35101 35079  0 10:50 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/                                                                  local/nagiosxi/cron/feedproc.php >> /usr/local/nagiosxi/var/feedproc.log 2>&1
nagios   35102 35082  0 10:50 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/                                                                  local/nagiosxi/cron/cmdsubsys.php >> /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
nagios   35103 35081  0 10:50 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/                                                                  local/nagiosxi/cron/eventman.php >> /usr/local/nagiosxi/var/eventman.log 2>&1
nagios   35107 35097  1 10:50 ?        00:00:00 /usr/bin/php -q /usr/local/nagio                                                                  sxi/cron/event_handler.php
nagios   35108 35098  1 10:50 ?        00:00:00 /usr/bin/php -q /usr/local/nagio                                                                  sxi/cron/sysstat.php
nagios   35111 35101  1 10:50 ?        00:00:00 /usr/bin/php -q /usr/local/nagio                                                                  sxi/cron/feedproc.php
nagios   35112 35102  2 10:50 ?        00:00:00 /usr/bin/php -q /usr/local/nagio                                                                  sxi/cron/cmdsubsys.php
nagios   35113 35103  2 10:50 ?        00:00:00 /usr/bin/php -q /usr/local/nagio                                                                  sxi/cron/eventman.php
postgres 35115 62994  0 10:50 ?        00:00:00 postgres: nagiosxi nagiosxi ::1(                                                                  46323) idle
postgres 35131 62994  0 10:50 ?        00:00:00 postgres: nagiosxi nagiosxi ::1(                                                                  46330) idle
postgres 35140 62994  0 10:50 ?        00:00:00 postgres: nagiosxi nagiosxi ::1(                                                                  46332) idle
postgres 35150 62994  0 10:50 ?        00:00:00 postgres: nagiosxi nagiosxi ::1(                                                                  46333) idle
postgres 35168 62994  0 10:50 ?        00:00:00 postgres: nagiosxi nagiosxi ::1(                                                                  46335) idle
postgres 35173 62994  0 10:50 ?        00:00:00 postgres: nagiosxi nagiosxi ::1(                                                                  46336) idle
nagios   35350 26964  2 10:50 ?        00:00:00 /usr/bin/perl -w /usr/local/nagi                                                                  os/libexec/check_snmp_storage_wizard.pl -H 192.168.1.95 -C public --v2c -m ^/z$                                                                   -w 95 -c 98 -f
nagios   35372 26968  0 10:50 ?        00:00:00 /usr/local/nagios/libexec/check_                                                                  nrpe -H myserver.mydomain.local -t 75 -c check_cpu_stats -a -w 85 -c 95
nagios   35397 26962  0 10:50 ?        00:00:00 /usr/local/nagios/libexec/check_                                                                  nt -H 192.168.0.10 -s EN3KrP081gL5wxP -t 120 -p 12489 -v COUNTER -l \Paging File                                                                  (_Total)\% Usage Paging File usage is %.2f %% -w 95 -c 98
root     35405  1199  0 10:50 pts/0    00:00:00 ps -ef --cols=300
apache   37905 63324  0 Oct23 ?        00:06:56 /usr/sbin/httpd
postgres 38047 62994  0 Oct23 ?        00:00:23 postgres: nagiosxi nagiosxi ::1(                                                                  41495) idle
apache   38472 63324  0 Oct23 ?        00:06:59 /usr/sbin/httpd
postgres 38635 62994  0 Oct23 ?        00:00:23 postgres: nagiosxi nagiosxi ::1(                                                                  41953) idle
apache   43327 63324  0 Oct23 ?        00:04:26 /usr/sbin/httpd
postgres 43501 62994  0 Oct23 ?        00:00:14 postgres: nagiosxi nagiosxi ::1(                                                                  54892) idle
root     45352  1399  0 09:45 ?        00:00:00 sshd: root@notty
root     45404 45352  0 09:45 ?        00:00:00 /usr/libexec/openssh/sftp-server
root     49605     1  0 Oct01 ?        00:12:54 /usr/sbin/snmptrapd -Ln -p /var/                                                                  run/snmptrapd.pid
root     49688     1  0 Oct01 ?        00:20:01 /usr/bin/perl /usr/sbin/snmptt -                                                                  -daemon
snmptt   49689 49688  0 Oct01 ?        00:13:11 /usr/bin/perl /usr/sbin/snmptt -                                                                  -daemon
apache   51411 63324  0 02:09 ?        00:01:44 /usr/sbin/httpd
postgres 52451 62994  0 02:10 ?        00:00:05 postgres: nagiosxi nagiosxi ::1(                                                                  37332) idle
apache   55103 63324  0 Oct23 ?        00:07:01 /usr/sbin/httpd
postgres 55290 62994  0 Oct23 ?        00:00:23 postgres: nagiosxi nagiosxi ::1(                                                                  54448) idle
root     60046  1399  0 09:53 ?        00:00:00 sshd: root@notty
root     60116 60046  0 09:53 ?        00:00:00 /usr/libexec/openssh/sftp-server
apache   60405 63324  0 Oct23 ?        00:09:38 /usr/sbin/httpd
postgres 60643 62994  0 Oct23 ?        00:00:31 postgres: nagiosxi nagiosxi ::1(                                                                  55332) idle
postfix  62433  1689  0 10:29 ?        00:00:00 cleanup -z -t unix -u
postgres 62994     1  0 Oct18 ?        00:02:43 /usr/bin/postmaster -p 5432 -D /                                                                  var/lib/pgsql/data
postgres 63144 62994  0 Oct18 ?        00:10:15 postgres: logger process                                                                          
root     63149     1  0 Oct18 ?        00:00:00 /bin/sh /usr/bin/mysqld_safe --d                                                                  atadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mys                                                                  qld/mysqld.pid --basedir=/usr --user=mysql
postgres 63197 62994  0 Oct18 ?        00:44:14 postgres: writer process                                                                          
postgres 63198 62994  0 Oct18 ?        00:37:15 postgres: wal writer process                                                                      
postgres 63200 62994  0 Oct18 ?        00:14:08 postgres: autovacuum launcher pr                                                                  ocess
postgres 63203 62994  0 Oct18 ?        00:07:53 postgres: stats collector proces                                                                  s
mysql    63258 63149  3 Oct18 ?        05:12:25 /usr/libexec/mysqld --basedir=/u                                                                  sr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysqld.log --pid-f                                                                  ile=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock
root     63324     1  0 Oct18 ?        00:10:41 /usr/sbin/httpd
nagios   63352     1  0 Oct18 ?        00:04:30 /usr/local/nagios/bin/npcd -d -f                                                                   /usr/local/nagios/etc/pnp/npcd.cfg
nagios   63387     1  0 Oct18 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c                                                                   /usr/local/nagios/etc/ndo2db.cfg

User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No longer receiving mms emails from Nagios

Post by tgriep »

Your server is configured to use the postfix mailer daemon for sending emails and I would like you to post the rsyslog configuration file so we can determine the location where it stores the Postfix log files.
Typically is is the /var/log/maillog file but you said earlier that it did not exist.

Can you get the following file and post it here?

Code: Select all

/etc/rsyslog.conf
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
OpsTeam
Posts: 10
Joined: Fri Oct 19, 2018 10:47 am

Re: No longer receiving mms emails from Nagios

Post by OpsTeam »

Here you go
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No longer receiving mms emails from Nagios

Post by tgriep »

This setting from the rsyslog.conf file shows the location where rsyslog should be logging the Postfix log data.
# Log all the mail messages in one place.
mail.* -/var/log/maillog
I found this information on wht the file doesn't exist.
IMPORTANT: many syslogd implementations will not create files. You must create files before (re)starting syslogd.

So, lets create the file and set it's permissions by running the following as root.

Code: Select all

touch /var/log/maillog
chmod 600 /var/log/maillog
Then restart the processes by running

Code: Select all

service rsyslog restart
service postfix restart
Then check the /var/log/maillog to see id the mailer daemon is logging it's output there and then you can test sending to the distribution group from the Nagios server.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked