Bad address error during email notifications
ABostick at mydoconline.com
ABostick at mydoconline.com
Fri Mar 21 17:31:51 CET 2003
Hi,
I've been using nagios for 11 months now with great results. I recently
migrated my nagios server from an older Dell 1650 to a newer Dell 1650. I
used Mandrake 8.2 on both with the same packages. I also compiled with the
same options, etc. Basically I tried to mirror the two servers. The new
server seems to work great, all the checks are working, web server is fine,
etc.
Except for notifications. No notifications work. I ran nagios in debug mode
and have isolated the problem to utils.c, in function my_system(). This
function creates a non blocking pipe, forks a process, opens another pipe in
the new process and writes the output back to the parent process or something
like that. It's a little confusing to me. :)
With the debugging I can see the command sent to the pipe, its a printf
"message" | mail -s "subject" user at somewhere type command. I cut and paste
the exact command to a shell and the mail goes out and I get notified.
However, when nagios tries to send it through the pipe, the stdout shows the
message "Bad address" and no mail gets sent.
I have tried to duplicate the Bad address message from the command line but
have not been able to do it with mail. I have also tried a lot of other
things but this Bad address just won't go away! Anyone else seen this or
know why? I have the exact config on another box and it works great!
I googled for Bad address and nagios and saw someone from last year on the
netsaint list had this problem as well but they did not post a resolution.
I really am at a loss on this one so any help is would be wonderful!
Thanks a million,
Aaron Bostick
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list