Page 1 of 1
Quick Graph issue
Posted: Wed May 15, 2024 10:39 am
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?
Re: Quick Graph issue
Posted: Wed May 15, 2024 2:45 pm
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.
Re: Quick Graph issue
Posted: Wed May 15, 2024 3:10 pm
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.
Re: Quick Graph issue
Posted: Wed May 15, 2024 8:41 pm
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 |.
Re: Quick Graph issue
Posted: Thu May 16, 2024 8:59 am
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
Re: Quick Graph issue
Posted: Thu May 16, 2024 9:44 am
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