Invalid user with reports

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Invalid user with reports

Post by niebais »

Nagios XI 2.8c
Centos 6 64 bit

I found an interesting issue with sending out reports. We created a user that logs in automatically. After that we click on reports and choose the availability report. Next we click on the email button and try sending out a report. This is the error I get:
Report failed to send. ARGV: Array ( [0] => /usr/local/guardian/html/includes/components/scheduledreporting/sendreport.php [1] => --report=nstjaj [2] => --username=generic_view [3] => only ) ARGS: Array ( [report] => nstjaj [username] => generic_view [0] => only ) Error: Bad username

It puts up a big nice debugging message for us.

Can you give me some clues as to what is going on?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Invalid user with reports

Post by lmiltchev »

I was not able to recreate the issue... I created a user, called "test-auto":

Authorization Level = User
Can see all hosts and services = checked

I logged in once as this user to accept the License Agreement. I set this user to auto-login, auto-logged in as "test-auto", and sent an Availability Report to users email successfully...

Did you follow the same steps? BTW, do you have error reporting enabled in the "/etc/php.ini" file?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Invalid user with reports

Post by niebais »

I'll check that out today.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Invalid user with reports

Post by lmiltchev »

Sure, let us know how it went.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked