Page 1 of 1

Graphs for Capacity Planning not displaying

Posted: Tue Dec 03, 2019 2:24 am
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

Re: Graphs for Capacity Planning not displaying

Posted: Tue Dec 03, 2019 8:11 am
by scottwilkerson
Do these services have regular performance graphs being generated (performance graph tab of the service status detail page)?

Re: Graphs for Capacity Planning not displaying

Posted: Thu Dec 05, 2019 5:34 am
by louissiong
Hi Scott,
No it doesn't. Do we need to add anything to our Nagios scripts to produce the graphs for
CP ?

Re: Graphs for Capacity Planning not displaying

Posted: Thu Dec 05, 2019 7:43 am
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

Re: Graphs for Capacity Planning not displaying

Posted: Wed Jan 15, 2020 1:11 am
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

Re: Graphs for Capacity Planning not displaying

Posted: Wed Jan 15, 2020 7:30 am
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