Service Graphing

I am working on a nagios plugin that performs iperf3 tests. Everything seems to be working just fine, and when I manually run the check-services.php -d script multiple times it will graph it. However, when I check back later, there are nothing on the graph. (See below). this is the output of the check-services.php -d:

Nagios Service - 2
Request: ‘/usr/lib/nagios/plugins/check_iperf3server’ ‘-H’ ‘10.0.0.217’ ‘-w’ ‘800’ ‘-c’ ‘500’ ‘-l’ ‘10’
Perf Data - DS: Throughput, Value: 932.94, UOM: MB
Response: OK: 932.944 Mbps
Service DS: {
“Throughput”: “MB”
}
RRD[update /opt/librenms/rrd/crmsearch.descomm.com/services-2.rrd N:932.94]
SQL[UPDATE services set service_message=? WHERE service_id=? [“OK: 932.944 Mbps”,2] 2.74ms]

Anyone run into this before and can help?

Thanks in advance.

@difi80211g Can you share nagios plugin ?

Yes, its still a work in progress but here is the plugin:

It requires an iperf3 server on the network and python iperf3 installed (pip install iperf3)

Not sure if this can help solve it, but if change my output, instead of being:

    print("{}: {} Mbps|'Throughput'={}MB;{};{};;;".format(
      status[1],
      str(iperfresult),
      iperfresultround,
      args.w,
      args.c,
  ))

I just do:

print("{}: {} Mbps|‘Throughput’={};{};{};;;".format(
status[1],
str(iperfresult),
iperfresultround,
args.w,
args.c,
))

it will graph it constantly but I would really like it to show that its in MB/s somehow.

was this resolved?

I get the below from the RRDTool output (omitted host ip):

ERROR: No DS called ‘0’ in ‘/services-248.rrd’