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
Graphs for Capacity Planning not displaying
-
louissiong
- Posts: 32
- Joined: Wed Nov 20, 2019 1:07 am
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Graphs for Capacity Planning not displaying
Do these services have regular performance graphs being generated (performance graph tab of the service status detail page)?
-
louissiong
- Posts: 32
- Joined: Wed Nov 20, 2019 1:07 am
Re: Graphs for Capacity Planning not displaying
Hi Scott,
No it doesn't. Do we need to add anything to our Nagios scripts to produce the graphs for
CP ?
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
Yes, your script output must contain the performance data, this is what is used to create the capacity planning graphs as well.louissiong wrote:Hi Scott,
No it doesn't. Do we need to add anything to our Nagios scripts to produce the graphs for
CP ?
Below is the instructions on format for performance data
https://nagios-plugins.org/doc/guidelines.html#AEN200
-
louissiong
- Posts: 32
- Joined: Wed Nov 20, 2019 1:07 am
Re: Graphs for Capacity Planning not displaying
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
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
Yes, it starts the performance datalouissiong wrote:So is using the | (pipe) a standard way in Nagios to produce charts ?
https://nagios-plugins.org/doc/guidelines.html#AEN200