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

Nick Hilliard (INEX) nick at inex.ie
Wed Oct 21 17:03:57 IST 2020


yay!  Yeah, nagios integration is troublesome because Nagios 
configuration syntax is messy.  Great that it's working now.

Nick

Basil Elbalaawi wrote on 21/10/2020 16:59:
> Solved!!!!
> 
> In the past : check_command           
> check_birdseye_bgp_session!$_SERVICEAPIURL!$_SERVICEPROTOCOL
> 
> Now : check_command           
> check_birdseye_bgp_session!$_SERVICEAPI_URL!$_SERVICEPROTOCOL
> 
> https://imgur.com/a/oJkAQoM
> 
> Thanks
> 
> On Wed, Oct 21, 2020 at 2:19 PM Basil Elbalaawi 
> <saifbasilyazan at gmail.com <mailto:saifbasilyazan at gmail.com>> wrote:
> 
> 
> 
>     root at nagios:/usr/local/nagios-plugins-other# dpkg -l | grep php
>     ii  libapache2-mod-php                   2:7.4+75                  
>             all          server-side, HTML-embedded scripting language
>     (Apache 2 module) (default)
>     ii  libapache2-mod-php7.4                7.4.3-4ubuntu2.4          
>             amd64        server-side, HTML-embedded scripting language
>     (Apache 2 module)
>     ii  php                                  2:7.4+75                  
>             all          server-side, HTML-embedded scripting language
>     (default)
>     ii  php-common                           2:75                      
>             all          Common files for PHP packages
>     ii  php-curl                             2:7.4+75                  
>             all          CURL module for PHP [default]
>     ii  php7.4                               7.4.3-4ubuntu2.4          
>             all          server-side, HTML-embedded scripting language
>     (metapackage)
>     ii  php7.4-cli                           7.4.3-4ubuntu2.4          
>             amd64        command-line interpreter for the PHP scripting
>     language
>     ii  php7.4-common                        7.4.3-4ubuntu2.4          
>             amd64        documentation, examples and common module for PHP
>     ii  php7.4-curl                          7.4.3-4ubuntu2.4          
>             amd64        CURL module for PHP
>     ii  php7.4-json                          7.4.3-4ubuntu2.4          
>             amd64        JSON module for PHP
>     ii  php7.4-opcache                       7.4.3-4ubuntu2.4          
>             amd64        Zend OpCache module for PHP
>     ii  php7.4-readline                      7.4.3-4ubuntu2.4          
>             amd64        readline module for PHP
>     root at nagios:/usr/local/nagios-plugins-other#
> 
>     On Tue, Oct 20, 2020 at 11:13 PM Nick Hilliard <nick at foobar.org
>     <mailto:nick at foobar.org>> wrote:
> 
>         Basil Elbalaawi wrote on 20/10/2020 19:15:
>          > root at nagios:/usr/local/nagios-plugins-other#
>          > ./nagios-check-birdseye-bgp-sessions.php -a
>          > http://rs1-lan1-ipv4.ps-ix.ps/api -p pb_0002_as20719
>          > OK:
>          >
>          > you can see the Nagios output :
>          >
>          > https://imgur.com/a/bXnHqnc
> 
>         The "UNKNOWN: You must set a valid API host" error is generated
>         when
>         curl_init() fails.
> 
>         This seems to work from the command line, but not when the
>         script is
>         called from nagios, which is strange.
> 
>         Do you have multiple instances of PHP installed on this server? 
>         What is
>         the output of "dpkg -l | grep php"?
> 
>         Nick
> 
> 
> 
> _______________________________________________
> INEX IXP Manager mailing list
> ixpmanager at inex.ie
> Unsubscribe or change options here: https://www.inex.ie/mailman/listinfo/ixpmanager
> 


More information about the ixpmanager mailing list