Page 1 of 1

NCPA Agent displaying different service name

Posted: Thu Oct 22, 2020 2:08 pm
by bsanjay
Hello Team,
We are trying to monitor NFS service on our 2 NFS Server. But we are seeing some weird behaviour where service name in NCPA API shows different than actual service name in NFS Server. Please find attachments & screenshots for your reference,

NFS1 Server
Files nfs1_NcpaAPI_output & nfs1_NFSService_output contains the result of NFS1 server NCPA API output & nfs service output.

NFS2 Server
Files nfs2_NcpaAPI_output & nfs2_NFSService_output contains the result of NFS2 server NCPA API output & nfs service output.

Best Regards,
bsanjay

Re: NCPA Agent displaying different service name

Posted: Fri Oct 23, 2020 4:35 pm
by cdienger
NFS1 Server
It looks like it returns the status of multiple processes. Instead of monitoring the service like this it would probably be better to monitor the processes (rpc.mountd, nfsd, rpc.rquotad) instead. What does the API show when you try to list the processes?

Code: Select all

NFS2 Server
The "service nfs status" command redirects to a systemctl equivalent. If NCPA detects systemctl then it will use this to find services and in this case the service would be nfs-server which shows to be running:

Code: Select all

"nfs-server": "running",