Quick Graph issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
JohnFLi
Posts: 537
Joined: Mon Jun 17, 2013 3:11 pm

Quick Graph issue

Post by JohnFLi »

somethign I just no0ticed, the graph IS working for some of my service check, but not for others.
For Example, Server A, all checks have Graphs, but the Check for CPU, says "No Data to Display"
Server B, all the checks have graphs, including the CPU.

The difference between the two is:
Server A uses

Code: Select all

check command:  check_xi_ncpa   command:  $USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$
server B uses

Code: Select all

Check Command:  check_xi_service_nsclient  command: $USER1$/check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$


How do I get Server A working properly?
Everybody is somebody else’s weirdo
sgardil
Posts: 246
Joined: Wed Aug 09, 2023 9:58 am

Re: Quick Graph issue

Post by sgardil »

Have you checked your ncpa config files to see if it is configured for CPU data? They should be in your ncpa.cfg file.
User avatar
JohnFLi
Posts: 537
Joined: Mon Jun 17, 2013 3:11 pm

Re: Quick Graph issue

Post by JohnFLi »

Do you happen to know what to look for? I do not see any item for any graphing, including the items that are being graphed.

Also, when I go the the server in question, open a web bowser and go to https://localhost:5693/
it does show the cpu is being graphed

Also, I set the Time Frame for the CPU Graph to 365 days....it does show that it has the grpahing data since the machine was built (this Feb) until April 2nd at 1:32 pm What happened at that date and time, I do not remember.
Everybody is somebody else’s weirdo
kg2857
Posts: 302
Joined: Wed Apr 12, 2023 5:48 pm

Re: Quick Graph issue

Post by kg2857 »

Locate the perfdata dir on the nagios host and check the timestamp on the rrd and xml files for the services that aren't graphing. If something changed about the service, like the format of the perfdata, the system can get mad and stop updating the files. Move or remove rrd files that aren't being updated.
Run a check from the shell on one of the nonworking hosts/services and see if any perfdata is produced. Perfdata is whatever comes after the pipe char |.
User avatar
JohnFLi
Posts: 537
Joined: Mon Jun 17, 2013 3:11 pm

Re: Quick Graph issue

Post by JohnFLi »

Great, thank you
I located the .rrd file and renamed it. Had it do a check about 5 or so times.
It never re-created the rdd file...renamed the original rdd file back to original, then emptied the file.
run about 5 checks on it....no change
Copied the .xml file from a working machine, and placed in the directory (in case that file got hosed)
still nothing.

any other thoughts? This is just odd.

(edit)
in the time it took me to write the above response, the .rdd file did get created, and is now over 3 megs in size....when I try to look at the graph now, it is no longer saying 'no data to display' it does show that there is a CPU count, but no graph, i will let this sit for a bit and check again

The top pic is the before
The second pic is the after....still bad, but a little better
sql16bad.jpg
sql16bad2.jpg
You do not have the required permissions to view the files attached to this post.
Last edited by JohnFLi on Thu May 16, 2024 9:44 am, edited 1 time in total.
Everybody is somebody else’s weirdo
User avatar
JohnFLi
Posts: 537
Joined: Mon Jun 17, 2013 3:11 pm

Re: Quick Graph issue

Post by JohnFLi »

well, after letting it sit for a bit, it does appear to be working now.
I found another machine whose CPU graph died. Did the same think, and that looks to be working now too.
So i guess this thread can be locked.

sql16good.jpg
You do not have the required permissions to view the files attached to this post.
Everybody is somebody else’s weirdo
Locked