<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <tt>hi,<br>
      <br>
      this is one of those patches i did not yet get an idea on how to
      make it portable from icinga to nagios. since there was a release
      rushed into today, i decided to throw this just "as is" onto the
      list as it seems that no-one else tested/encountered this yet.
      most likely users will ask about that soon - so get to know that
      prior to installing and debugging this release.<br>
      <br>
      feel free to create your own working patch out of it. <br>
      <br>
      <a class="moz-txt-link-freetext" href="https://dev.icinga.org/issues/1413">https://dev.icinga.org/issues/1413</a><br>
      <br>
      <br>
      main issue will be with 3.3.1 that nagiosgrapher and ohcp/oscp
      won't work anymore with not sent perfdata if the plugin output
      does not provide any (because it's empty and not processed in the
      macro calculation in xdata/xpddefault.c). a possible workaround is
      to make sure each plugin provides perfdata output (like it should
      be).<br>
      <br>
      <br>
      i decided to make it a config option in icinga 1.4.0 to allow
      those users not needing it, to explicitely disable that. for the
      others, icinga 1.4.0 got that fixed thanks to various icinga users
      out there.<br>
      it's not the cleanest patch, but i'll leave it here for porting it
      into nagios upstream.<br>
      <br>
<a class="moz-txt-link-freetext" href="https://git.icinga.org/?p=icinga-core.git;a=commit;h=465f5aa1710f60e41db012ba7915e66fdfdce06e">https://git.icinga.org/?p=icinga-core.git;a=commit;h=465f5aa1710f60e41db012ba7915e66fdfdce06e</a><br>
      <br>
      kind regards,<br>
      michael<br>
      <br>
      <br>
      ps: some tests on the released source to proof it right away.<br>
      <br>
      define command{<br>
              command_name    process-service-perfdata-file<br>
              command_line    /bin/mv
      /usr/local/nagios/var/service-perfdata
      /usr/local/nagios/var/perfdata/service-perfdata.$TIMET$<br>
      }<br>
      <br>
      define command{<br>
              command_name    process-host-perfdata-file<br>
              command_line    /bin/mv
      /usr/local/nagios/var/host-perfdata
      /usr/local/nagios/var/perfdata/host-perfdata.$TIMET$<br>
      }<br>
      <br>
      <br>
      process_performance_data=1<br>
      <br>
      host_perfdata_process_empty_results=1<br>
      service_perfdata_process_empty_results=1<br>
      <br>
      service_perfdata_file=/usr/local/nagios/var/service-perfdata<br>
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$<br>
      service_perfdata_file_mode=a<br>
      service_perfdata_file_processing_interval=15<br>
