Hi John,

This reply is not related to your notes below but I am curious about how (and 
why) you're using SEC with Nagios.  Could you elaborate at a high level?  I'm 
not very familiar with Nagios but from my reading it contains a lot of 
functionality.  Doesn't Nagios support SEC-like functionality?

Regards,
Rock

-----Original Message-----
From: John P. Rouillard [mailto:rou...@cs.umb.edu] 
Sent: Monday, February 24, 2014 7:03 PM
To: simple-evcorr-users@lists.sourceforge.net
Subject: [Simple-evcorr-users] Embedding ; inside of a pipe's string parameter


Hi all:

I am trying to create a passive nagios event. To do this I am using:

   action= pipe '[%u] PROCESS_SERVICE_CHECK_RESULT;myhost;SyslogInfo;1;message 
%s' \
      ssh nagios use_forced_command

This fails to pass syntax check (sec -testonly). I also tried:

  action=  pipe ('[%u] PROCESS_SERVICE_CHECK_RESULT;myhost;SyslogInfo;1;message 
%s') \
      ssh nagios use_forced_command

and this failed as well. This seems to work:

   action=  pipe '([%u] 
PROCESS_SERVICE_CHECK_RESULT;myhost;SyslogInfo;1;message %s)' \
      ssh nagios use_forced_command

I think it would be worth mentioning this in the pipe action
documentation since the normal rule of wrapping the argument in ()'s
doesn't seem to hold.

--
                                -- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to