Page 1 of 1

Invalid user with reports

Posted: Tue Feb 25, 2014 2:59 am
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?

Re: Invalid user with reports

Posted: Tue Feb 25, 2014 2:09 pm
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?

Re: Invalid user with reports

Posted: Thu Feb 27, 2014 11:04 am
by niebais
I'll check that out today.

Re: Invalid user with reports

Posted: Thu Feb 27, 2014 11:37 am
by lmiltchev
Sure, let us know how it went.