[Nagios-devel] Bad address error during email notifications
Posted: Fri Mar 21, 2003 8:35 am
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. =20
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@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. =20
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 post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
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. =20
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@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. =20
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 post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]