Plugin working mismatch
Posted: Mon Sep 30, 2019 4:24 am
Hello,
I have try to use a plugin downloaded from exchange.nagios.org and modified a bit to have multiline output.
If i run the command from the OS cli it is running well.
[nagios@nagioshost ~]$ /usr/local/nagios/libexec/check_nrpe -H monitoredhost -t 90 -c check_diskawt -a '-w 8 -c 23'
WARNING - sdd await (ms): 12.40; | 'sdd tps'=75.00; 'sdd KB_read/s'=736.00; 'sdd KB_written/s'=18.00; 'sdd await'=12.40;
WARNING - sde await (ms): 10.73;
OK - sdb await (ms): 4.29;
OK - sda await (ms): 0.17;
OK - sdg await (ms): 0.00;
OK - sdf await (ms): 0.00;
OK - sdc await (ms): 0.00; | 'sde tps'=26.00; 'sde KB_read/s'=252.00; 'sde KB_written/s'=0.00; 'sde await'=10.73; 'sdb tps'=3.00; 'sdb KB_read/s'=1.00; 'sdb KB_written/s'=0.50; 'sdb await'=4.29; 'sda tps'=20.00; 'sda KB_read/s'=0.00; 'sda KB_written/s'=366.00; 'sda await'=0.17; 'sdg tps'=0.00; 'sdg KB_read/s'=0.00; 'sdg KB_written/s'=0.00; 'sdg await'=0.00; 'sdf tps'=0.00; 'sdf KB_read/s'=0.00; 'sdf KB_written/s'=0.00; 'sdf await'=0.00; 'sdc tps'=0.00; 'sdc KB_read/s'=0.00; 'sdc KB_written/s'=0.00; 'sdc await'=0.00;
I had make the neccessary Service for it, and tested the run from the NagiosXI service Run Test command, but i not become any significant result.
Thank you, best regards,
Ferenc
I have try to use a plugin downloaded from exchange.nagios.org and modified a bit to have multiline output.
If i run the command from the OS cli it is running well.
[nagios@nagioshost ~]$ /usr/local/nagios/libexec/check_nrpe -H monitoredhost -t 90 -c check_diskawt -a '-w 8 -c 23'
WARNING - sdd await (ms): 12.40; | 'sdd tps'=75.00; 'sdd KB_read/s'=736.00; 'sdd KB_written/s'=18.00; 'sdd await'=12.40;
WARNING - sde await (ms): 10.73;
OK - sdb await (ms): 4.29;
OK - sda await (ms): 0.17;
OK - sdg await (ms): 0.00;
OK - sdf await (ms): 0.00;
OK - sdc await (ms): 0.00; | 'sde tps'=26.00; 'sde KB_read/s'=252.00; 'sde KB_written/s'=0.00; 'sde await'=10.73; 'sdb tps'=3.00; 'sdb KB_read/s'=1.00; 'sdb KB_written/s'=0.50; 'sdb await'=4.29; 'sda tps'=20.00; 'sda KB_read/s'=0.00; 'sda KB_written/s'=366.00; 'sda await'=0.17; 'sdg tps'=0.00; 'sdg KB_read/s'=0.00; 'sdg KB_written/s'=0.00; 'sdg await'=0.00; 'sdf tps'=0.00; 'sdf KB_read/s'=0.00; 'sdf KB_written/s'=0.00; 'sdf await'=0.00; 'sdc tps'=0.00; 'sdc KB_read/s'=0.00; 'sdc KB_written/s'=0.00; 'sdc await'=0.00;
I had make the neccessary Service for it, and tested the run from the NagiosXI service Run Test command, but i not become any significant result.
Thank you, best regards,
Ferenc