PHP code example of konnectit / laravel-nagios-nrdp

1. Go to this page and download the library: Download konnectit/laravel-nagios-nrdp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

konnectit / laravel-nagios-nrdp example snippets


use KonnectIT\LaravelNagiosNrdp\HostStates;

\NagiosNrdp::state(HostStates::HOST_OK)->send('OK');

use KonnectIT\LaravelNagiosNrdp\ServiceStates;

\NagiosNrdp::service('PHP extensions')->state(ServiceStates::SERVICE_OK)->send('All services OK');