On Wed, Apr 21, 2021 at 3:10 PM Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:
Yep, I believe monitoring systems are in Nagios compatible family (most of them), or in Zabbix clan.


From these pages: 
https://www.zabbix.com/documentation/current/manual/appendix/command_execution 
https://www.zabbix.com/documentation/current/manual/config/items/itemtypes/external#external_check_result 

I would infer that sipnagios is already Zabbix compatible, right now.

However, Zabbix seems not to gather historical performance data from external checks.
Anyway, Zabbix will DO show the output of sipnagios in GUI, so at least you'll see the latest performance point (eg you will see in GUI all the performance values of the last call).

-giovanni


 
From a quick check seems in Zabbix sipnagios would be an entity called "external check", and it seems Zabbix does not gather multiple performance data, just one value.

But I will check it better.

Btw, sipnagios can be used also as a standalone tool to originate a call and gather it's results, like sipsak for OPTIONS et al.

-giovanni

answered from mobile, please pardon terseness and typos,
-giovanni

On Wed, Apr 21, 2021, 15:04 Daniel-Constantin Mierla <miconda@gmail.com> wrote:

Personally I do not need such feature (e.g., Zabbix), I was more curious if there is sort of common plugin API between some of the monitoring systems (like seems to be now for web browsers) -- if I am not wrong, some of these monitoring systems have common roots.

Cheers,
Daniel

On 21.04.21 14:56, Giovanni Maruzzelli wrote:
No idea about Zabbix api, at the moment, maybe is the same as the Nagios one.

If not, it will be easy to implement, just by changing exit status and the way perf data are printed (if Zabbix supports perf data).

I'll add this to the TODO.

Thanks Daniel!

-giovanni


answered from mobile, please pardon terseness and typos,
-giovanni

On Wed, Apr 21, 2021, 14:51 Daniel-Constantin Mierla <miconda@gmail.com> wrote:
Hello,

On 21.04.21 11:42, Giovanni Maruzzelli wrote:
> Hello fellow VoIPers and RTCers,
>
> on GitHub there is an early release of sipnagios, opensource.
>
> check it out: https://github.com/gmaruzz/sipnagios
> <https://github.com/gmaruzz/sipnagios>
>
> sipnagios is a Nagios Plugin to check Call Quality in SIP VoIP
> (compatible with checkmk, etc)
>
> sipnagios implements the Nagios plugin API for monitoring and
> performance data.sipnagios.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.It 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.If the call has gone well, sipnagios print performance
> data for Nagios graphs, and returns 0.If the call fails, or if its
> measured values are not inside acceptable ranges, it exits with Nagios
> conventional WARNING or CRITICAL values.
>
> mos calculation is scraped from Julien Chavanton work (VoIP Patrol, on
> GitHub too) I can't even understand :) (merci Julien!)

thanks for letting everyone here know about this tool!

Do you know if other monitoring platforms (e.g., Zabbix) have the same
plugin API and can be used with? Or it is for Nagios only?

Cheers,
Daniel

--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
May 17-20, 2021 (Europe Timezone) - June 7-10, 2021 (America Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
May 17-20, 2021 (Europe Timezone) - June 7-10, 2021 (America Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/


--
Sincerely,

Giovanni Maruzzelli
OpenTelecom.IT
cell: +39 347 266 56 18