Skip to main content

Hi All,

I’ve configured a passwive monitoring form my device, in centreontrapd.log I see this:

 

2024-02-05 12:11:15 - DEBUG - 961124 - Processing file: #centreon-trap-1707131474109927
2024-02-05 12:11:15 - DEBUG - 961124 - Reading trap.  Current time: Mon Feb  5 12:11:15 2024
2024-02-05 12:11:15 - DEBUG - 961124 - Raw trap passed from snmptrapd:
2024-02-05 12:11:15 - DEBUG - 961124 - 1707131474
2024-02-05 12:11:15 - DEBUG - 961124 - UDP: U10.36.245.100]:65534->-10.36.245.115]:162
2024-02-05 12:11:15 - DEBUG - 961124 - UDP: U10.36.245.100]:65534->-10.36.245.115]:162
2024-02-05 12:11:15 - DEBUG - 961124 - .1.3.6.1.2.1.1.3.0 0:2:42:00.29
2024-02-05 12:11:15 - DEBUG - 961124 - .1.3.6.1.6.3.1.1.4.1.0 .1.3.6.1.4.1.17095.1.0.2
2024-02-05 12:11:15 - DEBUG - 961124 - .1.3.6.1.4.1.17095.1.3.8.0 0
2024-02-05 12:11:15 - DEBUG - 961124 - .1.3.6.1.6.3.18.1.3.0 10.36.245.100
2024-02-05 12:11:15 - DEBUG - 961124 - .1.3.6.1.6.3.1.1.4.3.0 .1.3.6.1.4.1.17095.1
2024-02-05 12:11:15 - DEBUG - 961124 - Items passed from snmptrapd:
2024-02-05 12:11:15 - DEBUG - 961124 - value 0: 10.36.245.100
2024-02-05 12:11:15 - DEBUG - 961124 - value 1: 10.36.245.100
2024-02-05 12:11:15 - DEBUG - 961124 - value 2: .1.3.6.1.2.1.1.3.0
2024-02-05 12:11:15 - DEBUG - 961124 - value 3: 0:2:42:00.29
2024-02-05 12:11:15 - DEBUG - 961124 - value 4: .1.3.6.1.6.3.1.1.4.1.0
2024-02-05 12:11:15 - DEBUG - 961124 - value 5: .1.3.6.1.4.1.17095.1.0.2
2024-02-05 12:11:15 - DEBUG - 961124 - value 6: .1.3.6.1.4.1.17095.1.3.8.0
2024-02-05 12:11:15 - DEBUG - 961124 - value 7: 0
2024-02-05 12:11:15 - DEBUG - 961124 - value 8: .1.3.6.1.6.3.18.1.3.0
2024-02-05 12:11:15 - DEBUG - 961124 - value 9: 10.36.245.100
2024-02-05 12:11:15 - DEBUG - 961124 - value 10: .1.3.6.1.6.3.1.1.4.3.0
2024-02-05 12:11:15 - DEBUG - 961124 - value 11: .1.3.6.1.4.1.17095.1
2024-02-05 12:11:15 - DEBUG - 961124 - Agent IP address (10.36.245.100) is the same as the host IP, so copying the host name: 10.36.245.100
2024-02-05 12:11:15 - DEBUG - 961124 - Trap received from 10.36.245.100: .1.3.6.1.4.1.17095.1.0.2
2024-02-05 12:11:15 - DEBUG - 961124 - 0:               hostname
2024-02-05 12:11:15 - DEBUG - 961124 - 1:               ip address
2024-02-05 12:11:15 - DEBUG - 961124 - 2:               uptime
2024-02-05 12:11:15 - DEBUG - 961124 - 3:               trapname / OID
2024-02-05 12:11:15 - DEBUG - 961124 - 4:               ip address from trap agent
2024-02-05 12:11:15 - DEBUG - 961124 - 5:               trap community string
2024-02-05 12:11:15 - DEBUG - 961124 - 6:               enterprise
2024-02-05 12:11:15 - DEBUG - 961124 - 7:               securityEngineID        (not use)
2024-02-05 12:11:15 - DEBUG - 961124 - 8:               securityName            (not use)
2024-02-05 12:11:15 - DEBUG - 961124 - 9:               contextEngineID         (not use)
2024-02-05 12:11:15 - DEBUG - 961124 - 10:              contextName             (not)
2024-02-05 12:11:15 - DEBUG - 961124 - 0+:              passed variables
2024-02-05 12:11:15 - DEBUG - 961124 - Value 0: 10.36.245.100
2024-02-05 12:11:15 - DEBUG - 961124 - Value 1: 10.36.245.100
2024-02-05 12:11:15 - DEBUG - 961124 - Value 2: 0:2:42:00.29
2024-02-05 12:11:15 - DEBUG - 961124 - Value 3: .1.3.6.1.4.1.17095.1.0.2
2024-02-05 12:11:15 - DEBUG - 961124 - Value 4: 10.36.245.100
2024-02-05 12:11:15 - DEBUG - 961124 - Value 5:
2024-02-05 12:11:15 - DEBUG - 961124 - Value 6: .1.3.6.1.4.1.17095.1
2024-02-05 12:11:15 - DEBUG - 961124 - Value 7:
2024-02-05 12:11:15 - DEBUG - 961124 - Value 8:
2024-02-05 12:11:15 - DEBUG - 961124 - Value 9:
2024-02-05 12:11:15 - DEBUG - 961124 - Value 10:
2024-02-05 12:11:15 - DEBUG - 961124 - Agent dns name: 10.36.245.100
2024-02-05 12:11:15 - DEBUG - 961124 - Ent Value 0 ($1): .1.3.6.1.4.1.17095.1.3.8.0=0
2024-02-05 12:11:15 - DEBUG - 961124 - Trap digest: 773d15b9713906d3b99dd9e09b5b364d
2024-02-05 12:11:15 - DEBUG - 961124 - Trap found on service 'Kymata-passive' for host 'KYMATA-TEST-1'.
2024-02-05 12:11:15 - INFO - 961124 - CHLD command launched: 985502
2024-02-05 12:11:15 - INFO - 985502 - SUBMIT: Force service status via passive check update
2024-02-05 12:11:15 - INFO - 985502 - SUBMIT: Launched command: /bin/echo "EXTERNALCMD:1: 1707131475] PROCESS_SERVICE_CHECK_RESULT;KYMATA-TEST-1;Kymata-passive;0;UpTime: $2" >> /var/lib/centreon/centcore/1707131475-traps
2024-02-05 12:11:15 - DEBUG - 961124 - Trap without service associated for host KYMATA-TEST-1. Skipping...
2024-02-05 12:11:15 - DEBUG - 961124 - Sleeping for 2 seconds
2024-02-05 12:11:15 - INFO - 961124 - SIGCHLD received: 985502

 

Now, I need to create a service that see me only this this row:

2024-02-05 12:11:15 - DEBUG - 961124 - Value 2: 0:2:42:00.29

 

How can I do it, please?

Anyone can help me, please?

Be the first to reply!

Reply