Page 1 of 1

Graphing a Service that is being monitored

Posted: Thu Aug 01, 2019 5:15 pm
by tmattingly
Hello,

I am trying to monitor a service and was interested looking at a graph of (specifically for 'flapping' reasons). There is no graph displayed
It says... No performance graphs were found for this service. If you have just started monitoring this object then it may take up to 15 minutes for the performance graphs to appear.

Can you show me how to turn on graphing for a service I am monitoring? When I look at the service I see I am using the standard check_xi_service_nsclient that is called by the configuration wizard for monitoring a windows server.
If you ask what version of check_nt I am using it shows the following in the plugins...
check_nt apache nagios rwxrwxr-x 2018-08-27 12:30:13

Is there a newer version I should be using?

Re: Graphing a Service that is being monitored

Posted: Fri Aug 02, 2019 10:04 am
by cdienger
That check is not returning performance data which is necessary to create the graph. You would want to use check_nrpe instead. For example:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H remote_ip -c CheckServiceState -a SSOManHost
Which would return something like:

Code: Select all

OK: All 1 service(s) are ok.|'SSOManHost'=4;0;0
The information after the | is the perfdata.

Change the command from 'check_xi_service_nslclient' to 'check_nrpe' and and put SSOManHost in for $ARG1$. This should do the trick as long as nsclient is configured to accept NRPE connections - see https://assets.nagios.com/downloads/nag ... ios-XI.pdf if this isn't already set up.