check_as400
check_as400 copied to clipboard
Out of Bounds
Good morning at all.
Testing via shell (Centos 7 Box with nagios via RPM), for example for SBS check I obtain
[root@nagiosbox plugins]# ./check_as400/check_as400 -H AS400 -u NAGIOS -p NAGIOS -v SBS QINTER OK - subsystem(QINTER) status(ATTIVO)
Testing on nagios I obtain that result
or
Any idea? P.S. same for other checks.
maybe too late but looks like permission issue to me.
Check that your folder /path/to/check_as400/ is own by nagios user and group (or other user you may used for running nagios service), must look like something like that:
$ ls -las /usr/local/nagios/libexec/{check_as400*,.as400} 4 -rw-r--r-- 1 nagios nagios 28 31 mars 16:42 /usr/local/nagios/libexec/.as400 4 -rwxr-xr-x 1 nagios nagios 285 3 août 15:18 /usr/local/nagios/libexec/check_as400 40 -rwxrwxr-x 1 nagios nagios 39794 26 avril 12:25 /usr/local/nagios/libexec/check_as400.class 4 -rwxrwxr-x 1 nagios nagios 900 26 avril 12:25 /usr/local/nagios/libexec/check_as400_cmd_vars.class 4 -rwxrwxr-x 1 nagios nagios 1625 26 avril 12:25 /usr/local/nagios/libexec/check_as400_lang.class
if not just do
$ sudo chown -R nagios:nagios /path/to/check_as400/
Yes, is a little late ;) but I can check! I still need a good plugin for AS400. I'll check asap. Thank you.
I give a try but also giving permission the error reamin :(
Try this first su - nagios ./check_as400/check_as400 -H AS400 -u NAGIOS -p NAGIOS -v SBS QINTER
The test via command line works.. in nagios return Error occurred during initialization of VM