Monitoring OBS with Zabbix

felipefb

New Member
hello guys,
i have obs for stream my internal TV online, into my infrastructure(producting), i wish monitor the OBS application (for example: monitor the stream ON or OFF, if stop or no etc..)
 

sirmckee

New Member
You'll have to make a userparameter for that. You may be able to use lsof -c obs | grep ESTABLISHED to check for a streaming connection.
 

felipefb

New Member
You'll have to make a userparameter for that. You may be able to use lsof -c obs | grep ESTABLISHED to check for a streaming connection.

Thanks bro, but im use this:
serveroot: lsof -c icecast | cut -d " " -f24 | grep ESTABLISHED | tail -n1
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
(ESTABLISHED)

and can you see, is too big the output for zabbix understand, there is possibility of output being just the word ESTABLISHED? without warning
 

sirmckee

New Member
I'd suggest using a numerical count instead, then setup Zabbix to alert if the count is 0. This should clean up the output:

lsof -c icecast 2>/dev/null | grep -c ESTABLISHED
 
Top