summaryrefslogtreecommitdiffstats
path: root/cmd-send-keys.c
AgeCommit message (Expand)Author
2017-05-10Insert copy mode bindings at the right place in the command queue.nicm
2017-05-09If the target pane for send-keys in in a mode with a key table (that is,nicm
2017-04-22Get rid of the extra layer of flags and cmd_prepare() and just store thenicm
2017-04-21Store state shared between multiple commands in the queue in a sharednicm
2017-01-07Add support for the OSC 4 and OSC 104 palette setting escape sequences,nicm
2016-12-11-N without arguments needs to set prefix count for the mode command, sonicm
2016-12-08Fix send-keys with UTF-8.nicm
2016-11-29Make send -N work for all keys, not just in copy mode. From Artem Fokin.nicm
2016-10-16Mass rename struct cmd_q to struct cmdq_item and related.nicm
2016-10-16Rewrite command queue handling. Each client still has a command queue,nicm
2016-10-14Add CMD_AFTERHOOK flag to the easy commands that don't need any special handl...nicm
2016-10-11Fundamental change to how copy mode key bindings work:nicm
2016-10-10Add static in cmd-* and fix a few other nits.nicm
2016-01-19I no longer use my SourceForge address so replace it.nicm
2015-12-16send-keys -R should reset the input parser to ground state (so it can benicm
2015-12-14Instead of combined flags for -c, -s, -t, split into different setsnicm
2015-12-13Use member names in cmd_entry definitions so I stop getting confusednicm
2015-12-13Instead of every command resolving the target (-t or -s) itself, preparenicm
2015-12-12Allow prefix and prefix2 to be set to None to disable (useful if younicm
2015-11-12Support UTF-8 key bindings by expanding the key type from int tonicm
2015-10-27Move struct options into options.c.nicm
2015-05-08Move input parser structs into input.c (removing fairly uselessnicm
2015-04-19Rewrite of tmux mouse support which was a mess. Instead of havingnicm
2014-10-20Instead of setting up the default keys by building the key structnicm
2013-10-10Remove the barely-used and unnecessary command check() function.nicm
2013-05-31Use u_char for the send-keys string to avoid mangling top-bit-setNicholas Marriott
2013-03-24Add a command queue to standardize and simplify commands that call otherNicholas Marriott
2012-12-09Use the CMD_*_USAGE defines consistently, from Thomas Adam.Nicholas Marriott
2012-07-11Make command exec functions return an enum rather than -1/0/1 values andNicholas Marriott
2012-02-02Add -l flag to send-keys to send input literally (without translatingNicholas Marriott
2012-01-21Add a -R flag to send-keys to reset the terminal. Written ages ago andNicholas Marriott
2011-01-04Clean up and simplify tmux command argument parsing.Nicholas Marriott
2010-05-23Pass in the session, rather than the client, to window modes' key()Nicholas Marriott
2009-12-03Massive spaces->tabs and trailing whitespace cleanup, hopefully for the lastNicholas Marriott
2009-11-13Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in theNicholas Marriott
2009-09-21Nuke -i option which isn't used anymore.Nicholas Marriott
2009-08-18Now that pane targets (-t) are supported, switch some commands to use themNicholas Marriott
2009-07-26Make all messages sent between the client and server fixed size.Nicholas Marriott
2009-07-13Having fixed flags for single-character getopt options is a bit hard toNicholas Marriott
2009-06-01Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott
t: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
plugin_name: charts.d.plugin
modules:
  - meta:
      plugin_name: charts.d.plugin
      module_name: libreswan
      monitored_instance:
        name: Libreswan
        link: "https://libreswan.org/"
        categories:
          - data-collection.vpns
        icon_filename: "libreswan.png"
      related_resources:
        integrations:
          list: []
      info_provided_to_referring_integrations:
        description: ""
      keywords:
        - vpn
        - libreswan
        - network
        - ipsec
      most_popular: false
    overview:
      data_collection:
        metrics_description: "Monitor Libreswan performance for optimal IPsec VPN operations. Improve your VPN operations with Netdata''s real-time metrics and built-in alerts."
        method_description: "The collector uses the `ipsec` command to collect the information it needs."
      supported_platforms:
        include: []
        exclude: []
      multi_instance: true
      additional_permissions:
        description: ""
      default_behavior:
        auto_detection:
          description: ""
        limits:
          description: ""
        performance_impact:
          description: ""
    setup:
      prerequisites:
        list:
          - title: "Install charts.d plugin"
            description: |
              If [using our official native DEB/RPM packages](https://github.com/netdata/netdata/blob/master/packaging/installer/UPDATE.md#determine-which-installation-method-you-used), make sure `netdata-plugin-chartsd` is installed.
          - title: "Permissions to execute `ipsec`"
            description: |
              The plugin executes 2 commands to collect all the information it needs:
              
              ```sh
              ipsec whack --status
              ipsec whack --trafficstatus
              ```
              
              The first command is used to extract the currently established tunnels, their IDs and their names.
              The second command is used to extract the current uptime and traffic.
              
              Most probably user `netdata` will not be able to query libreswan, so the `ipsec` commands will be denied.
              The plugin attempts to run `ipsec` as `sudo ipsec ...`, to get access to libreswan statistics.
              
              To allow user `netdata` execute `sudo ipsec ...`, create the file `/etc/sudoers.d/netdata` with this content:
              
              ```
              netdata ALL = (root) NOPASSWD: /sbin/ipsec whack --status
              netdata ALL = (root) NOPASSWD: /sbin/ipsec whack --trafficstatus
              ```
              
              Make sure the path `/sbin/ipsec` matches your setup (execute `which ipsec` to find the right path).
      configuration:
        file:
          name: charts.d/libreswan.conf
        options:
          description: |
            The config file is sourced by the charts.d plugin. It's a standard bash file.
            
            The following collapsed table contains all the options that can be configured for the libreswan collector.
          folding:
            title: "Config options"
            enabled: true
          list:
            - name: libreswan_update_every
              description: The data collection frequency. If unset, will inherit the netdata update frequency.
              default_value: 1
              required: false
            - name: libreswan_priority
              description: The charts priority on the dashboard
              default_value: 90000
              required: false
            - name: libreswan_retries
              description: The number of retries to do in case of failure before disabling the collector.
              default_value: 10
              required: false
            - name: libreswan_sudo
              description: Whether to run `ipsec` with `sudo` or not.
              default_value: 1
              required: false
        examples:
          folding:
            enabled: false
            title: "Config"
          list:
            - name: Run `ipsec` without sudo
              description: Run the `ipsec` utility without sudo
              config: |
                # the data collection frequency
                # if unset, will inherit the netdata update frequency
                #libreswan_update_every=1
                
                # the charts priority on the dashboard
                #libreswan_priority=90000
                
                # the number of retries to do in case of failure
                # before disabling the module
                #libreswan_retries=10
                
                # set to 1, to run ipsec with sudo (the default)
                # set to 0, to run ipsec without sudo
                libreswan_sudo=0
    troubleshooting:
      problems:
        list: []
    alerts: []
    metrics:
      folding:
        title: Metrics
        enabled: false
      description: ""
      availability: []
      scopes:
        - name: IPSEC tunnel
          description: "Metrics related to IPSEC tunnels. Each tunnel provides its own set of the following metrics."
          labels: []
          metrics:
            - name: libreswan.net
              description: LibreSWAN Tunnel ${name} Traffic
              unit: "kilobits/s"
              chart_type: area
              dimensions:
                - name: in
                - name: out
            - name: libreswan.uptime
              description: LibreSWAN Tunnel ${name} Uptime
              unit: "seconds"
              chart_type: line
              dimensions:
                - name: uptime