Email notification stopped after upgrad from 3.4.1 to 4.3.4

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
skazi
Posts: 7
Joined: Fri May 03, 2013 9:29 am

Email notification stopped after upgrad from 3.4.1 to 4.3.4

Post by skazi »

My email notification stopped working after upgrading Nagios 3.4.1 to Nagios 4.3.4.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Email notification stopped after upgrad from 3.4.1 to 4.

Post by tgriep »

What OS and release is the Nagios server running on?
If you look at the nagios.log file, do you see the system trying to send the Notifications?
Do you see and errors in the /var/log/maillog file on the server?
If you go to the Process Info menu, does it show that Notifications are Enabled?
Be sure to check out our Knowledgebase for helpful articles and solutions!
skazi
Posts: 7
Joined: Fri May 03, 2013 9:29 am

Re: Email notification stopped after upgrad from 3.4.1 to 4.

Post by skazi »

What OS and release is the Nagios server running on? Nagios Core 4.3.4
If you look at the nagios.log file, do you see the system trying to send the Notifications? No see below
Do you see and errors in the /var/log/maillog file on the server? maillog is empty
If you go to the Process Info menu, does it show that Notifications are Enabled? Don't know where process info menu is located.

Nagios.log was not updated since Mar 28
[root@voipmon /]# cd ./usr/local/nagios/var/
[root@voipmon var]# ls
archives nagios.lock nagios.log objects.cache retention.dat rw spool status.dat
[root@voipmon var]# ls -l
total 8300
drwxrwxr-x. 2 nagios nagios 110592 Mar 27 2018 archives
-rw-r--r-- 1 nagios nagios 6 Mar 7 2018 nagios.lock
-rw-rw-r-- 1 nagios nagios 309008 Mar 28 2018 nagios.log
-rw-r--r--. 1 nagios nagios 1871452 Mar 7 2018 objects.cache
-rw------- 1 nagios nagios 3072860 Mar 28 2018 retention.dat
drwxrwsr-x. 2 nagios nagcmd 4096 Mar 7 2018 rw
drwxr-xr-x. 3 root root 4096 Jan 20 2012 spool
-rw-rw-r-- 1 nagios nagios 3115775 Mar 28 2018 status.dat
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Email notification stopped after upgrad from 3.4.1 to 4.

Post by tgriep »

The server has not ran since March 2018.
Is this the correct server?
Have you tried to start the nagios daemon?

Can you run the following commands and post the output here?

Code: Select all

