<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear All,</FONT></DIV>
<DIV><FONT face=Arial size=2>My problem got resolved with monor changes in the 
contact</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>define 
contact{<BR>        
contact_name                    
nagios-bsupport<BR>        
alias                           
Nagios bsupport<BR>        
service_notification_period     
24x7<BR>        
host_notification_period        
24x7<BR>        
service_notification_options    
w,u,c,r<BR>        
host_notification_options       
d,r<BR>        
service_notification_commands   notify-by-email<STRONG><FONT 
color=#0000ff>,notify-by-smbclient</FONT></STRONG><BR>        
host_notification_commands      
host-notify-by-email<BR>        
email                           
<A href="mailto:bsupport@domain.com"><FONT face=Arial 
size=2>bsupport@domain.com</FONT></A><BR><FONT face=Arial 
size=2>        
address1                        
dhaval<BR>        
address2                        
192.168.10.5<BR>        
}<BR></DIV></FONT></FONT>
<DIV style="FONT: 10pt arial">----- Original Message ----- 
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A 
title=dpthakar@hotmail.com href="mailto:dpthakar@hotmail.com">Dhaval Thakar</A> 
</DIV>
<DIV><B>To:</B> <A title=nagios-users@lists.sourceforge.net 
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A> 
</DIV>
<DIV><B>Sent:</B> Tuesday, January 09, 2007 8:44 PM</DIV>
<DIV><B>Subject:</B> [Nagios-users] Fw: Fw: Fw: nagios alerts to pc</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>contact config</FONT></DIV>
<DIV><FONT face=Arial 
size=2>################################################################################</FONT><BR><FONT 
face=Arial size=2>define contact{<BR>        
contact_name                    
nagios-bsupport<BR>        
alias                           
Nagios bsupport<BR>        
service_notification_period     
24x7<BR>        
host_notification_period        
24x7<BR>        
service_notification_options    
w,u,c,r<BR>        
host_notification_options       
d,r<BR>        
service_notification_commands   
notify-by-email<BR>        
host_notification_commands      
host-notify-by-email<BR>        
email                           
</FONT><A href="mailto:bsupport@domain.com"><FONT face=Arial 
size=2>bsupport@domain.com</FONT></A><BR><FONT face=Arial 
size=2>        
address1                        
dhaval<BR>        
address2                        
192.168.10.5<BR>        }<BR></FONT><FONT 
face=Arial size=2><BR>define 
contactgroup{<BR>        
contactgroup_name       
fw<BR>        
alias                   
Administrators<BR>        
members                 
nagios-fw<BR>        }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Host config</FONT></DIV>
<DIV><FONT face=Arial 
size=2>################################################################################<BR>#BackFW<BR>define 
host{<BR>        
use                     
generic-host            ; 
Name of host template to use<BR>        
host_name               
BackFW<BR>        
alias                   
BackFW<BR>        
address                 
172.20.20.7<BR>        
check_command           
check-host-alive<BR>        
max_check_attempts      
10<BR>        
check_period            
24x7<BR>        
notification_interval   
120<BR>        
notification_period     
24x7<BR>        
notification_options    
d,r<BR>        contact_groups  
fw<BR>        }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#ping<BR>define 
service{<BR>        
use                             
generic-service         ; Name of 
service template to use<BR>        
host_name                       
BackFW<BR>        
service_description             
PING<BR>        
is_volatile                     
0<BR>        
check_period                    
24x7<BR>        
max_check_attempts              
4<BR>        
normal_check_interval           
5<BR>        
retry_check_interval            
1<BR>        
contact_groups                  
fw<BR>        
notification_options            
w,u,c,r<BR>        
notification_interval           
960<BR>        
notification_period             
24x7<BR>        
check_command                   
check_ping!100.0,20%!500.0,60%<BR>        
}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>service config</FONT></DIV>
<DIV><FONT face=Arial 
size=2>################################################################################<BR># 
'service-notify-by-smbclient' command definition<BR>define 
command{<BR>        
command_name    
notify-by-smbclient<BR>        
command_line    /bin/echo '$SERVICESTATE$ alert for 
$HOSTALIAS$/$SERVICEDESC$' | /usr/bin/sm<BR>bclient -M $CONTACTADDRESS1$  
-I $CONTACTADDRESS2$ -U NAGIOS >> 
/tmp/smbconfig.log<BR>        }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Andy Shellam (Mailing Lists)" <</FONT><A 
href="mailto:andy.shellam-lists@mailnetwork.co.uk"><FONT face=Arial 
size=2>andy.shellam-lists@mailnetwork.co.uk</FONT></A><FONT face=Arial 
size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>To: "Dhaval Thakar" <</FONT><A 
href="mailto:dpthakar@hotmail.com"><FONT face=Arial 
size=2>dpthakar@hotmail.com</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Cc: <</FONT><A 
href="mailto:nagios-users@lists.sourceforge.net"><FONT face=Arial 
size=2>nagios-users@lists.sourceforge.net</FONT></A><FONT face=Arial 
size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Tuesday, January 09, 2007 8:00 
PM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: Re: [Nagios-users] Fw: Fw: nagios alerts 
to pc</FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial 
size=2>> Post your configuration for the service, host, command and contact 
in <BR>> question - we're just stabbing in the dark without it.<BR>> 
<BR>> Andy.<BR>> <BR>> Dhaval Thakar wrote:<BR>>> 
Andy,<BR>>><BR>>> Same command (smbclient -M adminmachine -I 
adminip) I checked with nagios<BR>>> user, it is 
working.<BR>>><BR>>> I created "/tmp/smbclient.log" file with nagios 
user, but still there is no <BR>>> input in the 
file<BR>>><BR>>> ----- Original Message ----- <BR>>> From: 
"Andy Shellam (Mailing Lists)" <</FONT><A 
href="mailto:andy.shellam-lists@mailnetwork.co.uk"><FONT face=Arial 
size=2>andy.shellam-lists@mailnetwork.co.uk</FONT></A><FONT face=Arial 
size=2>><BR>>> To: "Dhaval Thakar" <</FONT><A 
href="mailto:dpthakar@hotmail.com"><FONT face=Arial 
size=2>dpthakar@hotmail.com</FONT></A><FONT face=Arial size=2>>; "Nagios 
Users mailinglist"<BR>>> <</FONT><A 
href="mailto:nagios-users@lists.sourceforge.net"><FONT face=Arial 
size=2>nagios-users@lists.sourceforge.net</FONT></A><FONT face=Arial 
size=2>><BR>>> Sent: Tuesday, January 09, 2007 7:04 PM<BR>>> 
Subject: Re: [Nagios-users] Fw: nagios alerts to 
pc<BR>>><BR>>><BR>>>   <BR>>>> Dhaval 
Thakar wrote:<BR>>>>     <BR>>>>> the 
reason to redirect to logs was to ensure execution of the 
command,<BR>>>>> but log is not created. i tried with mentioned 
command from shell using<BR>>>>> root. it is working hence 
communication to windows machine is 
ok.<BR>>>>>       <BR>>>> 
There could be your problem - test the plugin running as the 
"nagios"<BR>>>> user.<BR>>>>     
<BR>>>>> i have not created file "/tmp/smbclient.log", just 
mentioned in<BR>>>>> commands.cfg<BR>>>>> nagios user 
has the rights to write to /tmp 
dir<BR>>>>>       <BR>>>> 
Don't forget to copy the list in on your replies as it could help 
somebody<BR>>>> else in the future when searching the 
archives.<BR>>>><BR>>>><BR>>>> 
Andy.<BR>>>><BR>>>>     
<BR>>><BR>>><BR>>> 
-------------------------------------------------------------------------<BR>>> 
Take Surveys. Earn Cash. Influence the Future of IT<BR>>> Join 
SourceForge.net's Techsay panel and you'll get the chance to share 
your<BR>>> opinions on IT & business topics through brief surveys - 
and earn cash<BR>>> </FONT><A 
href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV"><FONT 
face=Arial 
size=2>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</FONT></A><BR><FONT 
face=Arial size=2>>> 
_______________________________________________<BR>>> Nagios-users mailing 
list<BR>>> </FONT><A 
href="mailto:Nagios-users@lists.sourceforge.net"><FONT face=Arial 
size=2>Nagios-users@lists.sourceforge.net</FONT></A><BR><FONT face=Arial 
size=2>>> </FONT><A 
href="https://lists.sourceforge.net/lists/listinfo/nagios-users"><FONT 
face=Arial 
size=2>https://lists.sourceforge.net/lists/listinfo/nagios-users</FONT></A><BR><FONT 
face=Arial size=2>>> ::: Please include Nagios version, plugin version 
(-v) and OS when reporting any issue. <BR>>> ::: Messages without 
supporting info will risk being sent to /dev/null<BR>>><BR>>> 
!DSPAM:37,45a3a3b9137101955318944!<BR>>><BR>>><BR>>>   
<BR>> <BR>> <BR>> -- <BR>> Andy Shellam<BR>> NetServe Support 
Team<BR>> <BR>> the Mail Network<BR>> "an alternative in a standardised 
world"<BR>> <BR>> p: +44 (0) 121 288 0832/0839<BR>> m: +44 (0) 7818 
000834<BR>> <BR>></FONT> 
<P>
<HR>

<P></P>-------------------------------------------------------------------------<BR>Take 
Surveys. Earn Cash. Influence the Future of IT<BR>Join SourceForge.net's Techsay 
panel and you'll get the chance to share your<BR>opinions on IT & business 
topics through brief surveys - and earn 
cash<BR>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<P>
<HR>

<P></P>_______________________________________________<BR>Nagios-users mailing 
list<BR>Nagios-users@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/nagios-users<BR>::: 
Please include Nagios version, plugin version (-v) and OS when reporting any 
issue. <BR>::: Messages without supporting info will risk being sent to 
/dev/null</BODY></HTML>