Page 1 of 1

check performance data

Posted: Tue Jul 16, 2019 8:33 am
by sistemasproadata
Hi, I have one script returning that values:

echo "Ok|Activos=$activos;Waiting=$waiting;OnHold=$onhold;Material=$material;Pedido=$pedido;PendienteMaterial=$pendientematerial;SinAtender=$sinatender;Laboral=$laboral;Sistemas=$sistemas"

Ok|Activos=14;Waiting=13;OnHold=5;Material=12;Pedido=3;PendienteMaterial=1;SinAtender=9;Laboral=22;Sistemas=5

How I need to write that values to allow nagios to get them to a multiples values os performance data? on that way is only getting the first value Activos=14

Regards

Re: check performance data

Posted: Tue Jul 16, 2019 8:35 am
by scottwilkerson
You need a space between each datasource

Code: Select all

echo "Ok|Activos=$activos; Waiting=$waiting; OnHold=$onhold; Material=$material; Pedido=$pedido; PendienteMaterial=$pendientematerial; SinAtender=$sinatender; Laboral=$laboral; Sistemas=$sistemas"
https://nagios-plugins.org/doc/guidelines.html#AEN200

Re: check performance data

Posted: Tue Jul 16, 2019 8:59 am
by sistemasproadata
it gets all values but there are not used on the graph, only the first value:

https://drive.google.com/file/d/1NA2FfO ... sp=sharing

I have grafana connected to nagios and I cannot get the values too.

Re: check performance data

Posted: Tue Jul 16, 2019 9:05 am
by scottwilkerson
This looks better as the gauges are now showing up.

You are going to need to delete the rrd file so it can be created the the appropriate amount o datasources

Code: Select all

rm -f /usr/local/nagios/share/perfdata/srvmannag004.proagrup.com/TeamDesk.rrd
After this the rrd file should be recreated in about 10 minutes showing all the datasources

Re: check performance data

Posted: Tue Jul 16, 2019 9:35 am
by sistemasproadata
thanks!! that was the problem.

Re: check performance data

Posted: Tue Jul 16, 2019 9:45 am
by scottwilkerson
sistemasproadata wrote:thanks!! that was the problem.
Great!

Locking