Find the answer to your Linux question:
Results 1 to 3 of 3
HELP!!! I didn't define the "comment_cfg=/xxx/xxx.cfg" in nagios.cfg,but after I wrote some comments on the hosts and services,I can't find the file which's storing those comments.I need to write a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Location
    China
    Posts
    3

    nagios:where is the "comment" file?


    HELP!!!
    I didn't define the "comment_cfg=/xxx/xxx.cfg" in nagios.cfg,but after I wrote some comments on the hosts and services,I can't find the file which's storing those comments.I need to write a script to process lots of comments on the monitoring object.
    And,I need some perl scripts templae for nagios plugin,search on google many days but get nothing......can somebody help!!!

  2. #2
    Just Joined! tenebrous's Avatar
    Join Date
    Aug 2009
    Location
    Ukraine
    Posts
    4
    Quote Originally Posted by criver View Post
    HELP!!!
    I didn't define the "comment_cfg=/xxx/xxx.cfg" in nagios.cfg,but after I wrote some comments on the hosts and services,I can't find the file which's storing those comments.I need to write a script to process lots of comments on the monitoring object.
    And,I need some perl scripts templae for nagios plugin,search on google many days but get nothing......can somebody help!!!
    Firstly, could you tell me please what version of Nagios do you have. Secondly, as I can there is no define "comment_cfg=/xxx/xxx.cfg" to use in Nagios configuration files.
    In the Nagios 1.0/2.0 documentation is mentioned about comment files:

    Format: comment_file=<file_name>
    Example: comment_file=/usr/local/nagios/var/comment.log

    So you can try to search the comment.log file (locate comment.log, or etc) or check the path given in the example.

  3. #3
    Just Joined!
    Join Date
    Jun 2009
    Location
    China
    Posts
    3
    the version of nagios is 3.0
    I found it ,it located in the /var directory
    now i can run a script to proccess it

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •