Announcement

Collapse
No announcement yet.

Problem to add or remove new host / services

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Originally posted by Grejao View Post
    Ok, i upgrade my centreon to 1.4.2.3 without problems. But i didn't understand your parse from my problem. Where i need to change to ods get data from perfdata?

    my perfdata are writing ok on /usr/local/nagios/var/service-perfdata.

    what i need to change at "Configuration > Nagios > Nagios CFG" ???
    Juste read my first sentence, you must have empty "Host Performance Data File Processing Command" and "Service Performance Data File Processing Command", you don't need to specify Host/Service Performance Data File either so :

    Code:
    Performance Data Processing Option			Yes
    Host Performance Data Processing Command		process-host-perfdata	
    Service Performance Data Processing Command		process-service-perfdata
    Host Performance Data File				<nothing>
    Service Performance Data File				<nothing>
    Host Performance Data File Template			<nothing>	
    Service Performance Data File Template			<nothing>
    Host Performance Data File Mode	a w Default		<nothing>
    Service Performance Data File Mode	a w Default	<nothing>
    Host Performance Data File Processing Interval		<nothing>	
    Service Performance Data File Processing Interval	<nothing>
    Host Performance Data File Processing Command		<nothing>
    Service Performance Data File Processing Command	<nothing>
    Then, your biggest problem is in the definition of your "process-service-perdata" command, your service-perfdata file is filled with [SERVICEPERFDATA] instead of actual perfdata. Edit this command, it should contain exactly the following line (without any line feed or extra characters) :

    $USER1$/process-service-perfdata "$LASTSERVICECHECK$" "$HOSTNAME$" "$SERVICEDESC$" "$SERVICEOUTPUT$" "$SERVICESTATE$" "$SERVICEPERFDATA$"
    Système : Debian Etch 4.0r8 / Apache 2.2.3 / PHP 5.2.0 / MySQL 5.0.32
    Monitoring : Nagios 2.12 / Plugins 1.4.13 / Centreon 1.4.2.7

    Comment

    Working...
    X