<div dir="ltr">now can send the output from our side :<div><br></div><div>root@nagios:/usr/local/nagios-plugins-other# .<b>/nagios-check-birdseye.php -a <a href="http://rs1-lan1-ipv4.ps-ix.ps/api">http://rs1-lan1-ipv4.ps-ix.ps/api</a></b><br>PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in /usr/local/nagios-plugins-other/nagios-check-birdseye.php:73<br>Stack trace:<br>#0 {main}<br>  thrown in /usr/local/nagios-plugins-other/nagios-check-birdseye.php on line 73<br><br>Fatal error: Uncaught Error: Call to undefined function curl_init() in /usr/local/nagios-plugins-other/nagios-check-birdseye.php:73<br>Stack trace:<br>#0 {main}<br>  thrown in /usr/local/nagios-plugins-other/nagios-check-birdseye.php on line 73<br>root@nagios:/usr/local/nagios-plugins-other#<br></div><div><br></div><div>I attached <span style="background-color:initial;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:13.6px;color:rgb(36,41,46)">nagios-check-birdseye.php and </span><span style="background-color:initial;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:13.6px;color:rgb(36,41,46)">nagios-check-birdseye-bgp-sessions.php</span></div><div><br></div><div>as you can see the output from http access :</div><div><br></div><div><a href="https://imgur.com/a/H0MUWMG">https://imgur.com/a/H0MUWMG</a><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 19, 2020 at 12:42 AM Dominik Bay <<a href="mailto:db@rrbone.net">db@rrbone.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Basil,<br>
<br>
I'm not using the Nagios integration myself, but you can try and run the<br>
script which is mentioned after the (No output on stdout) part.<br>
So try to run<br>
/usr/lib/nagios/plugins/nagios-check-birdseye-bgp-sessions.php ...<br>
manually on the shell.<br>
<br>
As you can see here it needs the API URL as parameter:<br>
<a href="https://docs.ixpmanager.org/features/nagios/#service-checking_2" rel="noreferrer" target="_blank">https://docs.ixpmanager.org/features/nagios/#service-checking_2</a><br>
You should then see what the error is.<br>
<br>
Here's the script for further reading:<br>
<a href="https://github.com/inex/birdseye/blob/master/bin/nagios-check-birdseye-bgp-sessions.php" rel="noreferrer" target="_blank">https://github.com/inex/birdseye/blob/master/bin/nagios-check-birdseye-bgp-sessions.php</a><br>
<br>
Cheers,<br>
Dominik<br>
<br>
On 10/18/20 11:19 PM, Basil Elbalaawi wrote:<br>
> Hi Supporter<br>
> <br>
> Thanks for your efforts and your respect<br>
> i am using script especially for INEX to configure the nagios to monitor<br>
> IXP full stack , for run <br>
>  <br>
> <br>
> 1. ixp-manager-check-switch.sh*<br>
> <br>
> 2. nagios-global-vars.sh*<br>
> <br>
> 3. update-nagios-birdseye-daemons.sh*<br>
> <br>
> 4. update-nagios-birdseye-sessions.sh*<br>
> <br>
> 5. update-nagios-customers.sh*<br>
> <br>
> 6. update-nagios-switches.sh*<br>
> <br>
> ###################<br>
> <br>
> root@nagios:/usr/local/nagios/etc/servers# ll<br>
> total 364<br>
> drwxr-xr-x 2 root   root     4096 Oct  8 11:29 ./<br>
> drwxrwxr-x 4 nagios nagios   4096 Oct  8 11:08 ../<br>
> -rw-r--r-- 1 root   root     5317 Oct  7 16:58 1<br>
> -rw-r--r-- 1 root   root     3252 Oct  8 11:38 birdseye-daemon-vlan1.cfg<br>
> -rw-r--r-- 1 root   root     5318 Oct  7 16:59<br>
> birdseye-sessions-vlan1-type-1-IPv4.cfg<br>
> -rw-r--r-- 1 root   root     7876 Oct  7 15:21 customers-vlan1-ipv4.cfg<br>
> -rw-r--r-- 1 root   root   173703 Oct  7 16:42<br>
> nagios-check-birdseye-bgp-sessions.php<br>
> -rw-r--r-- 1 root   root   154848 Oct  7 16:42 nagios-check-birdseye.php<br>
> -rw-r--r-- 1 root   root     3717 Oct  7 16:48 switches-infraid-1.cfg<br>
> <br>
> #############################<br>
>  <br>
> <br>
> root@nagios:~# /usr/local/nagios/bin/nagios -v<br>
> /usr/local/nagios/etc/nagios.cfg<br>
> <br>
>  <br>
> <br>
> Nagios Core 4.4.6<br>
> <br>
> Copyright (c) 2009-present Nagios Core Development Team and Community<br>
> Contributors<br>
> <br>
> Copyright (c) 1999-2009 Ethan Galstad<br>
> <br>
> Last Modified: 2020-04-28<br>
> <br>
> License: GPL<br>
> <br>
>  <br>
> <br>
> Website: <a href="https://www.nagios.org" rel="noreferrer" target="_blank">https://www.nagios.org</a> <<a href="https://www.nagios.org/" rel="noreferrer" target="_blank">https://www.nagios.org/</a>><br>
> <br>
> Reading configuration data...<br>
> <br>
>    Read main config file okay...<br>
> <br>
>    Read object config files okay...<br>
> <br>
>  <br>
> <br>
> Running pre-flight check on configuration data...<br>
> <br>
>  <br>
> <br>
> Checking objects...<br>
> <br>
>         Checked 16 services.<br>
> <br>
>         Checked 7 hosts.<br>
> <br>
>         Checked 12 host groups.<br>
> <br>
>         Checked 0 service groups.<br>
> <br>
>         Checked 1 contacts.<br>
> <br>
>         Checked 1 contact groups.<br>
> <br>
>         Checked 27 commands.<br>
> <br>
>         Checked 5 time periods.<br>
> <br>
>         Checked 0 host escalations.<br>
> <br>
>         Checked 0 service escalations.<br>
> <br>
> Checking for circular paths...<br>
> <br>
>         Checked 7 hosts<br>
> <br>
>         Checked 0 service dependencies<br>
> <br>
>         Checked 0 host dependencies<br>
> <br>
>         Checked 5 timeperiods<br>
> <br>
> Checking global event handlers...<br>
> <br>
> Checking obsessive compulsive processor commands...<br>
> <br>
> Checking misc settings...<br>
> <br>
>  <br>
> <br>
> Total Warnings: 0<br>
> <br>
> Total Errors:   0<br>
> <br>
>  <br>
> <br>
> Things look okay - No serious problems were detected during the<br>
> pre-flight check<br>
> <br>
> But the output of nagios is not a suitable correct output . You can see<br>
> the output from this link <br>
> <br>
>  <br>
> <br>
> *_<a href="https://imgur.com/a/ZhaIdfD" rel="noreferrer" target="_blank">https://imgur.com/a/ZhaIdfD</a> <<a href="https://imgur.com/a/ZhaIdfD" rel="noreferrer" target="_blank">https://imgur.com/a/ZhaIdfD</a>>_*<br>
> <br>
> _*<a href="https://imgur.com/a/ZhaIdfD" rel="noreferrer" target="_blank">https://imgur.com/a/ZhaIdfD</a> <<a href="https://imgur.com/a/ZhaIdfD" rel="noreferrer" target="_blank">https://imgur.com/a/ZhaIdfD</a>>*_<br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> INEX IXP Manager mailing list<br>
> <a href="mailto:ixpmanager@inex.ie" target="_blank">ixpmanager@inex.ie</a><br>
> Unsubscribe or change options here: <a href="https://www.inex.ie/mailman/listinfo/ixpmanager" rel="noreferrer" target="_blank">https://www.inex.ie/mailman/listinfo/ixpmanager</a><br>
> <br>
<br>
<br>
-- <br>
rrbone GmbH - Ruhrallee 9 - 44139 Dortmund<br>
HR B 23168 Amtsgericht Dortmund - Geschaeftsfuehrer: Dominik Bay<br>
_______________________________________________<br>
INEX IXP Manager mailing list<br>
<a href="mailto:ixpmanager@inex.ie" target="_blank">ixpmanager@inex.ie</a><br>
Unsubscribe or change options here: <a href="https://www.inex.ie/mailman/listinfo/ixpmanager" rel="noreferrer" target="_blank">https://www.inex.ie/mailman/listinfo/ixpmanager</a><br>
</blockquote></div>