Graphs not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Graphs not working

Post by lmiltchev »

Now I just have to figure out why the Windows service Services aren't collecting Perf Data even though they are set to do so.
What kind of services are these? Not all checks return perfdata. Go to Home > Service Detail, click on one of the "problem" services, go to the "Advanced" tab, and show us a screenshot of this page.

Do you see RRD or XML files for these checks in "/usr/local/nagios/share/perfdata/<hostname>/" directory?
Be sure to check out our Knowledgebase for helpful articles and solutions!
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Re: Graphs not working

Post by SavaSC »

lmiltchev wrote: What kind of services are these? Not all checks return perfdata. Go to Home > Service Detail, click on one of the "problem" services, go to the "Advanced" tab, and show us a screenshot of this page.

Do you see RRD or XML files for these checks in "/usr/local/nagios/share/perfdata/<hostname>/" directory?
Here is a screenshot from the Service Status Detail page. There is no RRD or XML file for these checks.
Capture.PNG
The command used is check_nt in the check_xi_service_nsclient check command. This particular check is looking to see if the w3logsvc service is running. Here is a screenshot:
Capture2.PNG
As near as I can tell, all of the checks using SERVICESTATE in check_nt are not getting perfdata.
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Graphs not working

Post by npolovenko »

@SavaSC, Looks like SERVICESTATE check does not have a capability to return RRD data. I ran that check on my system as well and got no RRD output. If you go to that Service menu in CCM one more time(on your second screenshot) and click on Run Check Command you should see the return output. RRD output always goes after a | sign and has this syntax "Service XX started||'Parametr_name'=output". If you don't see then graphing hasn't been made for this check.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Re: Graphs not working

Post by SavaSC »

Thank you for the information. Good to know how it works.

It doesn't look like Win_NT will give any RRD output. Going to have to look and see if any other plug-ins will do it.

Thanks for your help.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Graphs not working

Post by npolovenko »

@SavaSC , Have you ran a windows desktop wizard in Nagios XI? It uses NSClient and it has a bunch of checks that do have graphs. It's just this particular plugin only checks whether the process is up or down, there's not really much of a data to draw a graph with. If that makes sense.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Re: Graphs not working

Post by SavaSC »

Just tried on both of our Nagios instances. One throws a HTTP 500 error when I go to Configure -> Configuration Wizards. The other one went through the wizard only to throw a config error when it tried to finalize.

Always something. :roll:
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Graphs not working

Post by npolovenko »

@SavaSC , I'd recommend opening a new forum thread for at least one of these issues as neither of them is probably related the graphs. We like to keep threads separate so that other users can reuse this information in the future. On Nagios server that gave you HTTP 500 error we'd need to see the apache log file to understand what's going on. Please upload:

Code: Select all

/var/log/httpd/error_log
On the server that threw a config error we'd like to see the screenshot of that error. DId you enter the password when you went through the wizard?
Also, are both XI servers added to the allowed_hosts in nsclient.ini file on the windows computer?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked