PHPackages                             devophp/nagios - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. devophp/nagios

ActiveProject[Utility &amp; Helpers](/categories/utility)

devophp/nagios
==============

Execute nagios checks and parse the output with PHP classes

112PHP

Since Jun 10Pushed 12y ago1 watchersCompare

[ Source](https://github.com/devophp/nagios)[ Packagist](https://packagist.org/packages/devophp/nagios)[ RSS](/packages/devophp-nagios/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Nagios check component
======================

[](#nagios-check-component)

This library lets you run Nagios checks and parse the output from your PHP application.

Example:
--------

[](#example)

```
$nagioschecker = new \Devophp\Component\Nagios\Checker();
$nagioschecker->autoDetectPluginPath();

$response = $nagioschecker->check('users', '-w 3 -c 5');

echo "Statuscode: " . $response->getStatusCode() . ' (' . $response->getStatusText() . ')' . "\n";
echo "ServiceOutput: " . $response->getServiceOutput() . "\n";
echo "ServicePerfData: " . $response->getServicePerfData() . "\n";
```

Included console tool
---------------------

[](#included-console-tool)

This library comes with a simple command line tool that you can use to run tests through this library.

Some example commands:

```
bin/console nagios:check users --arguments="-w 3 -c 5"

```

This will output:

```
Running check 'users' with arguments: '-w 3 -c 5'
Pluginpath: /usr/local/Cellar/nagios-plugins/2.0/sbin/
Statuscode: 0 (OK)
ServiceOutput: USERS OK - 2 users currently logged in
ServicePerfData: users=2;3;5;0

```

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db66b320db18b8036ea68211b7d8a39e7c6da97e6fd29f59a50380ebb69d0bb?d=identicon)[joostfaassen](/maintainers/joostfaassen)

---

Top Contributors

[![joostfaassen](https://avatars.githubusercontent.com/u/411113?v=4)](https://github.com/joostfaassen "joostfaassen (3 commits)")

### Embed Badge

![Health badge](/badges/devophp-nagios/health.svg)

```
[![Health](https://phpackages.com/badges/devophp-nagios/health.svg)](https://phpackages.com/packages/devophp-nagios)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
