Why are you re-directing to a log file? What does the output of "smbclient -M adminmachine -I adminip"
give you? Does the nagios user have write permissions on /tmp and tmp/smbclient.log (e.g. if smbclient.log was created by root, Nagios won't have write access to append to it.) Andy. Dhaval Thakar wrote: > Hi, > > > Thanks for the reply, > I tried configuring alters using smbclient as mentioned in the following > URL. > http://www.nagiosexchange.org/typo3conf/ext/net_nagext/pi1/download.php?file=uploads/tx_netnagext_pi1/Net_send_notification/configuration.txt&ext=.txt > > I checked following > > "smbclient -M adminmachine -I adminip" is working properly. > > redirecting output of the to log file, does not shows any input to the file. > command_line /bin/echo '$SERVICESTATE$ alert for > $HOSTALIAS$/$SERVICEDESC$' | /usr/bin/smbclient -M netbios_name_of_client -U > NAGIOS >> /tmp/smbclient.log > > i suspect there must some problem with contact configuration. > > define contact{ > contact_name nagios-fw1 > alias Nagios fw1 > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,u,c,r > host_notification_options d,r > service_notification_commands notify-by-smbclient > host_notification_commands host-notify-by-smbclient > email [EMAIL PROTECTED] > } > > i intentionaly kept email object for the contact nagios-fw1, as putting > smbclient or address throws error "Error: Invalid contact object directive > 'smbclient'." > > Kindly suggest if there any solution for the same. > ----- Original Message ----- > From: "Jim Perrin" <[EMAIL PROTECTED]> > To: "dhaval thakar" <[EMAIL PROTECTED]> > Cc: <[email protected]> > Sent: Sunday, January 07, 2007 10:33 PM > Subject: Re: [Nagios-users] nagios alerts to pc > > > >> On 1/7/07, dhaval thakar <[EMAIL PROTECTED]> wrote: >> >>> Dear All, >>> >>> I want to send host/service alters on Windows PC, >>> is there any plugin available for the same?? >>> >>> >> Look at http://www.nagiosexchange.org/Notifications.35.0.html >> There are several things there which may do what you want. >> >> >> -- >> During times of universal deceit, telling the truth becomes a >> revolutionary act. >> George Orwell >> >> > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nagios-users mailing list > [email protected] > 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 > > !DSPAM:37,45a38f1a137101219915068! > > > -- Andy Shellam NetServe Support Team the Mail Network "an alternative in a standardised world" p: +44 (0) 121 288 0832/0839 m: +44 (0) 7818 000834 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list [email protected] 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
