Ad Widget

Collapse

Nagios Plugin Wrapper

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HeWhoWas
    Junior Member
    • Jul 2012
    • 4

    #1

    Nagios Plugin Wrapper

    Hey all,

    I've taken this script: http://dev.aperto.fr/projects/zabbix...zext_nagios.sh

    And modified it to work with my zabbix installation. It retains all the functionality of the original script (Documentation can be found here: http://dev.aperto.fr/projects/3/wiki...plugin_wrapper) but I added the ability to pass params to the script as one string in this format:

    "<HostIP/DNS>:<PluginType>:<Zabbix Hostname>:<All plugin args>"

    For example these will produce identical output.

    zext_nagios.sh www.google.com http Google -w 5 -c 10
    zext_nagios.sh "www.google.com:http:Google:-w 5 -c 10"

    I have also included an example Host Template that uses nagios HTTP plugin.

    Please note that if you pass all the values as a single string, you lose the ability to set the prefix for sending data to Zabbix traps.

    Edit - I couldn't upload the script with an sh extension, so I've renamed it to txt. Just rename to sh once downloaded. Or I guess you could run it as is.
    Attached Files
Working...