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

Basil Elbalaawi saifbasilyazan at gmail.com
Wed Oct 21 16:59:20 IST 2020


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>
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> 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
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20201021/334e0feb/attachment.htm>


More information about the ixpmanager mailing list