Hi All,
I really need help. I am new to Zabbix. Today I got the requirement that we have one python script and the script results large amount of data, But to send it Zabbix we need only few results from the script to send it to Zabbix. is there any way. Here is my python script output
Response
SIP/2.0 401 Unauthorized
Via: SIP/2.0/udp :38111;rport=38111;received=
From: <sip:watchdog@>
To: <sip:watchdog@>;tag=
Call-ID: 2444433068820031524
CSeq: 1563468282 REGISTER
WWW-Authenticate: Digest realm="", nonce=""
Content-Length: 0
Response Register
REGISTER SIP/2.0
Via: SIP/2.0/udp :38111
From: <sip:watchdog@>
To: <sip:watchdog@>
Contact: <sip:watchdog@:38111>;events="message-summary"
Call-ID: 2444433068820031524
CSeq: 1563468282 REGISTER
Expires: 60
User-Agent:
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SU BSCRIBE
Authorization: Digest username="watchdog", realm="", algorithm=md5, uri="", nonce="", response=""
Content-Length: 0
Login response
SIP/2.0 200 OK
Via: SIP/2.0/udp xx.xxx.xx:38111;rport=38111;received=xx.xx.xxx
From: <sip:watchdog@>
To: <sip:watchdog@>;tag=
Call-ID: 2444433068820031524
CSeq: 1563468282 REGISTER
Date: Thu, 18 Jul 2019 16:44:42 GMT
Contact: <sip:[email protected]:38111>;q=0.1;expires=60;re ceived="sip:xx.xx.xxx:38111;dstip=10.11.3.24;dstpo rt=6250"
Content-Length: 0
return status
200 OK
success True
SER is active
******Something went wrong with this SER]
This is all the response that we get from script, Is there any way in Zabbix we can filter the output and get only some data like
return status
200 OK
success True
SER is active
I tried placing the script using UserParameter and ran it, but it results whole bunch of output, which I don't want, so asking if there any other way.
I really appreciate your help.
I really need help. I am new to Zabbix. Today I got the requirement that we have one python script and the script results large amount of data, But to send it Zabbix we need only few results from the script to send it to Zabbix. is there any way. Here is my python script output
Response
SIP/2.0 401 Unauthorized
Via: SIP/2.0/udp :38111;rport=38111;received=
From: <sip:watchdog@>
To: <sip:watchdog@>;tag=
Call-ID: 2444433068820031524
CSeq: 1563468282 REGISTER
WWW-Authenticate: Digest realm="", nonce=""
Content-Length: 0
Response Register
REGISTER SIP/2.0
Via: SIP/2.0/udp :38111
From: <sip:watchdog@>
To: <sip:watchdog@>
Contact: <sip:watchdog@:38111>;events="message-summary"
Call-ID: 2444433068820031524
CSeq: 1563468282 REGISTER
Expires: 60
User-Agent:
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SU BSCRIBE
Authorization: Digest username="watchdog", realm="", algorithm=md5, uri="", nonce="", response=""
Content-Length: 0
Login response
SIP/2.0 200 OK
Via: SIP/2.0/udp xx.xxx.xx:38111;rport=38111;received=xx.xx.xxx
From: <sip:watchdog@>
To: <sip:watchdog@>;tag=
Call-ID: 2444433068820031524
CSeq: 1563468282 REGISTER
Date: Thu, 18 Jul 2019 16:44:42 GMT
Contact: <sip:[email protected]:38111>;q=0.1;expires=60;re ceived="sip:xx.xx.xxx:38111;dstip=10.11.3.24;dstpo rt=6250"
Content-Length: 0
return status
200 OK
success True
SER is active
******Something went wrong with this SER]
This is all the response that we get from script, Is there any way in Zabbix we can filter the output and get only some data like
return status
200 OK
success True
SER is active
I tried placing the script using UserParameter and ran it, but it results whole bunch of output, which I don't want, so asking if there any other way.
I really appreciate your help.
Comment