Search code examples
httpnagiosnrpe

nagios - nrpe - check_http - works from command prompt but fails on nrpe


I was trying nagios.

following command works well when I execute from the console.

./check_http -I 10.0.0.76 -p 8080  --url="/MYServiceBus/" --post="<My Message xml>" --eregi=.Status_Code.0./Status_Code. -c 7 -w 5 -v

So I went ahead and added in nrpe.cfg

But then it started giving error in /var/log/messages

Unknown option specified in config file '/usr/local/nagios/etc/nrpe.cfg' - Line 246

Interesting part is that the actual command is at line 245. And in fact there is another check_http commands in the same config file which are working fine.

Am I missing anything but obvious.

Thanks in advance.

regards, Mohan


Solution

  • OK, got the issue. the request lenght was too much for the NRPE, reduced it and it worked after that.