-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 30/08/07 10:40 PM, Chris Lee wrote: > Hi All, > > Thank you very much for giving me the useful information. I think these are > the parameters that I need :) > > process_performance_data > host_perfdata_file > service_perfdata_file > host_perfdata_template > service_perdata_template > host_perfdata_file_processing_command > service_perfdata_file_processing_command > host_perfdata_command > service_perfdata_command
You're missing: host_perfdata_file_processing_interval service_perfdata_file_processing_interval You will not need all of them. There are two ways of doing it. You can either have nagios run a command after each check (The perfdata is passed on the command line) or have Nagios write to a file (which can be a pipe as well). Among the parameters you mentioned some of them are for a perfdata command while others are for a perfdata file. If you choose to write to a file, you can optionally have nagios run a command every *_perfdata_file_processing_interval to process the file (Nagios will reopen the file once the command terminate, so the best way to do it is to move the file away, fork and then process it). Note that running a command on each check will become a bottleneck soon enough if you're doing a lot of checks, so writing to a file or pipe is preferred. If you have good Perl knowledge you should take a look at my OCP_Daemon which could be a good starting point if you want to write your own daemon to process the data: http://www.nagioscommunity.org/wiki/index.php/OCP_Daemon Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG15Ij6dZ+Kt5BchYRAhRHAJ4/GMzfuFtKn6NT+cyKldiZAHU/ZgCffDRQ XSzI7O3kPlEdS8d5HfhEvhk= =lWCt -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null