lists.netmrg.net lists.netmrg.net
NetMRG discussion and support
 
FAQ :: Search :: Memberlist :: Usergroups :: Register
Profile :: Log in to check your private messages :: Log in

Notifications don't parse command parse keywords

 
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support
Author Message
Jorge Matias
Beginner


Joined: 24 Jun 2004
Posts: 4
Location: Lisbon

PostPosted: Thu Jun 24, 2004 4:47 pm    Post subject: Notifications don't parse command parse keywords Reply with quote

Hello,

I'm using netmrg 0.16 at the moment, and I'm doing some experiences with Event/Notifications.
I have noted that, when executing the command of a Notification, the device keywords (e.g. %ip%, %dev_name%) are not parsed before the call.
I have checked the file "event.cpp" in the function/method
"void process_responses(DeviceInfo info, MYSQL *mysql)" I saw that the problem is in there. No token parsing is being done.

Best Regards,
Jorge Matias
Back to top
A7V
Contributor


Joined: 18 Jun 2004
Posts: 53
Location: Lisbon, Portugal

PostPosted: Thu Jun 24, 2004 5:58 pm    Post subject: Reply with quote

I was experimenting with notifications also and used /bin/echo '%dev_name%, %ip, %test_name%, %test_result%' >> /home/netmrg/teste.log and like Jorge all I got was the unparsed keywords.

I had called for help on this issue in this thread

Btw, I'm from Portugal too Laughing
Back to top
silfreed
Site Admin


Joined: 19 Jan 2003
Posts: 394
Location: Shippensburg, PA, USA

PostPosted: Fri Jun 25, 2004 1:20 pm    Post subject: Reply with quote

Sorry, A7V; been a busy week for both of us.

Looks like Jorge is on the right track; I'll talk with the other developer today and see if we can't get a fix in CVS for this shortly.

-Doug
Back to top
A7V
Contributor


Joined: 18 Jun 2004
Posts: 53
Location: Lisbon, Portugal

PostPosted: Fri Jun 25, 2004 1:49 pm    Post subject: Reply with quote

silfreed wrote:
Sorry, A7V; been a busy week for both of us.

-Doug


Doug,

We all have work to do, and I do realize this is not your main job.
I can only thank you and the other developers for the time you invest in this project which I can only seen good things for the future.
As I am not a programmer but rather a sysadmin(rusty C/C++ programming from 10 years ago Wink ) I can only help by reporting problems and help the project with new ideas if they are, which I already confirmed they are, welcomed.
I have a considerable network size, so that too can be a nice testimonial for other people.
Back to top
balleman
Site Admin


Joined: 20 Jan 2003
Posts: 282

PostPosted: Fri Jun 25, 2004 11:58 pm    Post subject: Reply with quote

This will certainly be done before the next release. I've started bug#239 for this issue.
Back to top
A7V
Contributor


Joined: 18 Jun 2004
Posts: 53
Location: Lisbon, Portugal

PostPosted: Wed Sep 22, 2004 6:34 pm    Post subject: Reply with quote

Hi,

Just upgraded to 0.17, good work Exclamation Very Happy

I was playing around with notifications and wanted to test the changes in 0.17 and there is still an issue with some unparsed keywords:
I was testing this 4 keywords:
%dev_name%, %ip%, %test_name%, %test_result%
and the output was:
ce01pc02, 10.137.69.02, %test_name%, %test_result%

Btw, the example notification seems to be one % short:
Code:

INSERT INTO notifications VALUES (1,'Broadcast message to linux users','wall problem with %ip',0);

Should read %ip% no Question
Back to top
balleman
Site Admin


Joined: 20 Jan 2003
Posts: 282

PostPosted: Wed Sep 22, 2004 10:39 pm    Post subject: Reply with quote

Yes, this was an issue we recognized shortly after 0.17 was released, unfortunately. It's Bug#283. I'll add the problem with the demo test to this bug.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    lists.netmrg.net Forum Index -> Support All times are GMT
Page 1 of 1

 



smartBlue Style © 2002 Smartor
Powered by phpBB © 2001, 2002 phpBB Group