Ad Widget

Collapse

Log File Monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kamaleshwaran86
    Junior Member
    • Mar 2013
    • 5

    #1

    Log File Monitoring

    Hi All,

    I tried to monitor catalina.out file of tomcat process in redhat linux OS. When i try to stop tomcat process, I could able to see the trigger status as PROBLEM. But, when I started the process, trigger still remain PROBLEM status instead of changing to OK status.

    My trigger expression: {RHEL.gogoib:log["/usr/local/apache-tomcat-6.0.35/logs/catalina.out","Stopping","UTF-8",1].str(Stopping)}=1

    I also tried with below expression, but still experience the same problem.

    {RHEL.gogoib:log["/usr/local/apache-tomcat-6.0.35/logs/catalina.out","Stopping","UTF-8",1].logsource(stopping)}=0

    Please someone help on this.

    Thanks,
    Kamal
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    The trigger function str(Stopping) evaluates to 1 when the last received value of the corresponding item includes the string 'Stopping'.
    So far so good.

    But the corresponding item key:
    log["/usr/local/apache-tomcat-6.0.35/logs/catalina.out","Stopping","UTF-8",1]
    lets the agent send only lines containing 'Stopping' to the server.

    The trigger will always evaluate to 1, because the item will never get a log line without containing 'Stopping'.

    Comment

    Working...