check performance data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sistemasproadata
Posts: 12
Joined: Mon Jan 15, 2018 8:36 am

check performance data

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check performance data

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sistemasproadata
Posts: 12
Joined: Mon Jan 15, 2018 8:36 am

Re: check performance data

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check performance data

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sistemasproadata
Posts: 12
Joined: Mon Jan 15, 2018 8:36 am

Re: check performance data

Post by sistemasproadata »

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

Post by scottwilkerson »

sistemasproadata wrote:thanks!! that was the problem.
Great!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked