RabbitMQ wordt door NetWorker-servers gebruikt als een Message Broker-agentservice; het biedt een message queuing-mechanisme tussen het NetWorker-serverproces (nsrd) en andere services die door NetWorker worden gebruikt, bijvoorbeeld: authc, NetWorker Management Console (NMC), NetWorker Web User Interface (NWUI), enzovoort. Problemen met de RabbitMQ-service zorgen ervoor dat de NetWorker-serverservice wordt afgesloten. Algemene berichten worden vastgelegd in de daemon.raw van de NetWorker-server:
/nsr/logs/daemon.raw
..\Program Files\EMC NetWorker\nsr\logs\daemon.raw
137911 YYYY-MM-DD HH:mm:SS AM/PM 5 5 0 313919296 1615791 0 NW_SERVER-NAME nsrctld NSR critical Aborting startup sequence: Process /opt/nsr/rabbitmq-server-3.8.18/bin/rabbitmq-server exited in less than 10 seconds at startup: exit code 0 127108 YYYY-MM-DD HH:mm:SS AM/PM 5 5 0 313919296 1615791 0 NW_SERVER-NAME nsrctld NSR critical Failed to start all daemons; shutting down...
Het logboekpad varieert, afhankelijk van de gebruikte versie van de rabbitmq-server. NetWorker-versies kunnen nieuwere versies van RabbitMQ bevatten. Versiespecifieke details zijn te vinden in de NetWorker installatie- en NetWorker Administration handleidingen, beschikbaar via: https://www.dell.com/support/home/en-us/product-support/product/networker/docs
/nsr/logs/daemon.raw | NetWorker serviceslogboek |
/opt/nsr/rabbitmq-server*/var/log/rabbitmq/log/crash.log | RabbitMQ-crashlogboeken, deze map bevat crash.log#, afhankelijk van de rotatie van het logboek. |
/opt/nsr/rabbitmq-server*/var/log/rabbitmq/rabbit@localhost.log | RabbitMQ algemeen logboek |
/opt/nsr/rabbitmq-server*/var/log/rabbitmq/rabbit@localhost_upgrade.log | RabbitMQ-upgradelogboek |
/nsr/tmp/rabbitmq/cores/erl_crash.dump | Trace logs van crashstack |
C:\Program Files\EMC NetWorker\nsr\logs\daemon.raw | NetWorker serviceslogboek |
C:\Program Files\EMC NetWorker\nsr\tmp\RabbitMQ\log\log\crash.log | RabbitMQ-crashlogboeken, deze map bevat crash.log#, afhankelijk van de rotatie van het logboek. |
C:\Program Files\EMC NetWorker\nsr\tmp\RabbitMQ\log\rabbit@HOSTNAME.log | RabbitMQ algemeen logboek |
C:\Program Files\EMC NetWorker\nsr\tmp\RabbitMQ\log\rabbit@HOSTNAME_upgrade.log | RabbitMQ-upgradelogboek |
C:\Program Files\EMC NetWorker\nsr\tmp\RabbitMQ\cores\erl_crash.dump | Trace logs van crashstack |
Foutopsporingsopties kunnen variëren, afhankelijk van de RabbitMQ-versie. De versie wordt aangegeven door de map rabbitmq-server onder:
/opt/nsr/rabbitmq-server-#.#.#
..\Program Files\EMC NetWorker\nsr\rabbitmq-server-#.#.#
/opt/nsr/rabbitmq-server-3.8.18/etc/rabbitmq/rabbitmq.config
..\Program Files\EMC NetWorker\nsr\rabbitmq-server-3.8.18\etc\rabbitmq.config
%% {log_levels, [{channel, info}, {connection, info}, {federation, info}, {mirroring, info}]},
{log_levels, [{connection, debug}, {queue, debug}]},
{log,
[{file, [{level, debug}]},
{categories,
[{connection,
[{level, debug}]
},
{queue,
[{level, debug}]
}
]
}]
},
[
{rabbit,
[{tcp_listeners, []},
{log_levels, [{connection, debug}, {queue, debug}]},
{log,
[{file, [{level, debug}]},
{categories,
[{connection,
[{level, debug}]
},
{queue,
[{level, debug}]
}
]
}]
},
{ssl_listeners, [5671]},
systemctl restart networker
net stop nsrd /y && net start nsrd
Wanneer RabbitMQ wordt uitgevoerd, moet poort 5671 (SSL) naar de NetWorker-server luisteren.
nsrports -t localhost -p 5671
Je kunt de volgende commando's gebruiken om de Process ID (PID) van het proces te krijgen dat luistert op 5671. Het proces dat gekoppeld is aan poort 5671 moet afkomstig zijn van de rabbitmq-server.
Linux:
netstat -apno | grep 5671 ps -ef | grep PID
Voorbeeld:
nve:~ # netstat -apno | grep 5671 tcp 0 0 192.168.9.101:52676 192.168.9.101:5671 ESTABLISHED 2607/gstd keepalive (5922.75/0/0) tcp 0 0 :::5671 :::* LISTEN 5238/beam.smp off (0.00/0/0) tcp 0 0 192.168.9.101:52654 192.168.9.101:5671 ESTABLISHED 2128/java off (0.00/0/0) tcp 0 0 ::1:5671 ::1:50974 ESTABLISHED 5238/beam.smp off (0.00/0/0) tcp 0 0 ::1:50974 ::1:5671 ESTABLISHED 5519/nsrjobd keepalive (5922.75/0/0) tcp 0 0 192.168.9.101:52668 192.168.9.101:5671 ESTABLISHED 2128/java off (0.00/0/0) tcp 0 0 192.168.9.101:5671 192.168.9.101:52654 ESTABLISHED 5238/beam.smp off (0.00/0/0) tcp 0 0 192.168.9.101:5671 192.168.9.101:52676 ESTABLISHED 5238/beam.smp off (0.00/0/0) tcp 0 0 192.168.9.101:5671 192.168.9.101:52668 ESTABLISHED 5238/beam.smp off (0.00/0/0) nve:~ # ps -ef | grep 5238 root 5238 5232 0 Jun05 ? 00:02:55 /opt/nsr/rabbitmq-server-3.11.16/erts-13.2.2/bin/beam.smp -W w -MBas ageffcbf -MHas ageffcbf -MBlmbcs 512 -MHlmbcs 512 -MMmcs 30 -P 1048576 -t 5000000 -stbt db -zdbbl 128000 -sbwt none -sbwtdcpu none -sbwtdio none -B i -- -root /opt/nsr/rabbitmq-server-3.11.16 -bindir /opt/nsr/rabbitmq-server-3.11.16/erts-13.2.2/bin -progname erl -- -home /nsr/rabbitmq -- -pa -noshell -noinput -s rabbit boot -boot start_sasl -syslog logger [] -syslog syslog_error_logger false -kernel prevent_overlapping_partitions false root 5247 5238 0 Jun05 ? 00:00:00 erl_child_setup 1024 root 26598 26408 0 11:42 pts/0 00:00:00 grep --color=auto 5238
Windows:
netstat -ano | findstr 5671 wmic process where "ProcessID='PID'" get ProcessID,ExecutablePath
Voorbeeld:
PS C:\Users\Administrator.AMER> netstat -ano | findstr 5671 TCP 0.0.0.0:5671 0.0.0.0:0 LISTENING 356 TCP 192.168.9.123:5671 192.168.9.123:63097 ESTABLISHED 356 TCP 192.168.9.123:5671 192.168.9.123:63098 ESTABLISHED 356 TCP 192.168.9.123:63097 192.168.9.123:5671 ESTABLISHED 6324 TCP 192.168.9.123:63098 192.168.9.123:5671 ESTABLISHED 6324 TCP [::]:5671 [::]:0 LISTENING 356 TCP [::1]:5671 [::1]:63105 ESTABLISHED 356 TCP [::1]:5671 [::1]:63106 ESTABLISHED 356 TCP [::1]:63105 [::1]:5671 ESTABLISHED 4676 TCP [::1]:63106 [::1]:5671 ESTABLISHED 776 PS C:\Users\Administrator.AMER> wmic process where "ProcessID='356'" get ProcessID,ExecutablePath ExecutablePath ProcessId C:\Program Files\EMC NetWorker\nsr\rabbitmq-server-3.8.18\bin\erl.exe 356