Nagios services integrated "unknown argument" "invalid option -- 'H'"

Hi,

I have Nagios integrated to my LibreNMS.
It works for simple things like SSH, load and such.

However for things like disk space I get:

Unknown argument
Usage:
check_disk -w limit -c limit [-W limit] [-K limit] {-p path

So commands that require arguments don’t work, check_swap for example doesn’t work either.
I did add parameters: -w 20% -c 10% but that still doesn’t work.

When running check_services.php:

./check-services.php
Starting service polling run:

/usr/local/nagios/libexec/check_disk: invalid option -- 'H'
/usr/local/nagios/libexec/check_swap: invalid option -- 'H'
/usr/local/nagios/libexec/check_users: invalid option -- 'H'

Any fix for this?

LibreNMS is mainly designed to use Nagios plugin that check remote services (like http or ssh). Since the swap, disk and users scripts are all local checks you would need something else to run the scripts on the remote server.

Might be some useful info and ideas for you in this…

1 Like

I’m running it local, for testing.