NagiosXI Wizard not passing token correctly to check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
jdk
Posts: 18
Joined: Tue Mar 31, 2020 2:48 am

NagiosXI Wizard not passing token correctly to check

Post by jdk »

I am on NagiosXI 2024R1.4.3 and have noted that when I use with the Windows or NCPA wizard, the token is not correctly configured in the actual check for the service.

While the token is not particularly complex, it does contain a ( and an @ symbol.

After running the Wizard, I need to manual amend each service and wrap the token with quotes ''

Is there any solution to this, or do I just need a token with no symbols?

Thanks
jdk
Posts: 18
Joined: Tue Mar 31, 2020 2:48 am

Re: NagiosXI Wizard not passing token correctly to check

Post by jdk »

NCAP client version is 2.4.1. I am having issues upgrading to a later release - but that is another issue
betterwound
Posts: 12
Joined: Mon Jul 24, 2023 11:11 pm

Re: NagiosXI Wizard not passing token correctly to check

Post by betterwound »

jdk wrote: Thu Jun 12, 2025 10:29 am NCAP client version is 2.4.1. I am having issuesSprunki 1996 upgrading to a later release - but that is another issue
I thought I was the only one having trouble updating to the new version?
kg2857
Posts: 490
Joined: Wed Apr 12, 2023 5:48 pm

Re: NagiosXI Wizard not passing token correctly to check

Post by kg2857 »

Edit: Sorry, I somehow missed the wizard part of the original post. Doh!

I'd look at the command defined under commands. If the token isn't single quoted, I'd quote it. There's not much difference in single and double quotes other than doubles are interpreted by the shell--meaning $ in a token could be interpreted as a variable, for example.
I did a search and it suggested that the token is user defined. Don't use silly characters in the token. That said, the devs should make allowances for silly things we users can use. :)
You may want to put the token in resource(s).cfg (I always forget) if it's currently in multiple service definitions.
Last edited by kg2857 on Fri Jun 13, 2025 10:27 pm, edited 1 time in total.
jdk
Posts: 18
Joined: Tue Mar 31, 2020 2:48 am

Re: NagiosXI Wizard not passing token correctly to check

Post by jdk »

So, I used a security token without the ) in the token and all has worked. The wizard process should really be amended to ensure the string it creates wraps the token in quotes. Anyway, I just need to get my security team to agree to use a less complex token.
Post Reply