[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-discuss
Subject:    [opennms-discuss] passing parameters to NRPE plugin
From:       nymano <nymano () seznam ! cz>
Date:       2010-05-27 7:31:14
Message-ID: 1274945474498-5107342.post () n2 ! nabble ! com
[Download RAW message or body]


Is there any possible way of passing parameters to a NRPE plugin? I able to
call the plugin (let say the check_disk plugin) just as is without arguments
using the key="command" value="check_disk". But I need to be able to pass
also some parameters to the script like I would do it on commandline - for
example:
check_disk -a '-w 10% -c 5% -x /dev/shm -x /proc -m'.

Is this possible to do this in OpenNMS? Bellow is my first unsuccessful
attempt to do this.

thanks Nick.

capsd-configuration.xml:

    <protocol-plugin protocol="nrpe-disk"
class-name="org.opennms.netmgt.capsd.plugins.NrpePlugin" scan="on">
        <property key="banner" value="*" />
        <property key="port" value="5666" />
        <property key="timeout" value="3000" />
        <property key="retry" value="2" />
        <property key="command" value="check_disk -a '-w 10% -c 5% -x
/dev/shm -x /proc -m'" />
    </protocol-plugin>

poller-configuration.xml:

    <service name="nrpe-disk" interval="300000" user-defined="true"
status="on">
      <parameter key="retry" value="3" />
      <parameter key="timeout" value="3000" />
      <parameter key="port" value="5666" />
      <parameter key="command" value="check-disk -a '-w 10% -c 5% -x
/dev/shm -x /proc -m'" />
      <parameter key="padding" value="2" />
      <parameter key="rrd-repository"
value="/opt/opennms/share/rrd/response" />
      <parameter key="ds-name" value="nrpe" />
    </service>
...
    <monitor service="nrpe-disk"
class-name="org.opennms.netmgt.poller.monitors.NrpeMonitor"/>

-- 
View this message in context: \
http://opennms.530661.n2.nabble.com/passing-parameters-to-NRPE-plugin-tp5107342p5107342.html
 Sent from the OpenNMS - discuss mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic