Thanks - That worked, although I had to change the commands to include the sudo commands SOFT 1, SOFT 2, HARD 3, and HARD 4. And prepend ‘sudo’ to the command defnitiions.
Thanks again.
sg
p.s. now my notify-by-epager (to cingular) seems to result in:
(error from maillog) i was confused about the (501/501) but i think this is nagios’s uid not a mail error, or is it? i’m still a little confused about this (as it appears they are accepted for delivery - but i never receive the pages, and some are 421 errors)- do i need to do anything to sendmail.mc?
i think i need to have a reverse dns name setup for this machine - it may solve the 421s …
e.g. mail-archive.com/nagios-user … 05887.html
(k7D3IWkS032403 Message accepted for delivery)
Aug 12 23:18:32 hostname sendmail[32405]: k7D3IWkS032403: to=[email protected], delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120497, relay=atlsmtp.cingularme.net. [66.102.165.114], dsn=4.0.0, stat=Deferred: 421 Service not available
Aug 12 23:18:32 hostname sendmail[32397]: k7D3IWsr032395: to=[email protected], delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120564, relay=gmail-smtp-in.l.google.com. [66.249.83.114], dsn=2.0.0, stat=Sent (OK 1155439122 i13si5706559wxd)
Aug 12 23:20:52 hostname sendmail[32525]: k7D3Kqh2032525: from=nagios, size=289, class=0, nrcpts=1, msgid=[email protected], relay=nagios@localhost
Aug 12 23:20:52 hostname sendmail[32526]: k7D3KqEN032526: from=[email protected], size=557, class=0, nrcpts=1, msgid=[email protected], proto=ESMTP, daemon=MTA, relay=mydomain.com [127.0.0.1]
Aug 12 23:20:52 hostname sendmail[32525]: k7D3Kqh2032525: [email protected], ctladdr=nagios (501/501), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30289, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k7D3KqEN032526 Message accepted for delivery)
Aug 12 23:20:52 hostname sendmail[32533]: k7D3KqoN032533: from=nagios, size=214, class=0, nrcpts=1, msgid=[email protected], relay=nagios@localhost
Aug 12 23:20:52 hostname sendmail[32534]: k7D3KqLX032534: from=[email protected], size=489, class=0, nrcpts=1, msgid=[email protected], proto=ESMTP, daemon=MTA, relay=mydomain.com [127.0.0.1]
Aug 12 23:20:52 hostname sendmail[32533]: k7D3KqoN032533: [email protected], ctladdr=nagios (501/501), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30214, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k7D3KqLX032534 Message accepted for delivery)
Aug 12 23:20:52 hostname sendmail[32536]: k7D3KqLX032534: to=[email protected], delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120489, relay=atlsmtp.cingularme.net. [66.102.165.114], dsn=4.0.0, stat=Deferred: 421 Service not available
Aug 12 23:20:52 hostname sendmail[32528]: k7D3KqEN032526: to=[email protected], delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120557, relay=gmail-smtp-in.l.google.com. [66.249.83.114], dsn=2.0.0, stat=Sent (OK 1155439262 h8si6030418wxd)
Aug 12 23:21:32 hostname sendmail[32550]: k7D3LWCU032550: from=nagios, size=370, class=0, nrcpts=1, msgid=[email protected], relay=nagios@localhost
Aug 12 23:21:32 hostname sendmail[32551]: k7D3LWVx032551: from=[email protected], size=638, class=0, nrcpts=1, msgid=[email protected], proto=ESMTP, daemon=MTA, relay=mydomain.com [127.0.0.1]
Aug 12 23:21:32 hostname sendmail[32550]: k7D3LWCU032550: [email protected], ctladdr=nagios (501/501), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30370, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k7D3LWVx032551 Message accepted for delivery)
Aug 12 23:21:32 hostname sendmail[32558]: k7D3LWqh032558: from=nagios, size=295, class=0, nrcpts=1, msgid=[email protected], relay=nagios@localhost
Aug 12 23:21:32 hostname sendmail[32559]: k7D3LWs9032559: from=[email protected], size=570, class=0, nrcpts=1, msgid=[email protected], proto=ESMTP, daemon=MTA, relay=mydomain.com [127.0.0.1]
Aug 12 23:21:32 hostname sendmail[32558]: k7D3LWqh032558: [email protected], ctladdr=nagios (501/501), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30295, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k7D3LWs9032559 Message accepted for delivery)
Aug 12 23:21:32 hostname sendmail[32561]: k7D3LWs9032559: to=[email protected], delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120570, relay=atlsmtp.cingularme.net. [66.102.165.114], dsn=4.0.0, stat=Deferred: 421 Service not available
Aug 12 23:21:34 hostname sendmail[32553]: k7D3LWVx032551: to=[email protected], delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=120638, relay=gmail-smtp-in.l.google.com. [66.249.83.114], dsn=2.0.0, stat=Sent (OK 1155439304 i13si5709231wxd)