Page 1 of 1

Notifications showing $ instead of value

Posted: Fri Apr 12, 2024 4:36 am
by aziegler
Hello,

I have a fairly new and unmodified NagiosXI installation running that I am setting up for a few cases. Most things are working and I am just going through all configuration steps.

However, the notifications for the services look weird. While the notifications for host alerts look fine, the notifications for services don't show the service name or the service state, only "$", so basically they look like this:


***** Nagios Monitor XI Alert *****

Notification Type: RECOVERY

Service: $
Host: <<correct name>>
Address: <<correct address>>
State: $

Date/Time: Fri Apr 12 09:46:45 CEST 2024

Additional Info:

$


From my point of view, the value for service name should be filled out as I filled out "config name", "description" and "display name". I didn't modify the notification template or the standard states, so it seems I am missing something. Can anyone point me to it please? Many thanks!

Re: Notifications showing $ instead of value

Posted: Thu Apr 18, 2024 2:49 pm
by danderson
Thanks for reaching out @aziegler,

Is this happening for all services or just a select few? Can you send some examples of the what the service names are? Lastly, what version of XI and which linux distro are you on?

Re: Notifications showing $ instead of value

Posted: Fri Apr 19, 2024 12:57 am
by aziegler
Hello danderson, thanks for replying.

This is currently happening for all services, but for none of the host-messages. I find that a bit weird since I didn't configure them any differently.

I am using XI-version 2024R1.0.2
The linux distro is Ubuntu.

One service that is affected by this has roughly these values (a bit changed for anonymity reasons), and the others are similar:

Config Name: sports.our-domain.com
Description: content check
Display name: sports.our-domain.com content check

I was hoping that one of these would get picked up as name instead of "$".

Re: Notifications showing $ instead of value

Posted: Fri Apr 19, 2024 4:32 pm
by danderson
How are your email settings in XI configured? I'm wondering if you are using sendmail, SMTP, or Oauth2

Re: Notifications showing $ instead of value

Posted: Mon Apr 22, 2024 12:17 am
by aziegler
I am using SMTP. We have a company SMTP, so that's basically the no-alternative-way for me. In principle, email-sending does work - as said, mails are sent and the HOST-messages look fine. It's just the service-messages that are bugged.

Re: Notifications showing $ instead of value

Posted: Mon Apr 22, 2024 10:36 am
by danderson
If you go to Account Settings -> Notification Options -> Notification Messages, what does your service alert message look like? Mine looks like this:

Code: Select all

***** Nagios XI Alert *****

%alertsummary%

Notification Type: %type%

Service: %service%
Host: %host%
Address: %hostaddress%
State: %servicestate%
Info:
%serviceoutput%
Date/Time: %datetime%

Respond: %responseurl%
Nagios URL: %xiserverurl%

Re: Notifications showing $ instead of value

Posted: Mon Apr 22, 2024 11:13 am
by aziegler
They look exactly the same down to the last character.

Re: Notifications showing $ instead of value

Posted: Tue Apr 23, 2024 5:36 pm
by danderson
This seems like a bug and I can't seem to replicate it, you might get some better luck opening a ticket with the Nagios Support Team at https://answerhub.nagios.com/support/s/ because they can do a more in depth analysis

Re: Notifications showing $ instead of value

Posted: Tue Apr 30, 2024 1:13 am
by aziegler
OK, thanks, I will try that