Graphs for Capacity Planning not displaying

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
louissiong
Posts: 32
Joined: Wed Nov 20, 2019 1:07 am

Graphs for Capacity Planning not displaying

Post by louissiong »

Hi Nagios,

Lately, we configured a new service for our host. The service is meant to check how many
buffered messages are receiving at our server's end. However, this is not showing in our
'Capacity Planning' tab. Error message being 'There are no capacity planning graphs available for this host.'
Is there something we did wrong ?

Service Status Detail
Check BOLC Buffer Msg
ABLTMSGSVR01

Please advise. Thanks.



Regards,
Louis
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Graphs for Capacity Planning not displaying

Post by scottwilkerson »

Do these services have regular performance graphs being generated (performance graph tab of the service status detail page)?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
louissiong
Posts: 32
Joined: Wed Nov 20, 2019 1:07 am

Re: Graphs for Capacity Planning not displaying

Post by louissiong »

Hi Scott,
No it doesn't. Do we need to add anything to our Nagios scripts to produce the graphs for
CP ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Graphs for Capacity Planning not displaying

Post by scottwilkerson »

louissiong wrote:Hi Scott,
No it doesn't. Do we need to add anything to our Nagios scripts to produce the graphs for
CP ?
Yes, your script output must contain the performance data, this is what is used to create the capacity planning graphs as well.

Below is the instructions on format for performance data
https://nagios-plugins.org/doc/guidelines.html#AEN200
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
louissiong
Posts: 32
Joined: Wed Nov 20, 2019 1:07 am

Re: Graphs for Capacity Planning not displaying

Post by louissiong »

Thanks Scott for your help. Managed to add some parameters to the script and churn out the graphs.
So is using the | (pipe) a standard way in Nagios to produce charts ?

PERFDATA="'BufferedMessages'=${count2};${ECOUNT};0;${ECOUNT}"
PERFDATATMP="${PERFDATA} ${PERFDATATMP}"

if [[ "$count2" -ge "$ECOUNT" ]]; then
echo "CRITICAL - Total number of actual Buffered Msgs [$count2] more than [$ECOUNT]. | $PERFDATATMP"
exit $STATE_CRITICAL
elif [[ "$count2" -le "$ECOUNT" ]]; then
echo "OK - Normal number of actual Buffered Msgs [$count2]. | $PERFDATATMP"
exit $STATE_OK
fi



Regards,
Louis
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Graphs for Capacity Planning not displaying

Post by scottwilkerson »

louissiong wrote:So is using the | (pipe) a standard way in Nagios to produce charts ?
Yes, it starts the performance data
https://nagios-plugins.org/doc/guidelines.html#AEN200
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked