Not able to get mail notification , Guidance requested

John Joseph jjk_saji at yahoo.com
Sun Sep 11 11:27:22 CEST 2005


--- Marc Powell <marc at ena.com> wrote:

> 
> 
> The above information indicates that you don't have
> active or passive
> checks enabled for the service. Is that the case? If
> so, you're not
> checking the service so no notifications will ever
> go out. If you are
> checking the service and the information above is
> incorrect, check
> nagios.log for a notification attempt. Check your
> postfix logs. Verify
> that you can send a notification by issuing your
> notification commands
> exactly as they are defined as the nagios user (not
> root!) - post the
> test here. If you still have problems, please post
> the exact host and
> service definitions as well as your notification
> commands to this list -
> the information above is not them. Nagios.log
> entries around the time
> that the notification should happen would be useful
> as well.
> 
> --
> Marc
> 
> 

 Hi Marc
  Thanks for the mail ,  I am adding the info

a> “active/passive”       
Now  I had enabled  active / passive checks for all
the services for the host “joseph” and checked it
again , but ,  I am not getting the notification
              I checked  nagios.log for notification
attempt ,  I did not find any mention of notification 
in the nagios.log 
**********************************************
b > “postfix “  
       My postfix MTA is working fine , and I am able
to send the mail from command mode ,  I am able to
execute the notification command from the users prompt
  such as 

  c> “notification email command” 
    /usr/bin/printf "%b" "***** Nagios
1.X*****Notification\nType:$NOTIFICATIONTYPE$\n Host:
$HOSTNAME$\nState: $HOSTSTATE$Address:
$HOSTADDRESS$\nInfo: $OUTPUT$\nDate/Time: $DATETIME$"
| /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$"
joseph at test.com 

***********************************************************
NOT ABLE TO SEND  when I specify   $CONTACTEMAIL$ from
nagios prompt 

>From  nagios users prompt , if I give exactly as in
the notification command I am not getting the mail  
  
 /usr/bin/printf "%b" "***** Nagios
1.X*****Notification\nType:$NOTIFICATIONTYPE$\n Host:
$HOSTNAME$\nState: $HOSTSTATE$Address:
$HOSTADDRESS$\nInfo: $OUTPUT$\nDate/Time: $DATETIME$"
| /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$"
$CONTACTEMAIL$
 
d>mail log when I send the above command  from the
nagios command mode is
Sep 11 12:55:54 john postfix/pickup[2509]:
749A8474130: uid=511 from=<nagios>
Sep 11 12:55:54 john postfix/cleanup[5950]:
749A8474130:
message-id=<20050911085554.749A8474130 at john.oreon.ae>
Sep 11 12:55:54 john postfix/qmgr[2510]: 749A8474130:
from=<nagios at john.oreon.ae>, size=452, nrcpt=1 (queue
active)
Sep 11 12:55:54 john postfix/local[5951]: 749A8474130:
to=<$@john.oreon.ae>, orig_to=<$>, relay=local,
delay=0, status=bounced (unknown user: "$")
Sep 11 12:55:54 john postfix/cleanup[5950]:
8862847412E:
message-id=<20050911085554.8862847412E at john.oreon.ae>
Sep 11 12:55:54 john postfix/qmgr[2510]: 8862847412E:
from=<>, size=2101, nrcpt=1 (queue active)
Sep 11 12:55:54 john postfix/qmgr[2510]: 749A8474130:
removed
Sep 11 12:55:54 john postfix/local[5951]: 8862847412E:
to=<nagios at john.oreon.ae>, relay=local, delay=0,
status=sent (delivered to mailbox)
Sep 11 12:55:54 john postfix/qmgr[2510]: 8862847412E:
removed
Sep 11 12:55:56 john postfix/pickup[2509]:
6AF85474130: uid=511 from=<nagios>
Sep 11 12:55:56 john postfix/cleanup[5950]:
6AF85474130:
message-id=<20050911085556.6AF85474130 at john.oreon.ae>
Sep 11 12:55:56 john postfix/qmgr[2510]: 6AF85474130:
from=<nagios at john.oreon.ae>, size=452, nrcpt=1 (queue
active)
Sep 11 12:55:56 john postfix/local[5951]: 6AF85474130:
to=<$@john.oreon.ae>, orig_to=<$>, relay=local,
delay=0, status=bounced (unknown user: "$")
Sep 11 12:55:56 john postfix/cleanup[5950]:
7557A47412E:
message-id=<20050911085556.7557A47412E at john.oreon.ae>
Sep 11 12:55:56 john postfix/qmgr[2510]: 7557A47412E:
from=<>, size=2101, nrcpt=1 (queue active)
Sep 11 12:55:56 john postfix/qmgr[2510]: 6AF85474130:
removed
Sep 11 12:55:56 john postfix/local[5951]: 7557A47412E:
to=<nagios at john.oreon.ae>, relay=local, delay=0,
status=sent (delivered to mailbox)
Sep 11 12:55:56 john postfix/qmgr[2510]: 7557A47412E:
removed
Sep 11 12:55:57 john postfix/pickup[2509]:
2740A474130: uid=511 from=<nagios>
Sep 11 12:55:57 john postfix/cleanup[5950]:
2740A474130:
message-id=<20050911085557.2740A474130 at john.oreon.ae>
Sep 11 12:55:57 john postfix/qmgr[2510]: 2740A474130:
from=<nagios at john.oreon.ae>, size=452, nrcpt=1 (queue
active)
Sep 11 12:55:57 john postfix/local[5951]: 2740A474130:
to=<$@john.oreon.ae>, orig_to=<$>, relay=local,
delay=0, status=bounced (unknown user: "$")
Sep 11 12:55:57 john postfix/cleanup[5950]:
29ED8474094:
message-id=<20050911085557.29ED8474094 at john.oreon.ae>
Sep 11 12:55:57 john postfix/qmgr[2510]: 29ED8474094:
from=<>, size=2101, nrcpt=1 (queue active)
Sep 11 12:55:57 john postfix/qmgr[2510]: 2740A474130:
removed
Sep 11 12:55:57 john postfix/local[5951]: 29ED8474094:
to=<nagios at john.oreon.ae>, relay=local, delay=0,
status=sent (delivered to mailbox)
Sep 11 12:55:57 john postfix/qmgr[2510]: 29ED8474094:
removed
**********************************************

I am sending the  hosts.cfg , services.cfg , 
misccommands.cfg as attachment , Kindly guide me

                Thanks 
                    Joseph John 


		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hosts.cfg
Type: application/octet-stream
Size: 15836 bytes
Desc: 1819780330-hosts.cfg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050911/3f6a6932/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: services.cfg
Type: application/octet-stream
Size: 34156 bytes
Desc: 4051563864-services.cfg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050911/3f6a6932/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: misccommands.cfg
Type: application/octet-stream
Size: 3249 bytes
Desc: 3418209448-misccommands.cfg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050911/3f6a6932/attachment-0002.obj>


More information about the Users mailing list