[ixpmanager] Nagios Not running With Bgp session!!!!!

Basil Elbalaawi saifbasilyazan at gmail.com
Mon Oct 19 16:47:49 IST 2020


now can send the output from our side :

root at nagios:/usr/local/nagios-plugins-other# .*/nagios-check-birdseye.php
-a http://rs1-lan1-ipv4.ps-ix.ps/api <http://rs1-lan1-ipv4.ps-ix.ps/api>*
PHP Fatal error:  Uncaught Error: Call to undefined function curl_init() in
/usr/local/nagios-plugins-other/nagios-check-birdseye.php:73
Stack trace:
#0 {main}
  thrown in /usr/local/nagios-plugins-other/nagios-check-birdseye.php on
line 73

Fatal error: Uncaught Error: Call to undefined function curl_init() in
/usr/local/nagios-plugins-other/nagios-check-birdseye.php:73
Stack trace:
#0 {main}
  thrown in /usr/local/nagios-plugins-other/nagios-check-birdseye.php on
line 73
root at nagios:/usr/local/nagios-plugins-other#

I attached nagios-check-birdseye.php and
nagios-check-birdseye-bgp-sessions.php

as you can see the output from http access :

https://imgur.com/a/H0MUWMG




On Mon, Oct 19, 2020 at 12:42 AM Dominik Bay <db at rrbone.net> wrote:

> Hi Basil,
>
> I'm not using the Nagios integration myself, but you can try and run the
> script which is mentioned after the (No output on stdout) part.
> So try to run
> /usr/lib/nagios/plugins/nagios-check-birdseye-bgp-sessions.php ...
> manually on the shell.
>
> As you can see here it needs the API URL as parameter:
> https://docs.ixpmanager.org/features/nagios/#service-checking_2
> You should then see what the error is.
>
> Here's the script for further reading:
>
> https://github.com/inex/birdseye/blob/master/bin/nagios-check-birdseye-bgp-sessions.php
>
> Cheers,
> Dominik
>
> On 10/18/20 11:19 PM, Basil Elbalaawi wrote:
> > Hi Supporter
> >
> > Thanks for your efforts and your respect
> > i am using script especially for INEX to configure the nagios to monitor
> > IXP full stack , for run
> >
> >
> > 1. ixp-manager-check-switch.sh*
> >
> > 2. nagios-global-vars.sh*
> >
> > 3. update-nagios-birdseye-daemons.sh*
> >
> > 4. update-nagios-birdseye-sessions.sh*
> >
> > 5. update-nagios-customers.sh*
> >
> > 6. update-nagios-switches.sh*
> >
> > ###################
> >
> > root at nagios:/usr/local/nagios/etc/servers# ll
> > total 364
> > drwxr-xr-x 2 root   root     4096 Oct  8 11:29 ./
> > drwxrwxr-x 4 nagios nagios   4096 Oct  8 11:08 ../
> > -rw-r--r-- 1 root   root     5317 Oct  7 16:58 1
> > -rw-r--r-- 1 root   root     3252 Oct  8 11:38 birdseye-daemon-vlan1.cfg
> > -rw-r--r-- 1 root   root     5318 Oct  7 16:59
> > birdseye-sessions-vlan1-type-1-IPv4.cfg
> > -rw-r--r-- 1 root   root     7876 Oct  7 15:21 customers-vlan1-ipv4.cfg
> > -rw-r--r-- 1 root   root   173703 Oct  7 16:42
> > nagios-check-birdseye-bgp-sessions.php
> > -rw-r--r-- 1 root   root   154848 Oct  7 16:42 nagios-check-birdseye.php
> > -rw-r--r-- 1 root   root     3717 Oct  7 16:48 switches-infraid-1.cfg
> >
> > #############################
> >
> >
> > root at nagios:~# /usr/local/nagios/bin/nagios -v
> > /usr/local/nagios/etc/nagios.cfg
> >
> >
> >
> > Nagios Core 4.4.6
> >
> > Copyright (c) 2009-present Nagios Core Development Team and Community
> > Contributors
> >
> > Copyright (c) 1999-2009 Ethan Galstad
> >
> > Last Modified: 2020-04-28
> >
> > License: GPL
> >
> >
> >
> > Website: https://www.nagios.org <https://www.nagios.org/>
> >
> > Reading configuration data...
> >
> >    Read main config file okay...
> >
> >    Read object config files okay...
> >
> >
> >
> > Running pre-flight check on configuration data...
> >
> >
> >
> > Checking objects...
> >
> >         Checked 16 services.
> >
> >         Checked 7 hosts.
> >
> >         Checked 12 host groups.
> >
> >         Checked 0 service groups.
> >
> >         Checked 1 contacts.
> >
> >         Checked 1 contact groups.
> >
> >         Checked 27 commands.
> >
> >         Checked 5 time periods.
> >
> >         Checked 0 host escalations.
> >
> >         Checked 0 service escalations.
> >
> > Checking for circular paths...
> >
> >         Checked 7 hosts
> >
> >         Checked 0 service dependencies
> >
> >         Checked 0 host dependencies
> >
> >         Checked 5 timeperiods
> >
> > Checking global event handlers...
> >
> > Checking obsessive compulsive processor commands...
> >
> > Checking misc settings...
> >
> >
> >
> > Total Warnings: 0
> >
> > Total Errors:   0
> >
> >
> >
> > Things look okay - No serious problems were detected during the
> > pre-flight check
> >
> > But the output of nagios is not a suitable correct output . You can see
> > the output from this link
> >
> >
> >
> > *_https://imgur.com/a/ZhaIdfD <https://imgur.com/a/ZhaIdfD>_*
> >
> > _*https://imgur.com/a/ZhaIdfD <https://imgur.com/a/ZhaIdfD>*_
> >
> >
> >
> > _______________________________________________
> > INEX IXP Manager mailing list
> > ixpmanager at inex.ie
> > Unsubscribe or change options here:
> https://www.inex.ie/mailman/listinfo/ixpmanager
> >
>
>
> --
> rrbone GmbH - Ruhrallee 9 - 44139 Dortmund
> HR B 23168 Amtsgericht Dortmund - Geschaeftsfuehrer: Dominik Bay
> _______________________________________________
> INEX IXP Manager mailing list
> ixpmanager at inex.ie
> Unsubscribe or change options here:
> https://www.inex.ie/mailman/listinfo/ixpmanager
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20201019/d19e785b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-check-birdseye.php
Type: application/octet-stream
Size: 7239 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20201019/d19e785b/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-check-birdseye-bgp-sessions.php
Type: application/octet-stream
Size: 9069 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20201019/d19e785b/attachment-0003.obj>


More information about the ixpmanager mailing list