Having trouble configuring transport-nagios after latest update
-
Hi,
I am running xo from sources on the latest commit and have noticed that the configuration from older versions for transport-nagios NSCA backup reports no longer sends data to my check_mk server.
I've seen in patch notes that there was an update and improvement to the way reports are sent but I am having trouble adjusting the configuration.
So the server, port and key stays the same, but host and service should be adjusted. The old configuration was like this:host: xo hostname as defined on nagios
service: service name as defined on nagiosI have tried to add {vm.name_label} to host and {job.name} to service as the description in GUI suggests but the monitoring server isn't getting any reports. Can anyone provide additional info on how this should be setup ?
Thanks
-
@ilidza I dont use Nagios reporting myself, but I noticed in my /var/log/orchestra.log the following after the last git pull. You might want to see if there is anything in there that looks similar:
2022-12-14T00:00:35.623Z xo:server:handleBackupLog WARN sendToNagios: TypeError: app.sendPassiveCheck is not a function at sendToNagios (file:///root/XO/xen-orchestra/packages/xo-server/src/_handleBackupLog.mjs:21:15) at handleBackupLog (file:///root/XO/xen-orchestra/packages/xo-server/src/_handleBackupLog.mjs:69:9) at file:///root/XO/xen-orchestra/packages/xo-server/src/xo-mixins/backups-ng/index.mjs:317:17 at ChildProcess.<anonymous> (/root/XO/xen-orchestra/@xen-orchestra/backups/runBackupWorker.js:27:11) at ChildProcess.emit (node:events:513:28) at ChildProcess.patchedEmit [as emit] (/root/XO/xen-orchestra/@xen-orchestra/log/configure.js:135:17) at emit (node:internal/child_process:937:14) at processTicksAndRejections (node:internal/process/task_queues:83:21) -
@julien-f Is this comparison correct? Shouldn't it bail on the opposite condition (equal instead of not equal)?
https://github.com/vatesfr/xen-orchestra/commit/ba782d2698d3d3af25c8a07d932539e1ef772113
-
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
