Page 1 of 1

Cannot find user but getting notifications

Posted: Sun Jun 25, 2017 5:51 pm
by jkinning
As the Nagios admin I am getting these emails but when I search I cannot find this number/address. How can I find it and remove it?

Error: Invalid user address

Error message below:
550 - Requested action not taken: no such user here

Message details:
Subject: RECOVERY Service Alert
Sent date: Sun Jun 25 22:34:47 GMT 2017
MAIL FROM: [email protected]
RCPT TO: [email protected]
From: nagios_host <[email protected]>
To: <[email protected]>
Size (in bytes): 854

I cannot find the number@vtext so nagios quits trying to send out notifications. In fact, I couldn't even find the hosts or services that this was linked to.

Re: Cannot find user but getting notifications

Posted: Mon Jun 26, 2017 9:35 am
by cdienger
Try the following to help track down the user and host(s)/service(s) that is generating the alert:

Code: Select all

echo "select * from tbl_contact" | mysql -uroot -pnagiosxi -D nagiosql | grep <number>
If this returns results then you can run:

Code: Select all

echo "select * from tbl_host where contacts=<ID>"  | mysql -uroot -pnagiosxi -D nagiosql
echo "select * from tbl_service where contacts=<ID>"  | mysql -uroot -pnagiosxi -D nagiosql
where <ID> is the ID number shown in the first column results of the "select * from tbl_contact..." command.

Once you have this information you can take a closer look at the host(s)/service(s). You may also want to try running:

Code: Select all

grep -Ri <number> /usr/local/nagios/etc/
Hope this helps!

Re: Cannot find user but getting notifications

Posted: Mon Jun 26, 2017 10:08 am
by jkinning
Thanks this helped out alot. I was able to track down the number and user to have it modified.

You can close this thread.