service_perfdata_file_processing_command=process-service-perfdata-file<br>
      <br>
      host_perfdata_file=/usr/local/nagios/var/host-perfdata<br>
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$<br>
      host_perfdata_file_mode=a<br>
      host_perfdata_file_processing_interval=15<br>
      host_perfdata_file_processing_command=process-host-perfdata-file<br>
      <br>
      <br>
      <br>
      <br>
      <br>
      nagios 3.3.1<br>
      <br>
      ~/nagios/nagios $ tail -f /usr/local/nagios/var/service-perfdata<br>
      DATATYPE::SERVICEPERFDATA       TIMET::1311688921      
      HOSTNAME::localhost     SERVICEDESC::HTTP      
      SERVICEPERFDATA::time=0.064582s;;;0.000000 size=508B;;;0       
      SERVICECHECKCOMMAND::check_http      HOSTSTATE::UP  
      HOSTSTATETYPE::SOFT     SERVICESTATE::OK       
      SERVICESTATETYPE::HARD<br>
      DATATYPE::SERVICEPERFDATA       TIMET::1311688961      
      HOSTNAME::localhost     SERVICEDESC::PING      
      SERVICEPERFDATA::rta=0.035000ms;100.000000;500.000000;0.000000
      pl=0%;20;60;0SERVICECHECKCOMMAND::check_ping!100.0,20%!500.0,60%     
      HOSTSTATE::UP   HOSTSTATETYPE::HARD     SERVICESTATE::OK       
      SERVICESTATETYPE::HARD<br>
      DATATYPE::SERVICEPERFDATA       TIMET::1311689001      
      HOSTNAME::localhost     SERVICEDESC::Root Partition    
      SERVICEPERFDATA::/=636MB;3172;3569;0;3966      
      SERVICECHECKCOMMAND::check_local_disk!20%!10%!/     
      HOSTSTATE::UP   HOSTSTATETYPE::HARD     SERVICESTATE::OK       
      SERVICESTATETYPE::HARD<br>
      DATATYPE::SERVICEPERFDATA       TIMET::1311689071      
      HOSTNAME::localhost     SERVICEDESC::Swap Usage
      SERVICEPERFDATA::swap=975MB;0;0;0;1027 
      SERVICECHECKCOMMAND::check_local_swap!20!10  HOSTSTATE::UP  
      HOSTSTATETYPE::HARD     SERVICESTATE::OK       
      SERVICESTATETYPE::HARD<br>
      DATATYPE::SERVICEPERFDATA       TIMET::1311689151      
      HOSTNAME::localhost     SERVICEDESC::Current Load      
      SERVICEPERFDATA::load1=0.080;5.000;10.000;0;
      load5=0.030;4.000;6.000;0; load15=0.010;3.000;4.000;0; 
      SERVICECHECKCOMMAND::check_local_load!5.0,4.0,3.0!10.0,6.0,4.0 
      HOSTSTATE::UP   HOSTSTATETYPE::HARD     SERVICESTATE::OK       
      SERVICESTATETYPE::HARD<br>
      <br>
      removed empty perfdata checks<br>
      <br>
      ~/nagios/nagios $ tail -f /usr/local/nagios/var/service-perfdata<br>
      DATATYPE::SERVICEPERFDATA       TIMET::1311690425      
      HOSTNAME::localhost     SERVICEDESC::HTTP      
      SERVICEPERFDATA::time=0.000690s;;;0.000000 size=508B;;;0       
      SERVICECHECKCOMMAND::check_http      HOSTSTATE::UP  
      HOSTSTATETYPE::HARD     SERVICESTATE::OK       
      SERVICESTATETYPE::HARD<br>
      DATATYPE::SERVICEPERFDATA       TIMET::1311690465      
      HOSTNAME::localhost     SERVICEDESC::PING      
      SERVICEPERFDATA::rta=0.035000ms;100.000000;500.000000;0.000000
      pl=0%;20;60;0SERVICECHECKCOMMAND::check_ping!100.0,20%!500.0,60%     
      HOSTSTATE::UP   HOSTSTATETYPE::HARD     SERVICESTATE::OK       
      SERVICESTATETYPE::HARD<br>
      DATATYPE::SERVICEPERFDATA       TIMET::1311690495      
      HOSTNAME::localhost     SERVICEDESC::Root Partition    
      SERVICEPERFDATA::/=636MB;3172;3569;0;3966      
      SERVICECHECKCOMMAND::check_local_disk!20%!10%!/     
      HOSTSTATE::UP   HOSTSTATETYPE::HARD     SERVICESTATE::OK       
      SERVICESTATETYPE::HARD<br>
      DATATYPE::SERVICEPERFDATA       TIMET::1311690535      
      HOSTNAME::localhost     SERVICEDESC::SSH        <b>SERVICEPERFDATA::      
      </b>SERVICECHECKCOMMAND::check_ssh  HOSTSTATE::UP  
      HOSTSTATETYPE::HARD  SERVICESTATE::OK       
      SERVICESTATETYPE::HARD<br>
      DATATYPE::SERVICEPERFDATA       TIMET::1311690575      
      HOSTNAME::localhost     SERVICEDESC::Swap Usage
      SERVICEPERFDATA::swap=975MB;0;0;0;1027 
      SERVICECHECKCOMMAND::check_local_swap!20!10  HOSTSTATE::UP  
      HOSTSTATETYPE::HARD     SERVICESTATE::OK       
      SERVICESTATETYPE::HARD<br>
      DATATYPE::SERVICEPERFDATA       TIMET::1311690615      
      HOSTNAME::localhost     SERVICEDESC::Total Processes    <b>SERVICEPERFDATA::      
      </b>SERVICECHECKCOMMAND::check_local_procs!250!400!RSZDT
      HOSTSTATE::UP   HOSTSTATETYPE::HARD     SERVICESTATE::OK       
      SERVICESTATETYPE::HARD<br>
      DATATYPE::SERVICEPERFDATA       TIMET::1311690645      
      HOSTNAME::localhost     SERVICEDESC::Current Load      
      SERVICEPERFDATA::load1=0.000;5.000;10.000;0;
      load5=0.020;4.000;6.000;0; load15=0.000;3.000;4.000;0; 
      SERVICECHECKCOMMAND::check_local_load!5.0,4.0,3.0!10.0,6.0,4.0 
      HOSTSTATE::UP   HOSTSTATETYPE::HARD     SERVICESTATE::OK       
      SERVICESTATETYPE::HARD<br>
      <br>
    </tt>
    <pre class="moz-signature" cols="72">-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  <a class="moz-txt-link-abbreviated" href="mailto:michael.friedrich@univie.ac.at">michael.friedrich@univie.ac.at</a>
phone:  +43 1 4277 14359 
mobile: +43 664 60277 14359 
fax:    +43 1 4277 14338
web:    <a class="moz-txt-link-freetext" href="http://www.univie.ac.at/zid">http://www.univie.ac.at/zid</a>
        <a class="moz-txt-link-freetext" href="http://www.aco.net">http://www.aco.net</a>

Icinga Core & IDOUtils Developer
<a class="moz-txt-link-freetext" href="http://www.icinga.org">http://www.icinga.org</a>
</pre>
  </body>
</html>