{"id":18882429,"url":"https://github.com/gmaruzz/sipnagios","last_synced_at":"2026-02-25T00:34:30.102Z","repository":{"id":201856139,"uuid":"360096591","full_name":"gmaruzz/sipnagios","owner":"gmaruzz","description":"Nagios Plugin to check Call Quality in SIP VoIP (compatible checkmk, etc)","archived":false,"fork":false,"pushed_at":"2021-04-21T15:15:56.000Z","size":59,"stargazers_count":31,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-09T17:43:07.193Z","etag":null,"topics":["asterisk","checkmk","freeswitch","homer","icinga","jitter","kamailio","mos","nagios","omd","opensips","pdd","plugin","rtcp","rtt","shinken","sip","tta","voip","zabbix"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gmaruzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-04-21T08:49:55.000Z","updated_at":"2024-08-29T11:26:40.000Z","dependencies_parsed_at":"2024-03-04T13:30:55.013Z","dependency_job_id":null,"html_url":"https://github.com/gmaruzz/sipnagios","commit_stats":null,"previous_names":["gmaruzz/sipnagios"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gmaruzz/sipnagios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmaruzz%2Fsipnagios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmaruzz%2Fsipnagios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmaruzz%2Fsipnagios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmaruzz%2Fsipnagios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmaruzz","download_url":"https://codeload.github.com/gmaruzz/sipnagios/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmaruzz%2Fsipnagios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29806575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T22:43:48.403Z","status":"ssl_error","status_checked_at":"2026-02-24T22:43:18.536Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asterisk","checkmk","freeswitch","homer","icinga","jitter","kamailio","mos","nagios","omd","opensips","pdd","plugin","rtcp","rtt","shinken","sip","tta","voip","zabbix"],"created_at":"2024-11-08T06:58:20.625Z","updated_at":"2026-02-25T00:34:30.065Z","avatar_url":"https://github.com/gmaruzz.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sipnagios\nNagios Plugin to check Call Quality in SIP VoIP (compatible with check_mk, Zabbix, etc)\n\nsipnagios implements the Nagios plugin API for monitoring and performance data.\n\nsipnagios.c is a modification of the original siprtp.c sample in pjproject distribution. Supposedly, it works on Linux, Windows, and anywhere you can compile pjproject on.\n\nIt makes a call, checks all the various resulting values (mos, rtt, pdd, tta, jitter, packet loss, bytes and packets transferred, and so on). It verifies these values are included into acceptable, warning, or critical ranges.\n\nIf the call has gone well, sipnagios print performance data for Nagios graphs, and returns 0.\n\nIf the call fails, or if its measured values are not inside acceptable ranges, it exits with Nagios conventional WARNING or CRITICAL values.\n\nZabbix seems not able to gather historical performances data from external checks, but will show last call values in GUI\n\n# USAGE:\n\u003cpre\u003e\n sipnagios [options] SIPURL\n\n Call options:\n   --duration=SEC,   -d    Set maximum call duration in seconds (default:40)\n\n Address and ports options:\n   --local-port=PORT,-p    Set local SIP port (default: 5060)\n   --rtp-port=PORT,  -r    Set start of RTP port (default: 4000)\n   --ip-addr=IP,     -i    Set local IP address to use (otherwise it will\n                           try to determine local IP address from hostname)\n\n Local user options:\n   --local-user=USER,       -u    Set local SIP user (default: alice)\n   --local-password=PASSWD, -w    Set local SIP user password (default: 1234)\n   --local-siprealm=REALM,  -s    Set local SIP user SIP realm (default: atlanta.example.com)\n\n Logging Options:\n   --log-level=N,    -l    Set log verbosity level (default=1)\n   --app-log-level=N       Set app log verbosity (default=1)\n   --log-file=FILE         Write log to file FILE\n\nNAGIOS RANGES OPTIONS DEFAULTS:\n\n-c --rxmosWARN = 4.0\n-g --txmosWARN = 4.0\n-t --rxmosCRIT = 3.6\n-m --txmosCRIT = 3.6\n\n-A --durationmsWARN = 40000\n-B --pddmsWARN = 8000\n-C --ttamsWARN = 11000\n-D --rxpktsWARN = 1000\n-E --rxbytesWARN = 150000\n-F --rxlosspctWARN = 1.5\n-G --rxduppctWARN =  1.5\n-H --rxreorderpctWARN =1.5\n-I --rxjitavgWARN =   15.1\n-L --txpktsWARN =  1000\n-M --txbytesWARN = 150000\n-N --txlosspctWARN = 1.5\n-O --txduppctWARN =  1.5\n-P --txreorderpctWARN =1.5\n-Q --txjitavgWARN =  15.1\n-R --rttmeanWARN =   150.1\n\n-S --durationmsCRIT = 20000\n-T --pddmsCRIT = 16000\n-U --ttamsCRIT = 20000\n-V --rxpktsCRIT = 500\n-Z --rxbytesCRIT = 75000\n-K --rxlosspctCRIT = 3.0\n-J --rxduppctCRIT =  3.0\n-X --rxreorderpctCRIT =3.0\n-Y --rxjitavgCRIT =   30.1\n-v --txpktsCRIT =  500\n-z --txbytesCRIT = 75000\n-k --txlosspctCRIT = 3.0\n-j --txduppctCRIT =  3.0\n-x --txreorderpctCRIT =3.0\n-y --txjitavgCRIT =  30.1\n-b --rttmeanCRIT =   300.1\n\n==\u003e rx and tx mos, durationms, rx and tx pkts and bytes becomes WARNING and CRITICAL if they're measured as LOWER than threshold\n==\u003e all other values becomes not OK if they are measured as HIGHER than threshold\n\nEg:\nsipnagios --rtp-port=4000 --local-port=8090 --ip-addr=188.166.74.47 --local-user=9599 --local-siprealm=acme.cloudpbx.opentelecom.it --local-password=cAcyAgaC46AKuRk sip:0749941093@acme.cloudpbx.opentelecom.it:5030\n(sipnagios is brought to you by Giovanni Maruzzelli. Enjoy!)\n\u003c/pre\u003e\n\n#  HOW TO COMPILE SIPNAGIOS on DEBIAN:\n(NB: To compile on Windows you'll need to come out with some other way to generate\na uuid for the Call-ID. In Linux, uuid_generate/uuid_unparse_lower are used. Patch welcome!)\n\n\u003cpre\u003e\napt install python-dev gcc make gcc binutils build-essential git wget unzip uuid-dev\n\ncd /usr/src\ngit clone https://github.com/gmaruzz/sipnagios.git\n\nwget https://github.com/pjsip/pjproject/archive/refs/tags/2.11.zip\nunzip 2.11.zip\ncd pjproject-2.11/\n./configure\nCFLAGS=\"$CFLAGS -fPIC -DPJ_LOG_MAX_LEVEL=3\" make dep\n\ncp ../sipnagios/sipnagios.c pjsip-apps/src/samples/\ncp ../sipnagios/Samples.mak pjsip-apps/build/\n\nCFLAGS=\"$CFLAGS -fPIC -DPJ_LOG_MAX_LEVEL=3\" make \n./pjsip-apps/bin/samples/x86_64-unknown-linux-gnu/sipnagios --help\n\u003c/pre\u003e\n\n# Install in CheckMk\n\u003cpre\u003e\ncp sipnagios /omd/sites/YOURSITENAME/local/lib/nagios/plugins/\nchmod +x /omd/sites/YOURSITENAME/local/lib/nagios/plugins/sipnagios\n\u003c/pre\u003e\n\nWATO -\u003e Host \u0026 Service Parameters -\u003e Active Checks (HTTP, TCP, etc)\n\n# TODO\n- Enhance Zabbix compatibility (if possible/needed)\n- Let's use pjproject media interface for streaming an audio file and recording into a file, so we'll reuse all RTCP pjsip's goodies\n\n# CREDITS\nmos calculation is scraped from Julien Chavanton work (VoIP Patrol, on GitHub too) I can't even understand :) (merci Julien!)\nhttps://github.com/jchavanton/voip_patrol/\n\npjproject: https://github.com/pjsip/pjproject\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmaruzz%2Fsipnagios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmaruzz%2Fsipnagios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmaruzz%2Fsipnagios/lists"}