Cannot find user but getting notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Cannot find user but getting notifications

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Cannot find user but getting notifications

Post 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!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Cannot find user but getting notifications

Post 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.
Locked