Plugin working mismatch

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
junkertf
Posts: 119
Joined: Tue Aug 08, 2017 1:52 am

Plugin working mismatch

Post by junkertf »

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
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: Plugin working mismatch

Post by optionstechnology »

If you want to do multi-line outputs you must return <BR> from the script and turn on "Allow HTML Tags in Host/Service Status" in the system settings
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Plugin working mismatch

Post by mbellerue »

Thanks for jumping in, optionstechnology!

junkertf, were you able to find the Allow HTML Tags in Host/Service Status setting? Did it resolve your issue?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
junkertf
Posts: 119
Joined: Tue Aug 08, 2017 1:52 am

Re: Plugin working mismatch

Post by junkertf »

Hello All!

Thank you for everyone for the help, the issue is solved!

Bet regards,

Ferenc
Locked