Re: Nagiosxi HA version upgrade
Posted: Fri Aug 14, 2020 9:49 am
Hello,
we have successfully upgrade the cluster to latest version and after upgrade the livestatus is facing some issues. Telnet shows the below error
Couldn't connect to UNIX-socket at /usr/local/nagios/var/rw/live: Connection refused.
Connection closed by foreign host.
[root@qy-nagios-a ~]# netstat -tulpn | grep 655
tcp6 0 0 :::6557 :::* LISTEN 22572/xinetd
Trying 10.25.32.13...
Connected to 10.25.32.13.
Escape character is '^]'.
Couldn't connect to UNIX-socket at /usr/local/nagios/var/rw/live: Connection refused.
Connection closed by foreign host.
You have new mail in /var/spool/mail/root
Below is the configuration for livestatus.
service livestatus
{
type = UNLISTED
port = 6557
socket_type = stream
protocol = tcp
wait = no
# limit to 100 connections per second. Disable 3 secs if above.
cps = 1000 3
# set the number of maximum allowed parallel instances of unixcat.
# Please make sure that this values is at least as high as
# the number of threads defined with num_client_threads in
# etc/mk-livestatus/nagios.cfg
instances = 5000
# limit the maximum number of simultaneous connections from
# one source IP address
per_source = 2500
# Disable TCP delay, makes connection more responsive
flags = NODELAY
user = nagios
server = /usr/local/nagios/bin/unixcat
server_args = /usr/local/nagios/var/rw/live
# configure the IP address(es) of your Nagios server here:
# only_from = 127.0.0.1 10.0.20.1 10.0.20.2
disable = no
}
++++++++++++++++++++++++++++++++++
[root@qy-nagios-a ~]# systemctl status xinetd
â xinetd.service - Xinetd A Powerful Replacement For Inetd
Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2020-08-14 07:19:13 PDT; 29min ago
Process: 16916 ExecReload=/usr/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
Process: 22571 ExecStart=/usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid $EXTRAOPTIONS (code=exited, status=0/SUCCESS)
Main PID: 22572 (xinetd)
CGroup: /system.slice/xinetd.service
ââ22572 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
Aug 14 07:48:22 qy-nagios-a.i xinetd[22572]: EXIT: nrpe status=0 pid=12121 duration=0(sec)
Aug 14 07:48:22 qy-nagios-a.i xinetd[22572]: START: nrpe pid=12132 from=::ffff:10.34.32.150
Aug 14 07:48:23 qy-nagios-a.isudo[12134]: nagios : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/opt/nagios/libexec/check_init_service crond
Aug 14 07:48:23 qy-nagios-a.i xinetd[22572]: EXIT: nrpe status=0 pid=12132 duration=1(sec)
Aug 14 07:48:33 qy-nagios-a.i xinetd[22572]: START: livestatus pid=12371 from=::ffff:10.65.32.79
Aug 14 07:48:33 qy-nagios-a.i xinetd[22572]: EXIT: livestatus status=4 pid=12371 duration=0(sec)
Aug 14 07:48:34 qy-nagios-a.i xinetd[22572]: START: livestatus pid=12375 from=::ffff:10.65.32.79
Aug 14 07:48:34 qy-nagios-a.i xinetd[22572]: EXIT: livestatus status=4 pid=12375 duration=0(sec)
Aug 14 07:48:46 qy-nagios-a.i xinetd[22572]: START: livestatus pid=12604 from=::ffff:10.65.32.79
Aug 14 07:48:46 qy-nagios-a.i xinetd[22572]: EXIT: livestatus status=4 pid=12604 duration=0(sec)
++++++++++++++++++++++++++++++++++
we have successfully upgrade the cluster to latest version and after upgrade the livestatus is facing some issues. Telnet shows the below error
Couldn't connect to UNIX-socket at /usr/local/nagios/var/rw/live: Connection refused.
Connection closed by foreign host.
[root@qy-nagios-a ~]# netstat -tulpn | grep 655
tcp6 0 0 :::6557 :::* LISTEN 22572/xinetd
Trying 10.25.32.13...
Connected to 10.25.32.13.
Escape character is '^]'.
Couldn't connect to UNIX-socket at /usr/local/nagios/var/rw/live: Connection refused.
Connection closed by foreign host.
You have new mail in /var/spool/mail/root
Below is the configuration for livestatus.
service livestatus
{
type = UNLISTED
port = 6557
socket_type = stream
protocol = tcp
wait = no
# limit to 100 connections per second. Disable 3 secs if above.
cps = 1000 3
# set the number of maximum allowed parallel instances of unixcat.
# Please make sure that this values is at least as high as
# the number of threads defined with num_client_threads in
# etc/mk-livestatus/nagios.cfg
instances = 5000
# limit the maximum number of simultaneous connections from
# one source IP address
per_source = 2500
# Disable TCP delay, makes connection more responsive
flags = NODELAY
user = nagios
server = /usr/local/nagios/bin/unixcat
server_args = /usr/local/nagios/var/rw/live
# configure the IP address(es) of your Nagios server here:
# only_from = 127.0.0.1 10.0.20.1 10.0.20.2
disable = no
}
++++++++++++++++++++++++++++++++++
[root@qy-nagios-a ~]# systemctl status xinetd
â xinetd.service - Xinetd A Powerful Replacement For Inetd
Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2020-08-14 07:19:13 PDT; 29min ago
Process: 16916 ExecReload=/usr/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
Process: 22571 ExecStart=/usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid $EXTRAOPTIONS (code=exited, status=0/SUCCESS)
Main PID: 22572 (xinetd)
CGroup: /system.slice/xinetd.service
ââ22572 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
Aug 14 07:48:22 qy-nagios-a.i xinetd[22572]: EXIT: nrpe status=0 pid=12121 duration=0(sec)
Aug 14 07:48:22 qy-nagios-a.i xinetd[22572]: START: nrpe pid=12132 from=::ffff:10.34.32.150
Aug 14 07:48:23 qy-nagios-a.isudo[12134]: nagios : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/opt/nagios/libexec/check_init_service crond
Aug 14 07:48:23 qy-nagios-a.i xinetd[22572]: EXIT: nrpe status=0 pid=12132 duration=1(sec)
Aug 14 07:48:33 qy-nagios-a.i xinetd[22572]: START: livestatus pid=12371 from=::ffff:10.65.32.79
Aug 14 07:48:33 qy-nagios-a.i xinetd[22572]: EXIT: livestatus status=4 pid=12371 duration=0(sec)
Aug 14 07:48:34 qy-nagios-a.i xinetd[22572]: START: livestatus pid=12375 from=::ffff:10.65.32.79
Aug 14 07:48:34 qy-nagios-a.i xinetd[22572]: EXIT: livestatus status=4 pid=12375 duration=0(sec)
Aug 14 07:48:46 qy-nagios-a.i xinetd[22572]: START: livestatus pid=12604 from=::ffff:10.65.32.79
Aug 14 07:48:46 qy-nagios-a.i xinetd[22572]: EXIT: livestatus status=4 pid=12604 duration=0(sec)
++++++++++++++++++++++++++++++++++