Return code of 22
Posted: Mon Jun 25, 2018 1:07 pm
I just upgraded to Nagios Version 4.4.0 and I am receiving a lot of errors that I don't underrstand:
my nagios is running on a debian server and I compiled from source.
For the host check:
Warning: Return code of 22 for check of host '<hostname>' was out of bounds.
For the service check:
Warning: Return code of 22 for check of service <servicename>' on host 'hostname' was out of bounds.
I tried to run the check from the command line and it returns no errors and the return code is 0 (not 22).
Also it is not giving the same error on all servers: same check, different server, one returns this RC 22 and the other not (it returns 0 as it should).
I tried to restart Nagios and some of the serviced/hosts stopped failing but new ones failed.
Can anyone tell me what this return code 22 is?
I repeat if I run the same check from the command line with the same parameters from the same Nagios user, it returns error code 0.
I did not have this problem with previous versions of nagios.
Thanks
Massimo
my nagios is running on a debian server and I compiled from source.
For the host check:
Warning: Return code of 22 for check of host '<hostname>' was out of bounds.
For the service check:
Warning: Return code of 22 for check of service <servicename>' on host 'hostname' was out of bounds.
I tried to run the check from the command line and it returns no errors and the return code is 0 (not 22).
Also it is not giving the same error on all servers: same check, different server, one returns this RC 22 and the other not (it returns 0 as it should).
I tried to restart Nagios and some of the serviced/hosts stopped failing but new ones failed.
Can anyone tell me what this return code 22 is?
I repeat if I run the same check from the command line with the same parameters from the same Nagios user, it returns error code 0.
I did not have this problem with previous versions of nagios.
Thanks
Massimo