Page 1 of 1

pnp4nagios graph data swapped after upgrading nsclient 0.5.2

Posted: Fri Nov 02, 2018 9:03 am
by rohithroki
Hi Team,

Recently we upgraded the nsclient from version 0.3.9 to 0.5.2 on all the windows servers.

we do have physical memory service monitoring via nrpe plugin.

In Nsclient 0.3.9

The physical memory monitor and the Nagios output follows.

Code: Select all

[root@XXX libexec]# ./check_nrpe -H <IPAddress> -p 5666 -c CheckMEM -a type=physical ShowAll
OK: physical memory: 3.26G|'physical memory %'=81% 'physical memory'=3.26GB 
In Nsclient 0.5.2

Physical memory output as follows

Code: Select all

[root@xxxx libexec]# ./check_nrpe -H <IPAddress> -p 5666 -c CheckMEM -a type=physical ShowAll
OK: physical: Total: 32GB - Used: 24.499GB (76%) - Free: 7.501GB (23%)|'physical'=24.49914GB;25.6;28.8;0;32 'physical %'=77%;80;90;0;100
In this case, the pnp4nagios graph data of the service for 1 year duration has been swapped during the upgrade, as the output differs from the versions.

Attaching the figure 1 for Nsclient 0.3.9 client looks good.

but for Nsclient 0.5.2 clients, the data has been swapped between the graphs attaching figure 2.

pleas help me to sort the issue.

Regards,
Simbu S

Re: pnp4nagios graph data swapped after upgrading nsclient 0

Posted: Fri Nov 02, 2018 2:59 pm
by tgriep
You may need to contact the author of NSClient to see if there is a solution ot that he will put the performance data output back to the legacy output.
In the documentation for the check, there is a perf-config option that you can use to change the output but is seems to not work.
And the link to the document is unclear is if it implemented.
https://docs.nsclient.org/reference/win ... erf-config

Code: Select all

./check_nrpe -H <IPAddress> -c check_memory -a type=physical "perf-config=used %(suffix: %)used(suffix)"