Email User Account Info DOES NOT DISPLAY USERNAME?

This support forum board is for questions relating to Nagios Fusion.
Locked
TBT
Posts: 609
Joined: Wed May 18, 2011 1:26 pm

Email User Account Info DOES NOT DISPLAY USERNAME?

Post by TBT »

When an account is created in Fusion 4.1.5 with the "Email User Account Information" option checked, no username is passed along in the email received, it simply displays "Username: none".

This passed Nagios internal QA testing, so lets assume it was by design. In that case, what is the purpose of not displaying the UID? Furthermore, if this is not intentional, can we get a fix ASAP?
Nagios XI 5.7.5 (9 Servers)
Nagios Fusion 4.1.9
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Email User Account Info DOES NOT DISPLAY USERNAME?

Post by lmiltchev »

This is definitely not "by design". I filed an internal bug report (task_id=13680), and our developers will be looking into it as soon as they can. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Email User Account Info DOES NOT DISPLAY USERNAME?

Post by lmiltchev »

Update:
Here's a fix for you. Open vi /usr/local/nagiosfusion/html/admin/users.php in a text editor, and change lines 379 to 385 to look like this:

Code: Select all

foreach ($user_mapping as $server_id => $server_username) {
                if ($server_username == 'none') {
                    delete_current_mapped_user($server_id, $user_id);
                } else {
                    set_current_mapped_user($server_id, $server_username, $user_id);
                }
            }
Note: You will be replacing $username with $server_username.

Let us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
TBT
Posts: 609
Joined: Wed May 18, 2011 1:26 pm

Re: Email User Account Info DOES NOT DISPLAY USERNAME?

Post by TBT »

Issue resolved by changing three (3) occurrences of $username to $server_username.

Please send my "Nagios bug hunter of the month" trophy in the mail. ;)

Thanks again,
Nagios XI 5.7.5 (9 Servers)
Nagios Fusion 4.1.9
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Email User Account Info DOES NOT DISPLAY USERNAME?

Post by lmiltchev »

Please send my "Nagios bug hunter of the month" trophy in the mail. ;)
LOL
Let us know if you have any more questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked