Loading...
 

Plugins

FAQ covering plugin data to PerfParse

Questions

Answers

Question: Which plugins work with PerfParse
Answer  A list of plugins which produce valid performance data are listed below. Kindly submitted by Benoit Mortier.

These are correct to HEAD snapshot 2004-12-07. See end of posting.

check_dig
check_disk
check_dns
check_fping
check_game
check_http
check_icmp (new in cvs with the patch from perfparse)
check_ldap
check_load
check_mrtg
check_mrtgraf
check_nt
check_pgsql
check_smtp
check_tcp
check_time
check_ups
check_user

Those which do not:

check_by_ssh
check_dhcp
check_hpjd
check_ide_smart
check_mysql
check_nagios
check_nwstat
check_overcr
check_ping
check_procs
check_radius
check_real
check_ssh
check_ups

Latest alpha release plugins: http://sourceforge.net/project/showfiles.php?group_id=29880Question

Latest nightly snapshot of plugins: (use the HEAD version) http://nagiosplug.sourceforge.net/snapshot/Question


Question: I get no binary data in PerfParse for my service
Answer  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#id265256Question

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.phpQuestion

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#AEN185Question

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.phpQuestion

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=1Question, or this mailing list: perfparse-users at lists.sf.net and let us know. There may be a good reason why not and we would want to keep other users informed.



Shoutbox

redflo, 14:25 UTC, Sun 10 of Apr, 2005: No, lneuxyuhje, this shall write to a pipe not to a file and so ">" is o.k.
lneuxyuhje, 15:14 UTC, Thu 07 of Apr, 2005: is ">" meant to be ">>" in /usr/local/perfparse/bin/perfparse_nagios_pipe_command.pl ?
redflo, 08:35 UTC, Tue 05 of Apr, 2005: fhdplbvjipsld, it works now. Permissions were wrong.
fhdplbvjipsld, 14:42 UTC, Wed 30 of Mar, 2005: How to post to Forums->Help?
benclewett, 09:27 UTC, Thu 03 of Feb, 2005: Hi Jon! I hope you like our wiki site.