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
check performance data
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check performance data
You need a space between each datasource
https://nagios-plugins.org/doc/guidelines.html#AEN200
Code: Select all
echo "Ok|Activos=$activos; Waiting=$waiting; OnHold=$onhold; Material=$material; Pedido=$pedido; PendienteMaterial=$pendientematerial; SinAtender=$sinatender; Laboral=$laboral; Sistemas=$sistemas"-
sistemasproadata
- Posts: 12
- Joined: Mon Jan 15, 2018 8:36 am
Re: check performance data
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.
https://drive.google.com/file/d/1NA2FfO ... sp=sharing
I have grafana connected to nagios and I cannot get the values too.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check performance data
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
After this the rrd file should be recreated in about 10 minutes showing all the datasources
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-
sistemasproadata
- Posts: 12
- Joined: Mon Jan 15, 2018 8:36 am
Re: check performance data
thanks!! that was the problem.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check performance data
Great!sistemasproadata wrote:thanks!! that was the problem.
Locking