ps -ef --cols=300
uname -a
cat /etc/*release*
chage -l nagios
find / -name nagios
find / -name nagios.cfg
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
skazi
Posts: 7
Joined: Fri May 03, 2013 9:29 am

Re: Email notification stopped after upgrad from 3.4.1 to 4.

Post by skazi »

Code: Select all

[root@voipmon ~]# ps -ef --cols=300
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Feb01 ?        00:00:09 /sbin/init
root         2     0  0 Feb01 ?        00:00:00 [kthreadd]
root         3     2  0 Feb01 ?        00:00:53 [migration/0]
root         4     2 19 Feb01 ?        49-18:06:33 [ksoftirqd/0]
root         5     2  0 Feb01 ?        00:00:00 [migration/0]
root         6     2  0 Feb01 ?        00:00:40 [watchdog/0]
root         7     2  0 Feb01 ?        00:00:57 [migration/1]
root         8     2  0 Feb01 ?        00:00:00 [migration/1]
root         9     2 11 Feb01 ?        29-22:57:37 [ksoftirqd/1]
root        10     2  0 Feb01 ?        00:00:34 [watchdog/1]
root        11     2  0 Feb01 ?        00:04:32 [migration/2]
root        12     2  0 Feb01 ?        00:00:00 [migration/2]
root        13     2  3 Feb01 ?        8-17:08:27 [ksoftirqd/2]
root        14     2  0 Feb01 ?        00:00:29 [watchdog/2]
root        15     2  0 Feb01 ?        00:00:54 [migration/3]
root        16     2  0 Feb01 ?        00:00:00 [migration/3]
root        17     2  4 Feb01 ?        12-21:29:48 [ksoftirqd/3]
root        18     2  0 Feb01 ?        00:00:32 [watchdog/3]
root        19     2  0 Feb01 ?        00:04:27 [migration/4]
root        20     2  0 Feb01 ?        00:00:00 [migration/4]
root        21     2  1 Feb01 ?        3-12:13:10 [ksoftirqd/4]
root        22     2  0 Feb01 ?        00:00:26 [watchdog/4]
root        23     2  0 Feb01 ?        00:04:35 [migration/5]
root        24     2  0 Feb01 ?        00:00:00 [migration/5]
root        25     2  1 Feb01 ?        4-05:15:02 [ksoftirqd/5]
root        26     2  0 Feb01 ?        00:00:29 [watchdog/5]
root        27     2  0 Feb01 ?        00:00:54 [migration/6]
root        28     2  0 Feb01 ?        00:00:00 [migration/6]
root        29     2  1 Feb01 ?        5-01:36:36 [ksoftirqd/6]
root        30     2  0 Feb01 ?        00:00:32 [watchdog/6]
root        31     2  0 Feb01 ?        00:04:38 [migration/7]
root        32     2  0 Feb01 ?        00:00:00 [migration/7]
root        33     2  1 Feb01 ?        2-15:09:13 [ksoftirqd/7]
root        34     2  0 Feb01 ?        00:00:27 [watchdog/7]
root        35     2  0 Feb01 ?        00:09:35 [events/0]
root        36     2  0 Feb01 ?        00:09:50 [events/1]
root        37     2  0 Feb01 ?        00:09:46 [events/2]
root        38     2  0 Feb01 ?        00:08:23 [events/3]
root        39     2  0 Feb01 ?        00:20:18 [events/4]
root        40     2  0 Feb01 ?        00:10:12 [events/5]
root        41     2  0 Feb01 ?        00:08:26 [events/6]
root        42     2  0 Feb01 ?        00:14:31 [events/7]
root        43     2  0 Feb01 ?        00:00:00 [cgroup]
root        44     2  0 Feb01 ?        00:00:00 [khelper]
root        45     2  0 Feb01 ?        00:00:00 [netns]
root        46     2  0 Feb01 ?        00:00:00 [async/mgr]
root        47     2  0 Feb01 ?        00:00:00 [pm]
root        48     2  0 Feb01 ?        00:00:37 [sync_supers]
root        49     2  0 Feb01 ?        00:00:44 [bdi-default]
root        50     2  0 Feb01 ?        00:00:00 [kintegrityd/0]
root        51     2  0 Feb01 ?        00:00:00 [kintegrityd/1]
root        52     2  0 Feb01 ?        00:00:00 [kintegrityd/2]
root        53     2  0 Feb01 ?        00:00:00 [kintegrityd/3]
root        54     2  0 Feb01 ?        00:00:00 [kintegrityd/4]
root        55     2  0 Feb01 ?        00:00:00 [kintegrityd/5]
root        56     2  0 Feb01 ?        00:00:00 [kintegrityd/6]
root        57     2  0 Feb01 ?        00:00:00 [kintegrityd/7]
root        58     2  0 Feb01 ?        00:02:48 [kblockd/0]
root        59     2  0 Feb01 ?        00:02:59 [kblockd/1]
root        60     2  0 Feb01 ?        00:01:16 [kblockd/2]
root        61     2  0 Feb01 ?        00:03:15 [kblockd/3]
root        62     2  0 Feb01 ?        00:01:20 [kblockd/4]
root        63     2  0 Feb01 ?        00:01:18 [kblockd/5]
root        64     2  0 Feb01 ?        00:03:12 [kblockd/6]
root        65     2  0 Feb01 ?        00:01:20 [kblockd/7]
root        66     2  0 Feb01 ?        00:00:00 [kacpid]
root        67     2  0 Feb01 ?        00:00:00 [kacpi_notify]
root        68     2  0 Feb01 ?        00:00:00 [kacpi_hotplug]
root        69     2  0 Feb01 ?        00:00:00 [ata/0]
root        70     2  0 Feb01 ?        00:00:00 [ata/1]
root        71     2  0 Feb01 ?        00:00:00 [ata/2]
root        72     2  0 Feb01 ?        00:00:00 [ata/3]
root        73     2  0 Feb01 ?        00:00:00 [ata/4]
root        74     2  0 Feb01 ?        00:00:00 [ata/5]
root        75     2  0 Feb01 ?        00:00:00 [ata/6]
root        76     2  0 Feb01 ?        00:00:00 [ata/7]
root        77     2  0 Feb01 ?        00:00:00 [ata_aux]
root        78     2  0 Feb01 ?        00:00:00 [ksuspend_usbd]
root        79     2  0 Feb01 ?        00:00:00 [khubd]
root        80     2  0 Feb01 ?        00:00:00 [kseriod]
root        81     2  0 Feb01 ?        00:00:00 [md/0]
root        82     2  0 Feb01 ?        00:00:00 [md/1]
root        83     2  0 Feb01 ?        00:00:00 [md/2]
root        84     2  0 Feb01 ?        00:00:00 [md/3]
root        85     2  0 Feb01 ?        00:00:00 [md/4]
root        86     2  0 Feb01 ?        00:00:00 [md/5]
root        87     2  0 Feb01 ?        00:00:00 [md/6]
root        88     2  0 Feb01 ?        00:00:00 [md/7]
root        89     2  0 Feb01 ?        00:00:00 [md_misc/0]
root        90     2  0 Feb01 ?        00:00:00 [md_misc/1]
root        91     2  0 Feb01 ?        00:00:00 [md_misc/2]
root        92     2  0 Feb01 ?        00:00:00 [md_misc/3]
root        93     2  0 Feb01 ?        00:00:00 [md_misc/4]
root        94     2  0 Feb01 ?        00:00:00 [md_misc/5]
root        95     2  0 Feb01 ?        00:00:00 [md_misc/6]
root        96     2  0 Feb01 ?        00:00:00 [md_misc/7]
root        97     2  0 Feb01 ?        00:00:06 [khungtaskd]
root        98     2  0 Feb01 ?        00:00:25 [kswapd0]
root        99     2  0 Feb01 ?        00:00:00 [ksmd]
root       100     2  0 Feb01 ?        00:00:00 [aio/0]
root       101     2  0 Feb01 ?        00:00:00 [aio/1]
root       102     2  0 Feb01 ?        00:00:00 [aio/2]
root       103     2  0 Feb01 ?        00:00:00 [aio/3]
root       104     2  0 Feb01 ?        00:00:00 [aio/4]
root       105     2  0 Feb01 ?        00:00:00 [aio/5]
root       106     2  0 Feb01 ?        00:00:00 [aio/6]
root       107     2  0 Feb01 ?        00:00:00 [aio/7]
root       108     2  0 Feb01 ?        00:00:00 [crypto/0]
root       109     2  0 Feb01 ?        00:00:00 [crypto/1]
root       110     2  0 Feb01 ?        00:00:00 [crypto/2]
root       111     2  0 Feb01 ?        00:00:00 [crypto/3]
root       112     2  0 Feb01 ?        00:00:00 [crypto/4]
root       113     2  0 Feb01 ?        00:00:00 [crypto/5]
root       114     2  0 Feb01 ?        00:00:00 [crypto/6]
root       115     2  0 Feb01 ?        00:00:00 [crypto/7]
root       120     2  0 Feb01 ?        00:00:00 [kthrotld/0]
root       121     2  0 Feb01 ?        00:00:00 [kthrotld/1]
root       122     2  0 Feb01 ?        00:00:00 [kthrotld/2]
root       123     2  0 Feb01 ?        00:00:00 [kthrotld/3]
root       124     2  0 Feb01 ?        00:00:00 [kthrotld/4]
root       125     2  0 Feb01 ?        00:00:00 [kthrotld/5]
root       126     2  0 Feb01 ?        00:00:00 [kthrotld/6]
root       127     2  0 Feb01 ?        00:00:00 [kthrotld/7]
root       129     2  0 Feb01 ?        00:00:00 [kpsmoused]
root       130     2  0 Feb01 ?        00:00:00 [usbhid_resumer]
root       160     2  0 Feb01 ?        00:00:00 [kstriped]
root       190     2  0 Feb01 ?        00:00:00 [ttm_swap]
root       198     2  0 Feb01 ?        18:28:14 [kslowd000]
root       199     2  0 Feb01 ?        18:28:12 [kslowd001]
root       318     2  0 Feb01 ?        00:02:28 [mpt_poll_0]
root       319     2  0 Feb01 ?        00:00:00 [mpt/0]
root       320     2  0 Feb01 ?        00:00:00 [scsi_eh_0]
root       328     2  0 Feb01 ?        00:00:00 [scsi_eh_1]
root       329     2  0 Feb01 ?        00:00:00 [scsi_eh_2]
root       420     2  0 Feb01 ?        00:00:00 [kdmflush]
root       422     2  0 Feb01 ?        00:00:00 [kdmflush]
root       441     2  0 Feb01 ?        00:19:11 [jbd2/dm-0-8]
root       442     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       443     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       444     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       445     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       446     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       447     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       448     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       449     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       457     2  0 Feb01 ?        01:08:48 [flush-253:0]
root       521     1  0 Feb01 ?        00:00:00 /sbin/udevd -d
root       708     2  0 Feb01 ?        00:04:28 [edac-poller]
root       871     2  0 Feb01 ?        00:00:00 [kdmflush]
root       906     2  0 Feb01 ?        00:00:00 [jbd2/sda1-8]
root       907     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       908     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       909     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       910     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       911     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       912     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       913     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       914     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       915     2  0 Feb01 ?        00:01:52 [jbd2/dm-2-8]
root       916     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       917     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       918     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       919     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       920     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       921     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       922     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       923     2  0 Feb01 ?        00:00:00 [ext4-dio-unwrit]
root       986     2  0 Feb01 ?        00:00:50 [kauditd]
root      1181     1  0 Feb01 ?        00:03:14 auditd
root      1197     1  0 Feb01 ?        00:01:14 /sbin/rsyslogd -i /var/run/syslogd.pid -c 5
dbus      1225     1  0 Feb01 ?        00:00:00 dbus-daemon --system
root      1240     1  0 Feb01 ?        00:59:26 /usr/sbin/snmpd -LS0-6d -Lf /dev/null -p /var/run/snmpd.pid
root      1252     1  0 Feb01 ?        00:00:06 /usr/sbin/sshd
root      1260     1  0 Feb01 ?        00:00:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root      1297     1  0 Feb01 ?        00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql
mysql     1386  1297 38 Feb01 ?        99-08:50:07 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock
nrpe      1409     1  0 Feb01 ?        00:10:49 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
root      1485     1  0 Feb01 ?        00:01:08 /usr/libexec/postfix/master
postfix   1494  1485  0 Feb01 ?        00:00:30 qmgr -l -t fifo -u
qpidd     1506     1  0 Feb01 ?        00:27:23 /usr/sbin/qpidd --data-dir /var/lib/qpidd --daemon
root      1539     1  0 Feb01 ?        00:02:37 crond
root      1584     1  0 Feb01 tty1     00:00:00 /sbin/mingetty /dev/tty1
root      1586     1  0 Feb01 tty2     00:00:00 /sbin/mingetty /dev/tty2
root      1588     1  0 Feb01 tty3     00:00:00 /sbin/mingetty /dev/tty3
root      1590     1  0 Feb01 tty4     00:00:00 /sbin/mingetty /dev/tty4
root      1592     1  0 Feb01 tty5     00:00:00 /sbin/mingetty /dev/tty5
root      1594     1  0 Feb01 tty6     00:00:00 /sbin/mingetty /dev/tty6
rpc       2574     1  0 May09 ?        00:00:09 rpcbind -w
root      2645     2  0 May09 ?        00:00:00 [rpciod/0]
root      2646     2  0 May09 ?        00:00:00 [rpciod/1]
root      2647     2  0 May09 ?        00:00:00 [rpciod/2]
root      2648     2  0 May09 ?        00:00:00 [rpciod/3]
root      2649     2  0 May09 ?        00:00:00 [rpciod/4]
root      2650     2  0 May09 ?        00:00:00 [rpciod/5]
root      2651     2  0 May09 ?        00:00:00 [rpciod/6]
root      2652     2  0 May09 ?        00:00:00 [rpciod/7]
root      2660     1  0 May09 ?        00:00:00 rpc.mountd
root      2665     2  0 May09 ?        00:00:00 [lockd]
root      2666     2  0 May09 ?        00:00:01 [nfsd4]
root      2667     2  0 May09 ?        00:00:00 [nfsd4_callbacks]
root      2668     2  0 May09 ?        00:00:00 [nfsd]
root      2669     2  0 May09 ?        00:00:00 [nfsd]
root      2670     2  0 May09 ?        00:00:00 [nfsd]
root      2671     2  0 May09 ?        00:00:00 [nfsd]
root      2672     2  0 May09 ?        00:00:00 [nfsd]
root      2673     2  0 May09 ?        00:00:00 [nfsd]
root      2674     2  0 May09 ?        00:00:00 [nfsd]
root      2675     2  0 May09 ?        00:00:00 [nfsd]
root      2698     1  0 May09 ?        00:00:00 rpc.idmapd
root      2968     2  0 May09 ?        00:00:00 [nfsiod]
rpcuser   2970     1  0 May09 ?        00:00:00 rpc.statd --no-notify
root      3651     1  0 Mar07 ?        00:03:51 /usr/sbin/httpd
apache    5111  3651  0 Oct14 ?        00:02:46 /usr/sbin/httpd
apache    5112  3651  0 Oct14 ?        00:02:46 /usr/sbin/httpd
apache    5113  3651  0 Oct14 ?        00:02:45 /usr/sbin/httpd
apache    5114  3651  0 Oct14 ?        00:02:45 /usr/sbin/httpd
apache    5117  3651  0 Oct14 ?        00:02:45 /usr/sbin/httpd
apache    5118  3651  0 Oct14 ?        00:02:46 /usr/sbin/httpd
apache    5119  3651  0 Oct14 ?        00:02:47 /usr/sbin/httpd
apache    5120  3651  0 Oct14 ?        00:02:45 /usr/sbin/httpd
apache    6615  3651  0 Oct15 ?        00:01:53 /usr/sbin/httpd
ntp      10462     1  0 Jun05 ?        00:00:19 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
cacti    12998     1  0 09:50 ?        00:00:01 /usr/bin/php -q /usr/share/cacti/cmd.php 0 90
root     14518  1539  0 09:55 ?        00:00:00 CROND
cacti    14523 14518  0 09:55 ?        00:00:00 /bin/sh -c /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
cacti    14525 14523 21 09:55 ?        00:00:11 /usr/bin/php /usr/share/cacti/poller.php
cacti    14531     1  0 09:55 ?        00:00:00 /usr/bin/php -q /usr/share/cacti/cmd.php 0 90
cacti    14535 14525  0 09:55 ?        00:00:00 /usr/bin/rrdtool -
root     14541  1252  0 09:55 ?        00:00:00 sshd: kazi [priv]
kazi     14736 14541  0 09:55 ?        00:00:00 sshd: kazi@pts/0 
kazi     14737 14736  0 09:55 pts/0    00:00:00 -bash
root     14891 14737  0 09:55 pts/0    00:00:00 su - root
root     14981 14891  0 09:55 pts/0    00:00:00 -bash
root     15032 14981  1 09:55 pts/0    00:00:00 ps -ef --cols=300
root     20036   521  0 Feb15 ?        00:00:00 /sbin/udevd -d
root     20059   521  0 Feb15 ?        00:00:00 /sbin/udevd -d
root     20329     2  0 May12 ?        00:00:48 [flush-253:2]
apache   20806  3651  0 Oct15 ?        00:01:48 /usr/sbin/httpd
apache   20867  3651  0 Oct15 ?        00:01:47 /usr/sbin/httpd
apache   20868  3651  0 Oct15 ?        00:01:47 /usr/sbin/httpd
postfix  21621  1485  0 08:31 ?        00:00:00 pickup -l -t fifo -u
apache   24941  3651  0 Oct14 ?        00:02:46 /usr/sbin/httpd
apache   24973  3651  0 Oct14 ?        00:02:45 /usr/sbin/httpd
apache   24974  3651  0 Oct14 ?        00:02:45 /usr/sbin/httpd
apache   30840  3651  0 Oct15 ?        00:02:07 /usr/sbin/httpd
[root@voipmon ~]# uname -a
Linux voipmon 2.6.32-279.19.1.el6.i686 #1 SMP Wed Dec 19 04:30:58 UTC 2012 i686 i686 i386 GNU/Linux
[root@voipmon ~]# cat /etc/*release*
CentOS release 6.3 (Final)
CentOS release 6.3 (Final)
CentOS release 6.3 (Final)
cpe:/o:centos:linux:6:GA
[root@voipmon ~]# chage -l nagios
Last password change                                    : Jan 20, 2012
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7
[root@voipmon ~]# find / -name nagios
/root/downloads/nagios
/root/downloads/nagios/base/nagios
/etc/rc.d/init.d/nagios
/etc/nagios
/home/michal/nagios
/home/BACKUP/nagios
/home/BACKUP/nagios/bin/nagios
/home/nagios
/home/nagios/nagios
/home/nagios/nagios/base/nagios
/home/nagios/nagios-4.3.4/base/nagios
/home/kazi/nagios
/home/kazi/nagios/bin/nagios
/usr/lib/nagios
/usr/local/nagios
/usr/local/nagios/bin/nagios
/var/db/sudo/nagios
/var/nagios
/var/spool/mail/nagios
/var/spool/nagios
/var/lock/subsys/nagios
[root@voipmon ~]# find / -name nagios.cfg
/root/.cpan/build/Nagios-Object-0.21.16-oIOoMa/t/nagios.cfg
/root/.cpan/build/Nagios-Object-0.21.16-oIOoMa/t/v3_config/nagios.cfg
/root/.cpan/build/Nagios-Object-0.21.16-oIOoMa/t/v2_config/nagios.cfg
/root/downloads/nagios/sample-config/nagios.cfg
/root/downloads/nagios/t-tap/smallconfig/nagios.cfg
/root/downloads/nagios/t/etc/nagios.cfg
/home/michal/nagios/t/etc/nagios.cfg
/home/michal/nagios/t-tap/smallconfig/nagios.cfg
/home/BACKUP/nagios/etc/nagios.cfg
/home/nagios/nagios/t/etc/nagios.cfg
/home/nagios/nagios/t-tap/smallconfig/nagios.cfg
/home/nagios/nagios/sample-config/nagios.cfg
/home/nagios/nagios-4.3.4/t/etc/nagios.cfg
/home/nagios/nagios-4.3.4/t-tap/smallconfig/nagios.cfg
/home/nagios/nagios-4.3.4/sample-config/nagios.cfg
/home/kazi/nagios/etc/nagios.cfg
/usr/local/nagios/etc/nagios.cfg
Last edited by tgriep on Fri Oct 19, 2018 10:18 am, edited 1 time in total.
Reason: Added Code Wraps around large output.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Email notification stopped after upgrad from 3.4.1 to 4.

Post by tgriep »

The nagios process is not running so run the following as root to start it.

Code: Select all

service nagios start
Then run this to check the status to see if it is running

Code: Select all

service nagios status
If it says it is running, then you are good to go.

If not, run this command to run a verification of nagios and post the output to the ticket.

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Be sure to check out our Knowledgebase for helpful articles and solutions!
skazi
Posts: 7
Joined: Fri May 03, 2013 9:29 am

Re: Email notification stopped after upgrad from 3.4.1 to 4.

Post by skazi »

Thank you its running again and I'm able to get notifications.

Can you tell me where I can change the email address for the notifications?
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Email notification stopped after upgrad from 3.4.1 to 4.

Post by tgriep »

If you want to change the emails address of a contact, you will have to edit the configuration file for that contacts email address.
On a typical server, you would edit the following file

Code: Select all

/usr/local/nagios/etc/objects/contacts.cfg
Look at this link for more details on how to format the options in the Nagios Config files.
https://assets.nagios.com/downloads/nag ... ml#contact
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked