RAID check


I have configured this service

define service{
        use                             local-service         ; Name of service template to use
        host_name                       localhost
        service_description             Current RAID Status
        check_command                   check_raid

and under /usr/lib/nagios/plugins/ I have but I receive this error Return code of 127 is out of bounds - plugin may be missing.
The file have same permission like a script check_load which I use correctly.
Do you have idea to resolve? Thank you


whats the command definiton for check_raid? can you run the plugin from command line? as user root AND as user nagios?


I’ve resolved with

Command it’s this

define command{
        command_name check_raid
        command_line $USER1$/check_raid $ARG1$

If I use this command not work

define command{
        command_name check_raid
        command_line $USER1$/ $ARG1$

I do not understand why… permission on file are correctly…