No perfdata on a copied service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: No perfdata on a copied service

Post by Box293 »

tgriep wrote:It has to be a bug in NSClient++ then. If you can't get performance data to work on the command line, then the NSClient is the issue.
I agree. What version of NSClient++ are you using?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: No perfdata on a copied service

Post by gormank »

I'll have to figure out how to get nsclient to tell me the version. I seem to recall the version installed had no version in the name, but that was last June.

I think I installled NSClient++-Stable-64.msi and it didin't work and NSClient++-Stable-64.msi was recomended and installed.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: No perfdata on a copied service

Post by Box293 »

gormank wrote:I'll have to figure out how to get nsclient to tell me the version.
Just run this:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H sqlhost
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: No perfdata on a copied service

Post by gormank »

I sure made that difficult...

# /usr/local/nagios/libexec/check_nrpe -H sqlhost
I (0.4.3.143 2015-04-29) seem to be doing fine...
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No perfdata on a copied service

Post by tgriep »

Can you run the following to see if we get performance data with the command you are using for only one drive?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H sqlhost-u -t 30 -c CheckDriveSize -a ShowAll=long MinWarnFree=10% MinCritFree=5% Drive=C
Please post the output.
Be sure to check out our Knowledgebase for helpful articles and solutions!
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: No perfdata on a copied service

Post by gormank »

# /usr/local/nagios/libexec/check_nrpe -H sqlhost -u -t 30 -c CheckDriveSize -a ShowAll=long MinWarnFree=10% MinCritFree=5% Drive=C
OK C: Total: 299.901GB - Used: 158.168GB (53%) - Free: 141.733GB (47%)|'C free'=141.73308GB;29.99013;14.99506;0;299.90134 'C free %'=47%;9;4;0;100
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No perfdata on a copied service

Post by tgriep »

That is good. Checking one drive produced performance data. Can you run this below to check multiple drives to see if there is a limit in NSClient?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H sqlhost-u -t 30 -c CheckDriveSize -a ShowAll=long MinWarnFree=10% MinCritFree=5% Drive=C Drive=D Drive=G Drive=J Drive=L Drive=M Drive=N
You can add more drives until it fails outputting performance data.
Be sure to check out our Knowledgebase for helpful articles and solutions!
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: No perfdata on a copied service

Post by gormank »

Its no secret that a small number of drives produce perfdata, its stated in the thread. Its fine for the hundred or so boxes w/ 2 drives and an issue on the 6 that have ~7 or more. I'll check to see what number it starts not returning data...

Your command returned data.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H sqlhost -u -t 30 -c CheckDriveSize -a ShowAll=long MinWarnFree=10% MinCritFree=5% Drive=C Drive=D Drive=G Drive=J Drive=L Drive=M Drive=N
OK C: Total: 299.901GB - Used: 158.02GB (53%) - Free: 141.881GB (47%), D: Total: 99.996GB - Used: 51.505GB (52%) - Free: 48.491GB (48%), G: Total: 2.441TB - Used: 234.815GB (10%) - Free: 2.212TB (90%), J: Total: 10TB - Used: 4.118TB (42%) - Free: 5.881TB (58%), L: Total: 4TB - Used: 328.096GB (9%) - Free: 3.679TB (91%), M: Total: 4TB - Used: 397.326GB (10%) - Free: 3.612TB (90%), N: Total: 13TB - Used: 6.728TB (52%) - Free: 6.272TB (48%)|'C free'=141.88106GB;29.99013;14.99506;0;299.90134 'C free %'=47%;9;4;0;100 'D free'=48.49145GB;9.9996;4.9998;0;99.99609 'D free %'=48%;10;5;0;100 'G free'=2.21197TB;0.24412;0.12206;0;2.44128 'G free %'=90%;9;4;0;100 'J free'=5.88148TB;0.99998;0.49999;0;9.99987 'J free %'=58%;10;5;0;100 'L free'=3.67946TB;0.39998;0.19999;0;3.99987 'L free %'=91%;9;4;0;100 'M free'=3.61186TB;0.39998;0.19999;0;3.99987 'M free %'=90%;9;4;0;100 'N free'=6.27177TB;1.29998;0.64999;0;12.99987 'N free %'=48%;9;4;0;100
I added O and no more data...

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H sqlhost -u -t 30 -c CheckDriveSize -a ShowAll=long MinWarnFree=10% MinCritFree=5% Drive=C Drive=D Drive=G Drive=J Drive=L Drive=M Drive=N Drive=O
OK C: Total: 299.901GB - Used: 158.035GB (53%) - Free: 141.866GB (47%), D: Total: 99.996GB - Used: 51.505GB (52%) - Free: 48.492GB (48%), G: Total: 2.441TB - Used: 234.815GB (10%) - Free: 2.212TB (90%), J: Total: 10TB - Used: 4.118TB (42%) - Free: 5.881TB (58%), L: Total: 4TB - Used: 328.096GB (9%) - Free: 3.679TB (91%), M: Total: 4TB - Used: 397.326GB (10%) - Free: 3.612TB (90%), N: Total: 13TB - Used: 6.728TB (52%) - Free: 6.272TB (48%), O: Total: 12TB - Used: 4.36TB (37%) - Free: 7.639TB (63%)
Funny...
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No perfdata on a copied service

Post by tgriep »

I found that the NSClient defaults to 1024 for payload length, but it can be increased.
Edit the nsclient.ini file and under this section
[/settings/NRPE/server]
Add this

Code: Select all

payload length=2048
Save the file and restart the NSClient service and let us know if this fixes it for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: No perfdata on a copied service

Post by gormank »

The output of this is 344 bytes and has no perfdata.
I can't really make changes to the system w/o a ton of electronic paperwork, meetings, and a 1.5 week lead time. Its insane, but true.

/usr/local/nagios/libexec/check_nrpe -H sqlhost -u -t 30 -c check_drivesize -a --show-all "warn=free\<10%" "crit=free\<5%" "perf-config=\*\(unit:g\)"
OUTPUT: OK C:\: 158.062GB/299.901GB used, D:\: 51.502GB/99.996GB used, G:\: 235.321GB/2.441TB used, J:\: 4.136TB/10TB used, L:\: 328.096GB/4TB used, M:\: 397.326GB/4TB used, N:\: 6.749TB/13TB used, O:\: 4.377TB/12TB used, R:\: 508.166GB/1.75TB used, T:\: 480.888GB/1.065TB used, W:\: 792.558GB/1TB used, X:\: 2.018TB/10TB used, : 32.141MB/99.996MB used

There's an old DOS command, subst that can be used to make pseudo drives from dirs on a drive. Maybe you could play a bit and see if it can be used to simulate a bunch of drives?

C:\>help subst
Associates a path with a drive letter.

SUBST [drive1: [drive2:]path]
SUBST drive1: /D

drive1: Specifies a virtual drive to which you want to assign a path.
[drive2:]path Specifies a physical drive and path you want to assign to
a virtual drive.
/D Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.
Locked