Check_snmp and show as graph


#1

hello
doing a check_snmp i would like to have some result shown as graph!
where do i have to tell which "object Service " have to keep/write data for graph?

have a nice day
vinc


#2

The check probably hasn’t got valid performance data…

Looking at the FAQ you’ll find

Please make sure to include every little detail in your question. This helps community members to analyse your problem. They do not need to ask again to find out more about your issue.


#3

Icinga application loader (version: r2.9.1-1)

# /etc/icinga2/zones.d/master/02_INFRA/check_snmp-poco-01.conf
  1 object CheckCommand "check_snmp-poco-01" {
  2    command = [ PluginDir + "/check_snmp" ]
  3    arguments = {
  4    "-H" = "10.147.42.31"
  5    "-o" = "$pocoMib$"
  6    "-P" = "2c"
  7    "-C" = "public"
  8    }
  9 }

#/etc/icinga2/zones.d/master/02_INFRA/poco-01.conf
17 object Service “check_snmp-poco-01-test” {
18 host_name = “poco-01.kozo.ch”
19
20 vars.pocoMib = “1.3.6.1.2.1.2.2.1.11.1”
21 display_name = "TEST — TEST "
22
23 check_interval = 2
24 check_command = “check_snmp-poco-01”
25 }

the Output 

>Plugin Output
>SNMP OK - 518862

now the missing part is a Graph

#4

“Plugin output” != “Performance data


(watermelon) #5

Adding onto Wolfgang’s answers, write a script wrapper to turn that "plugin output’ into “performance data” (like my howto goes over!)