nrpe service status information

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
clauskc
Posts: 41
Joined: Tue Dec 22, 2015 7:46 am
Location: Copenhagen

nrpe service status information

Post by clauskc »

Hi,

We have several services, NRPE_checks where the value in "Status information" throws in a couple chars when a service is measured in KB.
Example 6.14928e+009, when I see in performance data the extra chars which is always e+ is not there.

/Claus
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: nrpe service status information

Post by tgriep »

Can you post the configurations for those check with the incorrect status information so we can see which command you are running?
The status information is separate data from the Performance data so if the performance data output is correct, it will be displayed normally.
Can you run the command in a shell on the Nagios server and post the output?
Be sure to check out our Knowledgebase for helpful articles and solutions!
clauskc
Posts: 41
Joined: Tue Dec 22, 2015 7:46 am
Location: Copenhagen

Re: nrpe service status information

Post by clauskc »

define service {
host_name xxxxxxxxx
service_description SQLDatabases - Data File Size-KB
check_command check_nrpe_nossl_3args_4kpayload!check_pdh! -a "counter:SQLDB Data File size(KB)=\\SQLServer:Databases(_Total)\\Data File(s) Size (KB)"!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
register 1
}

ran command with output:

/usr/local/nagios/libexec/check_nrpe -2 -P 4096 -H 8.8.8.8 -n -t 30 -c check_pdh -a "counter:SQLDB Data File size(KB)=\\SQLServer:Databases(_Total)\\Data File(s) Size (KB)"

OK: SQLDB Data File size(KB) = 6.16157e+009|'SQLDB Data File size(KB)_value'=6161568704;0;0
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: nrpe service status information

Post by tgriep »

The status output is showing the counter in KB but the Performance data is in Bytes.
If you want to change them, you would have to add the detail-syntax option to the command to change the status output or add the perf-syntax option to the command to change the performance data output.
Take a look at these links for more details on those options.
http://docs.nsclient.org/0.4.3/referenc ... .check_pdh
https://docs.nsclient.org/0.4.4/referen ... ail-syntax
https://docs.nsclient.org/0.4.4/referen ... erf-syntax
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked