Page 2 of 2
Re: Perf Graph not being created when adding/copying service
Posted: Fri Oct 17, 2014 10:10 am
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]?
Re: Perf Graph not being created when adding/copying service
Posted: Wed Oct 22, 2014 1:00 pm
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?
Re: Perf Graph not being created when adding/copying service
Posted: Wed Oct 22, 2014 1:57 pm
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
Re: Perf Graph not being created when adding/copying service
Posted: Wed Oct 22, 2014 3:13 pm
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
Re: Perf Graph not being created when adding/copying service
Posted: Wed Oct 22, 2014 3:30 pm
by brudnick
How do I go about patching this?
Re: Perf Graph not being created when adding/copying service
Posted: Wed Oct 22, 2014 4:25 pm
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
Re: Perf Graph not being created when adding/copying service
Posted: Thu Mar 05, 2015 11:50 am
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?
Re: Perf Graph not being created when adding/copying service
Posted: Thu Mar 05, 2015 1:37 pm
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