After update to 5.11.0, Nagios running but not checking

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
vornado
Posts: 79
Joined: Wed Jun 13, 2018 9:17 am

After update to 5.11.0, Nagios running but not checking

Post by vornado »

Good morning.

This morning, I updated Nagios on our dev and DR servers (CentOS Linux release 7.9.2009 (Core)) to version 5.11.0. Since then, "systemctl status nagios" shows that the Nagios service is running, but it is not checking anything. 'Last Check' shows the time just before the update was finished.

ncpa_listener also appears to be running. I ran a "pre-flight check" which reports 43 warnings and no errors.

Code: Select all

[root@c210enat01 ~]# systemctl status nagios
● nagios.service - Nagios Core 4.4.13
   Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2023-06-28 10:34:10 EDT; 15min ago
     Docs: https://www.nagios.org/documentation
  Process: 17142 ExecStopPost=/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
  Process: 17140 ExecStop=/bin/kill -s TERM ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 17146 ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
  Process: 17144 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
 Main PID: 17148 (nagios)
   CGroup: /system.slice/nagios.service
           ├─17148 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
           ├─17149 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─17150 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─17151 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─17152 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─17155 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
           └─24084 python /usr/local/nagios/libexec/check_ncpa.py -H C210EIBSCAP02 -t V0rnad0 -P 5693 -M plugins/check_yum.sh

Jun 28 10:37:50 c210enat01.vornadort.com sudo[18714]:   nagios : TTY=unknown ; PWD=/tmp ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh status ndo2db
Jun 28 10:38:39 c210enat01.vornadort.com nagios[17148]: SERVICE ALERT: Steve Brown Office PC NCPA;CPU Usage;OK;SOFT;2;OK: Percent was 63.57 %
Jun 28 10:39:42 c210enat01.vornadort.com sudo[19598]:   nagios : TTY=unknown ; PWD=/tmp ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh status mysqld
Jun 28 10:40:01 c210enat01.vornadort.com sudo[19663]:   nagios : TTY=unknown ; PWD=/tmp ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh status crond
Jun 28 10:42:29 c210enat01.vornadort.com sudo[20852]:   nagios : TTY=unknown ; PWD=/tmp ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh status httpd
Jun 28 10:42:49 c210enat01.vornadort.com sudo[20971]:   nagios : TTY=unknown ; PWD=/tmp ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh status ndo2db
Jun 28 10:44:41 c210enat01.vornadort.com sudo[21813]:   nagios : TTY=unknown ; PWD=/tmp ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh status mysqld
Jun 28 10:45:00 c210enat01.vornadort.com sudo[21929]:   nagios : TTY=unknown ; PWD=/tmp ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh status crond
Jun 28 10:47:27 c210enat01.vornadort.com sudo[23138]:   nagios : TTY=unknown ; PWD=/tmp ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh status httpd
Jun 28 10:47:49 c210enat01.vornadort.com sudo[23261]:   nagios : TTY=unknown ; PWD=/tmp ; USER=root ; COMMAND=/usr/local/nagiosxi/scripts/manage_services.sh status ndo2db

Code: Select all

[root@c210enat01 ~]# systemctl status ncpa_listener
● ncpa_listener.service - LSB: This manages the NCPA Listener service
   Loaded: loaded (/etc/rc.d/init.d/ncpa_listener; bad; vendor preset: disabled)
   Active: active (running) since Wed 2023-06-28 10:46:29 EDT; 4min 55s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 22699 ExecStop=/etc/rc.d/init.d/ncpa_listener stop (code=exited, status=0/SUCCESS)
  Process: 22709 ExecStart=/etc/rc.d/init.d/ncpa_listener start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/ncpa_listener.service
           └─22720 /usr/local/ncpa/ncpa_listener --start

Jun 28 10:46:29 c210enat01.vornadort.com systemd[1]: Stopped LSB: This manages the NCPA Listener service.
Jun 28 10:46:29 c210enat01.vornadort.com systemd[1]: Starting LSB: This manages the NCPA Listener service...
Jun 28 10:46:29 c210enat01.vornadort.com systemd[1]: Started LSB: This manages the NCPA Listener service.
Jun 28 10:46:29 c210enat01.vornadort.com ncpa_listener[22709]: Starting NCPA Listener: [  OK  ]
Jun 28 10:48:19 c210enat01.vornadort.com sudo[23516]:   nagios : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/yum check-update
Jun 28 10:50:34 c210enat01.vornadort.com sudo[24553]:   nagios : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/yum check-update

Code: Select all

[root@c210enat01 ~]# /usr/local/nagios/bin/nagios -vvv /usr/local/nagios/etc/nagios.cfg
...
...
...
        Checked 100 hosts.
        Checked 8 host groups.
        Checked 34 service groups.
        Checked 19 contacts.
        Checked 3 contact groups.
        Checked 151 commands.
        Checked 25 time periods.
        Checked 0 host escalations.
        Checked 0 service escalations.
Checking for circular paths...
        Checked 100 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 25 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 43
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
Also, when I check 'Process Info', only one item -- Process State -- is listed:
nagios-support.png
I'm not sure what else to check. Assistance would be appreciated.

Thanks and best regards,

Steve
You do not have the required permissions to view the files attached to this post.
sgaudette
Posts: 1
Joined: Fri May 01, 2020 11:01 am

Re: After update to 5.11.0, Nagios running but not checking

Post by sgaudette »

Had the same issue. See forum post viewtopic.php?t=65770
vornado
Posts: 79
Joined: Wed Jun 13, 2018 9:17 am

Re: After update to 5.11.0, Nagios running but not checking

Post by vornado »

Thanks, sgaudette -- that seems to have fixed the problem. This case can be closed.
Post Reply