A: This can only be that you have no performance data. There are a number of reasons for this. Please review some below. If you still cannot get performance data please let us know.
1. No performance data in plugin.
The most basic reason is that your plugin does not contain any performance data. To check this please try running your plugin from the command line. You should get a similar response to this:
OK - load average: 0.38, 0.50, 0.50|load1=0.380;1.500;2.000;0.000 load5=0.500;1.000;2.000;0.000 load15=0.500;1.000;2.000;0.000
The performance data can be seen after the '|'. If you do not have this, you will not get binary data to graph.
1. No performance data in plugin.
Ensure that nagios-1.2 was compiled with --with-default-perfdata or --with-file-perfdata.
Notice that if you enable both, only file-perfdata will work.
Suse-9.1 official package for nagios-1.2 was reported to be compiled without any of those two options. Recompilation was needed.
3. Using the Nagios file method (Method 1). No or bad data seen for all services.
Method 1:
http://perfparse.sourceforge.net/docs.php#id265256
Please ensure you have these line in nagios.cfg:
process_performance_data=1
xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log
xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$SERVICESTATE$\t$PERFDATA$
Please also set the permissions on this file as -rw-rw-r-- ie:
$ chmod 664 serviceperf.log
Examine the service log file and ensure data is present. For instance:
1102589732 Host Service OK - load average: 0.26, 0.20, 0.18 OK load1=0.26;15.00;30.00;0.00 load5=0.20;10.00;25.00;0.00 load15=0.18;5.00;20.00;0.00
If you have this you should get valid binary data graphs.
4. You are using Method 3 or 4 and using a plugin with 'quoted' metric names.
Eg, the check_nt plugin.
Methods 3 and 4:
http://perfparse.sourceforge.net/docs.php
You may loose the performance data because the quotes are stripped off the performance metric name:
'60 min avg Load'=0%;80;95;0;100
Becomes:
60 min avg Load=0%;80;95;0;100
Please edit nagios.cfg and find this line:
illegal_macro_output_chars=`~$&|'"<>
Remove the ' and try again.
5. My own plugins does not seem to work.
Check the format of your plugin against the specification:
http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN185
For instance, these are legal outputs. Nothing more complex is required:
| name=23
| name=23users
| 'my name'=23
| name=23users;40;50
| name=23users;40;50;0;100
| name=23;40;50;0;100
| name=23 site=45 age=34
These are
not legal:
| name=23,site=45,age=102
| name = 23
| my name=23
| name=ben
Note that if you are contracting your own output, please limit the UOM to 20 characters. (metric=123.123limitHereToLessThan20Chars) If you wish to use more please contact us.
6. Nagios is not producing performance data what ever I do.
Check services.cfg. Check this flag:
process_perf_data 1 ; Process performance data
These is also a similar option in the Nagios HTTP interface.
7. I have data but this seems to get lost on import.
Please ensure you are using your storage method correctly. See the installation guide for more information.
http://perfparse.sourceforge.net/docs.php
Some
PerfParse options may be run with a debug. For instance any call to perfparse-log2db can be appended with -r -s which may help. Examine the log file, there may be something in this.
8. Tried all of these, still no luck.
Please contact us using this forum:
http://www.perfparse.de/tiki-view_forum.php?forumId=1, or this mailing list:
perfparse-users@lists.sf.net and let us know. There may be a good reason why not and we would want to keep other users informed.