Perf Graph not being created when adding/copying service CCM

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: Perf Graph not being created when adding/copying service

Post by lmiltchev »

Anytime I add a new service to a host or copy a service in the host, it is not creating a performance graph. No files are being created in the /usr/local/nagios/share/perfdata/HostName
Am I doing something wrong or is this a bug in the system?
Are you sure the "original" service returns perfdata?

I was not able to recreate the issue. I created a copy of the existing service "Open Files". The RRD and XML files were created, and I can see perfraphs already...

Code: Select all

[root@testbox CentOS6-NRPE]# ll Open*
-rw-rw-rw- 1 nagios nagios 384736 Oct 17 09:51 Open_Files_COPY.rrd
-rw-rw-rw- 1 nagios nagios   2183 Oct 17 09:51 Open_Files_COPY.xml
-rwxrwxr-x 1 nagios nagios 384736 Oct 17 09:54 Open_Files.rrd
-rw-rw-rw- 1 nagios nagios   2153 Oct 17 09:54 Open_Files.xml
example02.PNG
We may need to move this to the email ticketing system. Could you send us the profile.zip to [email protected]?
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
brudnick
Posts: 37
Joined: Mon Feb 17, 2014 3:17 pm

Re: Perf Graph not being created when adding/copying service

Post by brudnick »

I think I may have found the problem with some of the graphs not loading anymore. I am getting an "Invalid Perfdata detected" error in the perfdata.log on a bunch of graphs. Below is an example

2014-10-22 11:55:46 [30787] [1] Found Performance Data for s01 / __Disk_Usage (/=491MB;921;1036;0;1152 /usr=4449MB;5472;5644;0;5760 /var=2416MB;3276;3686;0;4096 /tmp=652MB;3276;3686;0;4096 /home=6894MB;8192;9216;0;10240 /usr/infmx/dump=1359MB;2457;2764;0;3072 /opt=794MB;3276;3686;0;4096 /app=1479MB;1638;1843;0;2048 /ap)
2014-10-22 11:55:46 [30787] [1] Invalid Perfdata detected

It appears as though it is not returning the entirety of the perfdata. Is there a way to turn up the amount of characters that the perfdata can take in?
brudnick
Posts: 37
Joined: Mon Feb 17, 2014 3:17 pm

Re: Perf Graph not being created when adding/copying service

Post by brudnick »

This is what Core is showing for the above service:

Status Information: DISK OK - free space: / 660 MB (57% inode=96%): /usr 1310 MB (22% inode=93%): /var 1678 MB (40% inode=98%): /tmp 3443 MB (84% inode=98%): /home 3345 MB (32% inode=98%): /usr/infmx/dump 1712 MB (55% inode=98%): /opt 3301 MB (80% inode=98%): /app 568 MB (27% inode=99%): /app/RESTORE 1357 MB (32% inode=99%): /app/hic 7855 MB (81% inode=99%): /app/hyatt 6431 MB (30% inode=99%): /app/hyatt/efolio 11925 MB (65% inode=93%): /app/hyatt/gsth 2761 MB (26% inode=97%): /app/hyatt/spirit 4888 MB (79% inode=99%): /app/hyatt/spirit/data 760 MB (24% inode=99%): /share 473 MB (92% inode=99%): /usr/infmx 1712 MB (55% inode=98%): /usr/local 626 MB (61% inode=96%): /usr/tivoli/tsm/logdisk 3967 MB (96% inode=99%): /var/perf_data 1783 MB (87% inode=99%): /var/tmp/hds 5222 MB (99% inode=99%):

Performance Data: /=491MB;921;1036;0;1152 /usr=4449MB;5472;5644;0;5760 /var=2417MB;3276;3686;0;4096 /tmp=652MB;3276;3686;0;4096 /home=6894MB;8192;9216;0;10240 /usr/infmx/dump=1359MB;2457;2764;0;3072 /opt=794MB;3276;3686;0;4096 /app=1479MB;1638;1843;0;2048 /ap
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Perf Graph not being created when adding/copying service

Post by abrist »

NRPE is hitting a hard limit of 1024. You either need to split the check up into 2 checks, or build a new version of nrpe/check nrpe from github:
https://github.com/NagiosEnterprises/nrpe/pull/1
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
brudnick
Posts: 37
Joined: Mon Feb 17, 2014 3:17 pm

Re: Perf Graph not being created when adding/copying service

Post by brudnick »

How do I go about patching this?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Perf Graph not being created when adding/copying service

Post by tmcdonald »

I went ahead and patched the source code for you, and it's attached in this .zip file. You'll need to compile it just as you did when you first installed it. We have a PDF explaining the install process:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
User avatar
mberkley
Posts: 38
Joined: Thu Mar 27, 2014 10:46 am
Location: Chicago, IL
Contact:

Re: Perf Graph not being created when adding/copying service

Post by mberkley »

tmcdonald wrote:I went ahead and patched the source code for you, and it's attached in this .zip file. You'll need to compile it just as you did when you first installed it. We have a PDF explaining the install process:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
Not to dig this back up, does this work with the latest version of NagiosXI? Also how do you compile this?
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Perf Graph not being created when adding/copying service

Post by cmerchant »

You dug it up... Yes, It should work for the current vesion of XI. Download the patched version (the zip file from this thread), and just follow this guide here to compile NRPE:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
Locked