Nsclient check_network can't set warning and critical



I’m trying to monitor network trafic, but currently the check still return critical status. This is because default warning and critical level are too low.

I tried the following :

/usr/lib/nagios/plugins/check_centreon_nrpe3 -H server -c check_network -a “warning=total>20000000000” “critical=total>30000000000”

But this fail with

Exception processing request: Request command contained illegal metachars!

Any idea on what I do wrong here ?


“>” means “redirect to file” and is disallowed in arguments by default to prevent bad things happening.

Try replacing it with “gt” instead — you can see the operators here: https://docs.nsclient.org/checks/