Adding an host as SNMP thermometer

This forum was archived to /woltlab and is now in read-only mode.
  • Hello,

    I d like to know how to add an snmp thermometer like…STE_nagios_plugin_en.html.

    (note that I use database mysql i- other question it is impossible to change settings like contact even if i change...( /icingaweb2/monitoring/list/contacts) the file /etc/icinga2/icinga2.conf)

    For a host like linux it is easy with node wizard

    thank you in advance

  • For the first question:

    From the docs you pointed to, do what is suggested:


    chmod 755 && –H –S 215
    to check that the device can be queried.

    Than, create a check_command object for icinga2 :

    1. object CheckCommand "hwg" {
    2. import "plugin-check-command"
    3. command= [ PluginDir + "/" ]
    4. arguments = {
    5. "-H" = "$address$"
    6. "-S" = "$sensor_id$"
    7. "-C" = "$snmp_community$"
    8. }
    9. }

    and refer to it in a service object (set vars.sensor_id here) and you should be done:

    1. apply Service "hwg" {
    2. import "generic-service"
    3. check_command = "hwg"
    4. vars.sensor_id = 215
    5. #vars.snmp_community = "public"
    6. assign where == "thehostrunningthedevice"
    7. }

    For the second question, it is not understandable *and* you should open a different thread for it.

    The post was edited 3 times, last by sru ().

  • thank you very much

    The problem is : the perl script does not run correctly, i think tha i have to modify it

    My os : debian jessie