mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
Try this again on the right machine. Adding files for PCP samba pmda
(This used to be commit 8ad653f9ebc60c6807c1552425fa83218f6a15d4)
This commit is contained in:
parent
76aab4ad56
commit
fbe838f69b
64
pcp/Install
Executable file
64
pcp/Install
Executable file
@ -0,0 +1,64 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of version 2 of the GNU General Public License as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is distributed in the hope that it would be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# Further, this software is distributed without any warranty that it is
|
||||
# free of the rightful claim of any third person regarding infringement
|
||||
# or the like. Any license provided herein, whether implied or
|
||||
# otherwise, applies only to this software file. Patent licenses, if
|
||||
# any, provided herein do not apply to combinations of this program with
|
||||
# other software, or any other product whatsoever.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston MA 02111-1307, USA.
|
||||
#
|
||||
# Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
|
||||
# Mountain View, CA 94043, or:
|
||||
#
|
||||
# http://www.sgi.com
|
||||
#
|
||||
# For further information regarding this notice, see:
|
||||
#
|
||||
# http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
|
||||
#
|
||||
# Install the samba PMDA and/or PMNS
|
||||
#
|
||||
|
||||
# source the PCP configuration environment variables
|
||||
. /etc/pcp.env
|
||||
|
||||
# Get the common procedures and variable assignments
|
||||
#
|
||||
. $PCP_SHARE_DIR/lib/pmdaproc.sh
|
||||
|
||||
# The name of the PMDA
|
||||
#
|
||||
iam=samba
|
||||
|
||||
# override interactive dialog from pmdaproc.sh
|
||||
#
|
||||
__choose_mode()
|
||||
{
|
||||
echo "Installing the \"$iam\" Performance Metrics Domain Agent (PMDA) ..."
|
||||
echo
|
||||
}
|
||||
|
||||
# Using libpcp_pmda.so.2 and PMDA_INTERFACE_2
|
||||
#
|
||||
pmda_interface=2
|
||||
|
||||
# Do it
|
||||
#
|
||||
pmdaSetup
|
||||
pmdaInstall
|
||||
|
||||
exit 0
|
66
pcp/Makefile
Normal file
66
pcp/Makefile
Normal file
@ -0,0 +1,66 @@
|
||||
#!make
|
||||
#
|
||||
# Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of version 2 of the GNU General Public License as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is distributed in the hope that it would be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# Further, this software is distributed without any warranty that it is
|
||||
# free of the rightful claim of any third person regarding infringement
|
||||
# or the like. Any license provided herein, whether implied or
|
||||
# otherwise, applies only to this software file. Patent licenses, if
|
||||
# any, provided herein do not apply to combinations of this program with
|
||||
# other software, or any other product whatsoever.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston MA 02111-1307, USA.
|
||||
#
|
||||
# Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
|
||||
# Mountain View, CA 94043, or:
|
||||
#
|
||||
# http://www.sgi.com
|
||||
#
|
||||
# For further information regarding this notice, see:
|
||||
#
|
||||
# http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
|
||||
#
|
||||
|
||||
SHELL = sh
|
||||
|
||||
include /etc/pcp.conf
|
||||
|
||||
IAM = samba
|
||||
CFILES = $(IAM).c
|
||||
|
||||
LIBTARGET = pmda_$(IAM).so
|
||||
CMDTARGET = pmda$(IAM)
|
||||
TARGETS = $(LIBTARGET) $(CMDTARGET)
|
||||
|
||||
DEBUG = -DDEBUG
|
||||
CFLAGS = $(DEBUG)
|
||||
LDOPTS =
|
||||
LDLIBS = -lpcp_pmda -lpcp
|
||||
DSOOPTS = -shared
|
||||
LDIRT = so_locations *.log help.dir help.pag *.pmda_$(IAM).so
|
||||
|
||||
INSTALL = install
|
||||
CC = cc
|
||||
|
||||
default: $(TARGETS)
|
||||
|
||||
install: default
|
||||
|
||||
$(CMDTARGET): profile.h $(CFILES)
|
||||
$(CC) $(CFLAGS) $(CFILES) $(LDOPTS) $(LDLIBS) -o $@
|
||||
|
||||
$(LIBTARGET): profile.h $(CFILES)
|
||||
$(CC) $(CFLAGS) $(DSOOPTS) $(LDOPTS) $(CFILES) $(LDLIBS) -o $@
|
||||
|
||||
clobber clean:
|
||||
rm -f $(LDIRT) $(TARGETS)
|
94
pcp/README
Normal file
94
pcp/README
Normal file
@ -0,0 +1,94 @@
|
||||
samba PMDA
|
||||
===========
|
||||
|
||||
This PMDA is a sample that illustrates how a simple samba monitor
|
||||
PMDA might be constructed, using a shared memory segment to transfer
|
||||
information about transaction activity from the smb daemon.
|
||||
|
||||
Note:
|
||||
This PMDA may be remade from source and hence requires
|
||||
a C compiler to be installed.
|
||||
|
||||
Uses of make(1) may fail (without removing or clobbering files)
|
||||
if the C compiler cannot be found. This is most likely to
|
||||
happen when running the PMDA ./Install script.
|
||||
|
||||
The only remedial action is to install the C compiler, or
|
||||
hand-craft changes to the Makefile.
|
||||
|
||||
Metrics
|
||||
=======
|
||||
|
||||
The file ./help contains descriptions for all of the metrics exported
|
||||
by this PMDA.
|
||||
|
||||
Once the PMDA has been installed, the following command will list all
|
||||
the available metrics and their explanatory "help" text:
|
||||
|
||||
$ pminfo -fT samba
|
||||
|
||||
Installation
|
||||
============
|
||||
|
||||
+ # mkdir /var/pcp/pmdas/samba
|
||||
+ # cp * /var/pcp/pmdas/samba
|
||||
+ # cp ../source/includes/profile.h /var/pcp/pmdas/samba
|
||||
+ # cd /var/pcp/pmdas/samba
|
||||
|
||||
+ Check that there is no clash in the Performance Metrics Domain
|
||||
defined in ./domain.h and the other PMDAs currently in use
|
||||
(/etc/pmcd.conf). If there is, edit ./domain.h to choose another
|
||||
domain number.
|
||||
|
||||
+ If you are not installing on an IRIX system, edit samba.c and
|
||||
comment out the
|
||||
|
||||
#define IRIX 1
|
||||
|
||||
+ Then simply use
|
||||
|
||||
# ./Install
|
||||
|
||||
+ Alternatively, to install just the Performance Metrics Name Space
|
||||
for the samba metrics on the local system, but not the samba PMDA
|
||||
(presumably because the local system is running PCP 1.x and you
|
||||
wish to connect to a remote system where PCP 2.0 and the samba PMDA
|
||||
is running), make sure the Performance Metrics Domain defined in
|
||||
./domain.h matches the domain chosen for the samba PMDA on the
|
||||
remote system (check the second field in the corresponding line of
|
||||
the pmcd.conf file on the remote system - located in /etc on IRIX
|
||||
and /var/pcp/config/pmcd on Linux), then
|
||||
|
||||
# ./Install -N
|
||||
|
||||
De-installation
|
||||
===============
|
||||
|
||||
+ Simply use
|
||||
|
||||
# cd /var/pcp/pmdas/samba
|
||||
# ./Remove
|
||||
|
||||
+ If you also want to remove the sources use
|
||||
|
||||
# cd /
|
||||
# rm -rf /var/pcp/pmdas/samba
|
||||
|
||||
Making something happen
|
||||
=======================
|
||||
|
||||
The application ./smbd updates the shared memory segment to add
|
||||
profile information about smbd. By default updating is disabled.
|
||||
To start updating of the shared memory segment you need to run the
|
||||
smbcontrol command to turn on profiling for one or more smbd processes
|
||||
(see the man page for smbcontrol).
|
||||
|
||||
|
||||
|
||||
Troubleshooting
|
||||
===============
|
||||
|
||||
+ After installing or restarting the agent, the PMCD log file
|
||||
(pmcd.log) and the PMDA log file (samba.log) should be checked
|
||||
for any warnings or errors. These logs are located in
|
||||
/var/log/pcp/pmcd on Linux and /var/adm/pcplog on IRIX.
|
52
pcp/Remove
Executable file
52
pcp/Remove
Executable file
@ -0,0 +1,52 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of version 2 of the GNU General Public License as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is distributed in the hope that it would be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
# Further, this software is distributed without any warranty that it is
|
||||
# free of the rightful claim of any third person regarding infringement
|
||||
# or the like. Any license provided herein, whether implied or
|
||||
# otherwise, applies only to this software file. Patent licenses, if
|
||||
# any, provided herein do not apply to combinations of this program with
|
||||
# other software, or any other product whatsoever.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along
|
||||
# with this program; if not, write the Free Software Foundation, Inc., 59
|
||||
# Temple Place - Suite 330, Boston MA 02111-1307, USA.
|
||||
#
|
||||
# Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
|
||||
# Mountain View, CA 94043, or:
|
||||
#
|
||||
# http://www.sgi.com
|
||||
#
|
||||
# For further information regarding this notice, see:
|
||||
#
|
||||
# http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
|
||||
#
|
||||
# Remove the samba PMDA
|
||||
#
|
||||
|
||||
# source the PCP configuration environment variables
|
||||
. /etc/pcp.env
|
||||
|
||||
# Get the common procedures and variable assignments
|
||||
#
|
||||
. $PCP_SHARE_DIR/lib/pmdaproc.sh
|
||||
|
||||
# The name of the PMDA
|
||||
#
|
||||
iam=samba
|
||||
|
||||
# Do it
|
||||
#
|
||||
pmdaSetup
|
||||
pmdaRemove
|
||||
|
||||
exit 0
|
4
pcp/domain.h
Normal file
4
pcp/domain.h
Normal file
@ -0,0 +1,4 @@
|
||||
/*
|
||||
* built from /var/pcp/pmns/stdpmid
|
||||
*/
|
||||
#define SAMBA 123
|
355
pcp/help
Normal file
355
pcp/help
Normal file
@ -0,0 +1,355 @@
|
||||
#
|
||||
# $Revision: 1.1 $
|
||||
#
|
||||
# samba PMDA help file in the ASCII format
|
||||
#
|
||||
# lines beginning with a # are ignored
|
||||
# lines beginning @ introduce a new entry of the form
|
||||
# @ metric_name oneline-text
|
||||
# help test goes
|
||||
# here over multiple lines
|
||||
# ...
|
||||
#
|
||||
# the metric_name is decoded against the default PMNS -- as a special case,
|
||||
# a name of the form NNN.MM (for numeric NNN and MM) is interpreted as an
|
||||
# instance domain identification, and the text describes the instance domain
|
||||
#
|
||||
# blank lines before the @ line are ignored
|
||||
#
|
||||
|
||||
@ samba.smbd.smb_count Count of SMB packets processed
|
||||
|
||||
@ samba.smbd.uid_changes Count of times effective uid changed
|
||||
|
||||
@ samba.syscalls.opendir Number of calls to opendir system call
|
||||
|
||||
@ samba.syscalls.opendir_time Time spent executing opendir system call
|
||||
|
||||
@ samba.syscalls.readdir Number of calls to readdir system call
|
||||
|
||||
@ samba.syscalls.readdir_time Time spent executing readdir system call
|
||||
|
||||
@ samba.syscalls.mkdir Number of calls to mkdir system call
|
||||
|
||||
@ samba.syscalls.mkdir_time Time spent executing mkdir system call
|
||||
|
||||
@ samba.syscalls.rmdir Number of calls to rmdir system call
|
||||
|
||||
@ samba.syscalls.rmdir_time Time spent executing rmdir system call
|
||||
|
||||
@ samba.syscalls.closedir Number of calls to closedir system call
|
||||
|
||||
@ samba.syscalls.closedir_time Time spent executing closedir system call
|
||||
|
||||
@ samba.syscalls.open Number of calls to open system call
|
||||
|
||||
@ samba.syscalls.open_time Time spent executing open system call
|
||||
|
||||
@ samba.syscalls.close Number of calls to close system call
|
||||
|
||||
@ samba.syscalls.close_time Time spent executing close system call
|
||||
|
||||
@ samba.syscalls.read Number of calls to read system call
|
||||
|
||||
@ samba.syscalls.read_time Time spent executing read system call
|
||||
|
||||
@ samba.syscalls.read_bytes Number of bytes read by read system call
|
||||
|
||||
@ samba.syscalls.write Number of calls to write system call
|
||||
|
||||
@ samba.syscalls.write_time Time spent executing write system call
|
||||
|
||||
@ samba.syscalls.write_bytes Number of bytes written by write system call
|
||||
|
||||
@ samba.syscalls.lseek Number of calls to lseek system call
|
||||
|
||||
@ samba.syscalls.lseek_time Time spent executing lseek system call
|
||||
|
||||
@ samba.syscalls.rename Number of calls to rename system call
|
||||
|
||||
@ samba.syscalls.rename_time Time spent executing rename system call
|
||||
|
||||
@ samba.syscalls.fsync Number of calls to fsync system call
|
||||
|
||||
@ samba.syscalls.fsync_time Time spent executing fsync system call
|
||||
|
||||
@ samba.syscalls.stat Number of calls to stat system call
|
||||
|
||||
@ samba.syscalls.stat_time Time spent executing stat system call
|
||||
|
||||
@ samba.syscalls.fstat Number of calls to fstat system call
|
||||
|
||||
@ samba.syscalls.fstat_time Time spent executing fstat system call
|
||||
|
||||
@ samba.syscalls.lstat Number of calls to lstat system call
|
||||
|
||||
@ samba.syscalls.lstat_time Time spent executing lstat system call
|
||||
|
||||
@ samba.syscalls.unlink Number of calls to unlink system call
|
||||
|
||||
@ samba.syscalls.unlink_time Time spent executing unlink system call
|
||||
|
||||
@ samba.syscalls.chmod Number of calls to chmod system call
|
||||
|
||||
@ samba.syscalls.chmod_time Time spent executing chmod system call
|
||||
|
||||
@ samba.syscalls.chown Number of calls to chown system call
|
||||
|
||||
@ samba.syscalls.chown_time Time spent executing chown system call
|
||||
|
||||
@ samba.syscalls.chdir Number of calls to chdir system call
|
||||
|
||||
@ samba.syscalls.chdir_time Time spent executing chdir system call
|
||||
|
||||
@ samba.syscalls.getwd Number of calls to getwd system call
|
||||
|
||||
@ samba.syscalls.getwd_time Time spent executing getwd system call
|
||||
|
||||
@ samba.syscalls.utime Number of calls to utime system call
|
||||
|
||||
@ samba.syscalls.utime_time Time spent executing utime system call
|
||||
|
||||
@ samba.syscalls.ftruncate Number of calls to ftruncate system call
|
||||
|
||||
@ samba.syscalls.ftruncate_time Time spent executing ftruncate system call
|
||||
|
||||
@ samba.syscalls.fcntl_lock Number of calls to fcntl_lock system call
|
||||
|
||||
@ samba.syscalls.fcntl_lock_time Time spent executing fcntl_lock system call
|
||||
|
||||
@ samba.statcache.lookups Number of lookups in stat cache
|
||||
|
||||
@ samba.statcache.misses Number of times stat cache lookup missed
|
||||
|
||||
@ samba.statcache.hits Number of times stat cache lookup hit
|
||||
|
||||
@ samba.writecache.num_caches Number of write caches available
|
||||
|
||||
@ samba.writecache.allocated_caches Number of write caches allocated
|
||||
|
||||
@ samba.writecache.read_hits Number of times read request found in write cache
|
||||
|
||||
@ samba.writecache.total_writes Number of writes to write cache
|
||||
|
||||
@ samba.writecache.init_writes Number of initial writes to write cache
|
||||
|
||||
@ samba.writecache.abutted_writes
|
||||
|
||||
@ samba.writecache.perfect_writes
|
||||
|
||||
@ samba.writecache.direct_writes
|
||||
|
||||
@ samba.writecache.non_oplock_writes
|
||||
|
||||
@ samba.writecache.seek_flush
|
||||
|
||||
@ samba.writecache.read_flush
|
||||
|
||||
@ samba.writecache.write_flush
|
||||
|
||||
@ samba.writecache.readraw_flush
|
||||
|
||||
@ samba.writecache.oplock_rel_flush
|
||||
|
||||
@ samba.writecache.close_flush
|
||||
|
||||
@ samba.writecache.sync_flush
|
||||
|
||||
@ samba.writecache.size_change_flush
|
||||
|
||||
@ samba.SMB.SMB_mkdir
|
||||
@ samba.SMB.SMB_mkdir_time
|
||||
@ samba.SMB.SMB_rmdir
|
||||
@ samba.SMB.SMB_rmdir_time
|
||||
@ samba.SMB.SMB_open
|
||||
@ samba.SMB.SMB_open_time
|
||||
@ samba.SMB.SMB_create
|
||||
@ samba.SMB.SMB_create_time
|
||||
@ samba.SMB.SMB_close
|
||||
@ samba.SMB.SMB_close_time
|
||||
@ samba.SMB.SMB_flush
|
||||
@ samba.SMB.SMB_flush_time
|
||||
@ samba.SMB.SMB_unlink
|
||||
@ samba.SMB.SMB_unlink_time
|
||||
@ samba.SMB.SMB_mv
|
||||
@ samba.SMB.SMB_mv_time
|
||||
@ samba.SMB.SMB_getattr
|
||||
@ samba.SMB.SMB_getattr_time
|
||||
@ samba.SMB.SMB_setattr
|
||||
@ samba.SMB.SMB_setattr_time
|
||||
@ samba.SMB.SMB_read
|
||||
@ samba.SMB.SMB_read_time
|
||||
@ samba.SMB.SMB_write
|
||||
@ samba.SMB.SMB_write_time
|
||||
@ samba.SMB.SMB_lock
|
||||
@ samba.SMB.SMB_lock_time
|
||||
@ samba.SMB.SMB_unlock
|
||||
@ samba.SMB.SMB_unlock_time
|
||||
@ samba.SMB.SMB_ctemp
|
||||
@ samba.SMB.SMB_ctemp_time
|
||||
@ samba.SMB.SMB_mknew
|
||||
@ samba.SMB.SMB_mknew_time
|
||||
@ samba.SMB.SMB_chkpth
|
||||
@ samba.SMB.SMB_chkpth_time
|
||||
@ samba.SMB.SMB_exit
|
||||
@ samba.SMB.SMB_exit_time
|
||||
@ samba.SMB.SMB_lseek
|
||||
@ samba.SMB.SMB_lseek_time
|
||||
@ samba.SMB.SMB_lockread
|
||||
@ samba.SMB.SMB_lockread_time
|
||||
@ samba.SMB.SMB_writeunlock
|
||||
@ samba.SMB.SMB_writeunlock_time
|
||||
@ samba.SMB.SMB_readBraw
|
||||
@ samba.SMB.SMB_readBraw_time
|
||||
@ samba.SMB.SMB_readBmpx
|
||||
@ samba.SMB.SMB_readBmpx_time
|
||||
@ samba.SMB.SMB_readBs
|
||||
@ samba.SMB.SMB_readBs_time
|
||||
@ samba.SMB.SMB_writeBraw
|
||||
@ samba.SMB.SMB_writeBraw_time
|
||||
@ samba.SMB.SMB_writeBmpx
|
||||
@ samba.SMB.SMB_writeBmpx_time
|
||||
@ samba.SMB.SMB_writeBs
|
||||
@ samba.SMB.SMB_writeBs_time
|
||||
@ samba.SMB.SMB_writec
|
||||
@ samba.SMB.SMB_writec_time
|
||||
@ samba.SMB.SMB_setattrE
|
||||
@ samba.SMB.SMB_setattrE_time
|
||||
@ samba.SMB.SMB_getattrE
|
||||
@ samba.SMB.SMB_getattrE_time
|
||||
@ samba.SMB.SMB_lockingX
|
||||
@ samba.SMB.SMB_lockingX_time
|
||||
@ samba.SMB.SMB_trans
|
||||
@ samba.SMB.SMB_trans_time
|
||||
@ samba.SMB.SMB_transs
|
||||
@ samba.SMB.SMB_transs_time
|
||||
@ samba.SMB.SMB_ioctl
|
||||
@ samba.SMB.SMB_ioctl_time
|
||||
@ samba.SMB.SMB_ioctls
|
||||
@ samba.SMB.SMB_ioctls_time
|
||||
@ samba.SMB.SMB_copy
|
||||
@ samba.SMB.SMB_copy_time
|
||||
@ samba.SMB.SMB_move
|
||||
@ samba.SMB.SMB_move_time
|
||||
@ samba.SMB.SMB_echo
|
||||
@ samba.SMB.SMB_echo_time
|
||||
@ samba.SMB.SMB_writeclose
|
||||
@ samba.SMB.SMB_writeclose_time
|
||||
@ samba.SMB.SMB_openX
|
||||
@ samba.SMB.SMB_openX_time
|
||||
@ samba.SMB.SMB_readX
|
||||
@ samba.SMB.SMB_readX_time
|
||||
@ samba.SMB.SMB_writeX
|
||||
@ samba.SMB.SMB_writeX_time
|
||||
@ samba.SMB.SMB_trans2
|
||||
@ samba.SMB.SMB_trans2_time
|
||||
@ samba.SMB.SMB_transs2
|
||||
@ samba.SMB.SMB_transs2_time
|
||||
@ samba.SMB.SMB_findclose
|
||||
@ samba.SMB.SMB_findclose_time
|
||||
@ samba.SMB.SMB_findNclose
|
||||
@ samba.SMB.SMB_findNclose_time
|
||||
@ samba.SMB.SMB_tcon
|
||||
@ samba.SMB.SMB_tcon_time
|
||||
@ samba.SMB.SMB_tdis
|
||||
@ samba.SMB.SMB_tdis_time
|
||||
@ samba.SMB.SMB_negprot
|
||||
@ samba.SMB.SMB_negprot_time
|
||||
@ samba.SMB.SMB_sessetupX
|
||||
@ samba.SMB.SMB_sessetupX_time
|
||||
@ samba.SMB.SMB_ulogoffX
|
||||
@ samba.SMB.SMB_ulogoffX_time
|
||||
@ samba.SMB.SMB_tconX
|
||||
@ samba.SMB.SMB_tconX_time
|
||||
@ samba.SMB.SMB_dskattr
|
||||
@ samba.SMB.SMB_dskattr_time
|
||||
@ samba.SMB.SMB_search
|
||||
@ samba.SMB.SMB_search_time
|
||||
@ samba.SMB.SMB_ffirst
|
||||
@ samba.SMB.SMB_ffirst_time
|
||||
@ samba.SMB.SMB_funique
|
||||
@ samba.SMB.SMB_funique_time
|
||||
@ samba.SMB.SMB_fclose
|
||||
@ samba.SMB.SMB_fclose_time
|
||||
@ samba.SMB.SMB_NTtrans
|
||||
@ samba.SMB.SMB_NTtrans_time
|
||||
@ samba.SMB.SMB_NTtranss
|
||||
@ samba.SMB.SMB_NTtranss_time
|
||||
@ samba.SMB.SMB_NTcreateX
|
||||
@ samba.SMB.SMB_NTcreateX_time
|
||||
@ samba.SMB.SMB_NTcancel
|
||||
@ samba.SMB.SMB_NTcancel_time
|
||||
@ samba.SMB.SMB_splopen
|
||||
@ samba.SMB.SMB_splopen_time
|
||||
@ samba.SMB.SMB_splwrite
|
||||
@ samba.SMB.SMB_splwrite_time
|
||||
@ samba.SMB.SMB_splclose
|
||||
@ samba.SMB.SMB_splclose_time
|
||||
@ samba.SMB.SMB_splretq
|
||||
@ samba.SMB.SMB_splretq_time
|
||||
@ samba.SMB.SMB_sends
|
||||
@ samba.SMB.SMB_sends_time
|
||||
@ samba.SMB.SMB_sendb
|
||||
@ samba.SMB.SMB_sendb_time
|
||||
@ samba.SMB.SMB_fwdname
|
||||
@ samba.SMB.SMB_fwdname_time
|
||||
@ samba.SMB.SMB_cancelf
|
||||
@ samba.SMB.SMB_cancelf_time
|
||||
@ samba.SMB.SMB_getmach
|
||||
@ samba.SMB.SMB_getmach_time
|
||||
@ samba.SMB.SMB_sendstrt
|
||||
@ samba.SMB.SMB_sendstrt_time
|
||||
@ samba.SMB.SMB_sendend
|
||||
@ samba.SMB.SMB_sendend_time
|
||||
@ samba.SMB.SMB_sendtxt
|
||||
@ samba.SMB.SMB_sendtxt_time
|
||||
@ samba.SMB.SMB_invalid
|
||||
@ samba.SMB.SMB_invalid_time
|
||||
@ samba.SMB.PATHWORK_setdir
|
||||
@ samba.SMB.PATHWORK_setdir_time
|
||||
@ samba.SMB.TRANS2_open
|
||||
@ samba.SMB.TRANS2_open_time
|
||||
@ samba.SMB.TRANS2_ffirst
|
||||
@ samba.SMB.TRANS2_ffirst_time
|
||||
@ samba.SMB.TRANS2_fnext
|
||||
@ samba.SMB.TRANS2_fnext_time
|
||||
@ samba.SMB.TRANS2_qfsinfo
|
||||
@ samba.SMB.TRANS2_qfsinfo_time
|
||||
@ samba.SMB.TRANS2_sfsinfo
|
||||
@ samba.SMB.TRANS2_sfsinfo_time
|
||||
@ samba.SMB.TRANS2_qpathinfo
|
||||
@ samba.SMB.TRANS2_qpathinfo_time
|
||||
@ samba.SMB.TRANS2_spathinfo
|
||||
@ samba.SMB.TRANS2_spathinfo_time
|
||||
@ samba.SMB.TRANS2_qfileinfo
|
||||
@ samba.SMB.TRANS2_qfileinfo_time
|
||||
@ samba.SMB.TRANS2_sfileinfo
|
||||
@ samba.SMB.TRANS2_sfileinfo_time
|
||||
@ samba.SMB.TRANS2_fsctl
|
||||
@ samba.SMB.TRANS2_fsctl_time
|
||||
@ samba.SMB.TRANS2_ioctl
|
||||
@ samba.SMB.TRANS2_ioctl_time
|
||||
@ samba.SMB.TRANS2_fnotifyfirst
|
||||
@ samba.SMB.TRANS2_fnotifyfirst_time
|
||||
@ samba.SMB.TRANS2_fnotifynext
|
||||
@ samba.SMB.TRANS2_fnotifynext_time
|
||||
@ samba.SMB.TRANS2_mkdir
|
||||
@ samba.SMB.TRANS2_mkdir_time
|
||||
@ samba.SMB.TRANS2_sessetup
|
||||
@ samba.SMB.TRANS2_sessetup_time
|
||||
@ samba.SMB.TRANS2_getDFSref
|
||||
@ samba.SMB.TRANS2_getDFSref_time
|
||||
@ samba.SMB.TRANS2_rptDFSinconsist
|
||||
@ samba.SMB.TRANS2_rptDFSinconsist_time
|
||||
@ samba.SMB.NTTRANS_create
|
||||
@ samba.SMB.NTTRANS_create_time
|
||||
@ samba.SMB.NTTRANS_ioctl
|
||||
@ samba.SMB.NTTRANS_ioctl_time
|
||||
@ samba.SMB.NTTRANS_setsecdesc
|
||||
@ samba.SMB.NTTRANS_setsecdesc_time
|
||||
@ samba.SMB.NTTRANS_notifychange
|
||||
@ samba.SMB.NTTRANS_notifychange_time
|
||||
@ samba.SMB.NTTRANS_rename
|
||||
@ samba.SMB.NTTRANS_rename_time
|
||||
@ samba.SMB.NTTRANS_qsecdesc
|
||||
@ samba.SMB.NTTRANS_qsecdesc_time
|
297
pcp/pmns
Normal file
297
pcp/pmns
Normal file
@ -0,0 +1,297 @@
|
||||
/*
|
||||
* Metrics for samba PMDA
|
||||
*
|
||||
* $Revision: 1.1 $
|
||||
*/
|
||||
|
||||
samba {
|
||||
smbd
|
||||
syscalls
|
||||
statcache
|
||||
writecache
|
||||
SMB
|
||||
}
|
||||
|
||||
samba.smbd {
|
||||
smb_count SAMBA:0:0
|
||||
uid_changes SAMBA:0:1
|
||||
}
|
||||
|
||||
samba.syscalls {
|
||||
opendir SAMBA:1:2
|
||||
opendir_time SAMBA:1:3
|
||||
readdir SAMBA:1:4
|
||||
readdir_time SAMBA:1:5
|
||||
mkdir SAMBA:1:6
|
||||
mkdir_time SAMBA:1:7
|
||||
rmdir SAMBA:1:8
|
||||
rmdir_time SAMBA:1:9
|
||||
closedir SAMBA:1:10
|
||||
closedir_time SAMBA:1:11
|
||||
open SAMBA:1:12
|
||||
open_time SAMBA:1:13
|
||||
close SAMBA:1:14
|
||||
close_time SAMBA:1:15
|
||||
read SAMBA:1:16
|
||||
read_time SAMBA:1:17
|
||||
read_bytes SAMBA:1:18
|
||||
write SAMBA:1:19
|
||||
write_time SAMBA:1:20
|
||||
write_bytes SAMBA:1:21
|
||||
lseek SAMBA:1:22
|
||||
lseek_time SAMBA:1:23
|
||||
rename SAMBA:1:24
|
||||
rename_time SAMBA:1:25
|
||||
fsync SAMBA:1:26
|
||||
fsync_time SAMBA:1:27
|
||||
stat SAMBA:1:28
|
||||
stat_time SAMBA:1:29
|
||||
fstat SAMBA:1:30
|
||||
fstat_time SAMBA:1:31
|
||||
lstat SAMBA:1:32
|
||||
lstat_time SAMBA:1:33
|
||||
unlink SAMBA:1:34
|
||||
unlink_time SAMBA:1:35
|
||||
chmod SAMBA:1:36
|
||||
chmod_time SAMBA:1:37
|
||||
chown SAMBA:1:38
|
||||
chown_time SAMBA:1:39
|
||||
chdir SAMBA:1:40
|
||||
chdir_time SAMBA:1:41
|
||||
getwd SAMBA:1:42
|
||||
getwd_time SAMBA:1:43
|
||||
utime SAMBA:1:44
|
||||
utime_time SAMBA:1:45
|
||||
ftruncate SAMBA:1:46
|
||||
ftruncate_time SAMBA:1:47
|
||||
fcntl_lock SAMBA:1:48
|
||||
fcntl_lock_time SAMBA:1:49
|
||||
}
|
||||
|
||||
samba.statcache {
|
||||
lookups SAMBA:2:50
|
||||
misses SAMBA:2:51
|
||||
hits SAMBA:2:52
|
||||
}
|
||||
|
||||
samba.writecache {
|
||||
num_caches SAMBA:3:53
|
||||
allocated_caches SAMBA:3:54
|
||||
read_hits SAMBA:3:55
|
||||
total_writes SAMBA:3:56
|
||||
init_writes SAMBA:3:57
|
||||
abutted_writes SAMBA:3:58
|
||||
perfect_writes SAMBA:3:59
|
||||
direct_writes SAMBA:3:60
|
||||
non_oplock_writes SAMBA:3:61
|
||||
seek_flush SAMBA:3:62
|
||||
read_flush SAMBA:3:63
|
||||
write_flush SAMBA:3:64
|
||||
readraw_flush SAMBA:3:65
|
||||
oplock_rel_flush SAMBA:3:66
|
||||
close_flush SAMBA:3:67
|
||||
sync_flush SAMBA:3:68
|
||||
size_change_flush SAMBA:3:69
|
||||
}
|
||||
|
||||
samba.SMB {
|
||||
SMB_mkdir SAMBA:4:70
|
||||
SMB_mkdir_time SAMBA:4:71
|
||||
SMB_rmdir SAMBA:4:72
|
||||
SMB_rmdir_time SAMBA:4:73
|
||||
SMB_open SAMBA:4:74
|
||||
SMB_open_time SAMBA:4:75
|
||||
SMB_create SAMBA:4:76
|
||||
SMB_create_time SAMBA:4:77
|
||||
SMB_close SAMBA:4:78
|
||||
SMB_close_time SAMBA:4:79
|
||||
SMB_flush SAMBA:4:80
|
||||
SMB_flush_time SAMBA:4:81
|
||||
SMB_unlink SAMBA:4:82
|
||||
SMB_unlink_time SAMBA:4:83
|
||||
SMB_mv SAMBA:4:84
|
||||
SMB_mv_time SAMBA:4:85
|
||||
SMB_getattr SAMBA:4:86
|
||||
SMB_getattr_time SAMBA:4:87
|
||||
SMB_setattr SAMBA:4:88
|
||||
SMB_setattr_time SAMBA:4:89
|
||||
SMB_read SAMBA:4:90
|
||||
SMB_read_time SAMBA:4:91
|
||||
SMB_write SAMBA:4:92
|
||||
SMB_write_time SAMBA:4:93
|
||||
SMB_lock SAMBA:4:94
|
||||
SMB_lock_time SAMBA:4:95
|
||||
SMB_unlock SAMBA:4:96
|
||||
SMB_unlock_time SAMBA:4:97
|
||||
SMB_ctemp SAMBA:4:98
|
||||
SMB_ctemp_time SAMBA:4:99
|
||||
SMB_mknew SAMBA:4:100
|
||||
SMB_mknew_time SAMBA:4:101
|
||||
SMB_chkpth SAMBA:4:102
|
||||
SMB_chkpth_time SAMBA:4:103
|
||||
SMB_exit SAMBA:4:104
|
||||
SMB_exit_time SAMBA:4:105
|
||||
SMB_lseek SAMBA:4:106
|
||||
SMB_lseek_time SAMBA:4:107
|
||||
SMB_lockread SAMBA:4:108
|
||||
SMB_lockread_time SAMBA:4:109
|
||||
SMB_writeunlock SAMBA:4:110
|
||||
SMB_writeunlock_time SAMBA:4:111
|
||||
SMB_readBraw SAMBA:4:112
|
||||
SMB_readBraw_time SAMBA:4:113
|
||||
SMB_readBmpx SAMBA:4:114
|
||||
SMB_readBmpx_time SAMBA:4:115
|
||||
SMB_readBs SAMBA:4:116
|
||||
SMB_readBs_time SAMBA:4:117
|
||||
SMB_writeBraw SAMBA:4:118
|
||||
SMB_writeBraw_time SAMBA:4:119
|
||||
SMB_writeBmpx SAMBA:4:120
|
||||
SMB_writeBmpx_time SAMBA:4:121
|
||||
SMB_writeBs SAMBA:4:122
|
||||
SMB_writeBs_time SAMBA:4:123
|
||||
SMB_writec SAMBA:4:124
|
||||
SMB_writec_time SAMBA:4:125
|
||||
SMB_setattrE SAMBA:4:126
|
||||
SMB_setattrE_time SAMBA:4:127
|
||||
SMB_getattrE SAMBA:4:128
|
||||
SMB_getattrE_time SAMBA:4:129
|
||||
SMB_lockingX SAMBA:4:130
|
||||
SMB_lockingX_time SAMBA:4:131
|
||||
SMB_trans SAMBA:4:132
|
||||
SMB_trans_time SAMBA:4:133
|
||||
SMB_transs SAMBA:4:134
|
||||
SMB_transs_time SAMBA:4:135
|
||||
SMB_ioctl SAMBA:4:136
|
||||
SMB_ioctl_time SAMBA:4:137
|
||||
SMB_ioctls SAMBA:4:138
|
||||
SMB_ioctls_time SAMBA:4:139
|
||||
SMB_copy SAMBA:4:140
|
||||
SMB_copy_time SAMBA:4:141
|
||||
SMB_move SAMBA:4:142
|
||||
SMB_move_time SAMBA:4:143
|
||||
SMB_echo SAMBA:4:144
|
||||
SMB_echo_time SAMBA:4:145
|
||||
SMB_writeclose SAMBA:4:146
|
||||
SMB_writeclose_time SAMBA:4:147
|
||||
SMB_openX SAMBA:4:148
|
||||
SMB_openX_time SAMBA:4:149
|
||||
SMB_readX SAMBA:4:150
|
||||
SMB_readX_time SAMBA:4:151
|
||||
SMB_writeX SAMBA:4:152
|
||||
SMB_writeX_time SAMBA:4:153
|
||||
SMB_trans2 SAMBA:4:154
|
||||
SMB_trans2_time SAMBA:4:155
|
||||
SMB_transs2 SAMBA:4:156
|
||||
SMB_transs2_time SAMBA:4:157
|
||||
SMB_findclose SAMBA:4:158
|
||||
SMB_findclose_time SAMBA:4:159
|
||||
SMB_findNclose SAMBA:4:160
|
||||
SMB_findNclose_time SAMBA:4:161
|
||||
SMB_tcon SAMBA:4:162
|
||||
SMB_tcon_time SAMBA:4:163
|
||||
SMB_tdis SAMBA:4:164
|
||||
SMB_tdis_time SAMBA:4:165
|
||||
SMB_negprot SAMBA:4:166
|
||||
SMB_negprot_time SAMBA:4:167
|
||||
SMB_sessetupX SAMBA:4:168
|
||||
SMB_sessetupX_time SAMBA:4:169
|
||||
SMB_ulogoffX SAMBA:4:170
|
||||
SMB_ulogoffX_time SAMBA:4:171
|
||||
SMB_tconX SAMBA:4:172
|
||||
SMB_tconX_time SAMBA:4:173
|
||||
SMB_dskattr SAMBA:4:174
|
||||
SMB_dskattr_time SAMBA:4:175
|
||||
SMB_search SAMBA:4:176
|
||||
SMB_search_time SAMBA:4:177
|
||||
SMB_ffirst SAMBA:4:178
|
||||
SMB_ffirst_time SAMBA:4:179
|
||||
SMB_funique SAMBA:4:180
|
||||
SMB_funique_time SAMBA:4:181
|
||||
SMB_fclose SAMBA:4:182
|
||||
SMB_fclose_time SAMBA:4:183
|
||||
SMB_NTtrans SAMBA:4:184
|
||||
SMB_NTtrans_time SAMBA:4:185
|
||||
SMB_NTtranss SAMBA:4:186
|
||||
SMB_NTtranss_time SAMBA:4:187
|
||||
SMB_NTcreateX SAMBA:4:188
|
||||
SMB_NTcreateX_time SAMBA:4:189
|
||||
SMB_NTcancel SAMBA:4:190
|
||||
SMB_NTcancel_time SAMBA:4:191
|
||||
SMB_splopen SAMBA:4:192
|
||||
SMB_splopen_time SAMBA:4:193
|
||||
SMB_splwrite SAMBA:4:194
|
||||
SMB_splwrite_time SAMBA:4:195
|
||||
SMB_splclose SAMBA:4:196
|
||||
SMB_splclose_time SAMBA:4:197
|
||||
SMB_splretq SAMBA:4:198
|
||||
SMB_splretq_time SAMBA:4:199
|
||||
SMB_sends SAMBA:4:200
|
||||
SMB_sends_time SAMBA:4:201
|
||||
SMB_sendb SAMBA:4:202
|
||||
SMB_sendb_time SAMBA:4:203
|
||||
SMB_fwdname SAMBA:4:204
|
||||
SMB_fwdname_time SAMBA:4:205
|
||||
SMB_cancelf SAMBA:4:206
|
||||
SMB_cancelf_time SAMBA:4:207
|
||||
SMB_getmach SAMBA:4:208
|
||||
SMB_getmach_time SAMBA:4:209
|
||||
SMB_sendstrt SAMBA:4:210
|
||||
SMB_sendstrt_time SAMBA:4:211
|
||||
SMB_sendend SAMBA:4:212
|
||||
SMB_sendend_time SAMBA:4:213
|
||||
SMB_sendtxt SAMBA:4:214
|
||||
SMB_sendtxt_time SAMBA:4:215
|
||||
SMB_invalid SAMBA:4:216
|
||||
SMB_invalid_time SAMBA:4:217
|
||||
|
||||
PATHWORK_setdir SAMBA:4:218
|
||||
PATHWORK_setdir_time SAMBA:4:219
|
||||
|
||||
TRANS2_open SAMBA:4:220
|
||||
TRANS2_open_time SAMBA:4:221
|
||||
TRANS2_ffirst SAMBA:4:222
|
||||
TRANS2_ffirst_time SAMBA:4:223
|
||||
TRANS2_fnext SAMBA:4:224
|
||||
TRANS2_fnext_time SAMBA:4:225
|
||||
TRANS2_qfsinfo SAMBA:4:226
|
||||
TRANS2_qfsinfo_time SAMBA:4:227
|
||||
TRANS2_sfsinfo SAMBA:4:228
|
||||
TRANS2_sfsinfo_time SAMBA:4:229
|
||||
TRANS2_qpathinfo SAMBA:4:230
|
||||
TRANS2_qpathinfo_time SAMBA:4:231
|
||||
TRANS2_spathinfo SAMBA:4:232
|
||||
TRANS2_spathinfo_time SAMBA:4:233
|
||||
TRANS2_qfileinfo SAMBA:4:234
|
||||
TRANS2_qfileinfo_time SAMBA:4:235
|
||||
TRANS2_sfileinfo SAMBA:4:236
|
||||
TRANS2_sfileinfo_time SAMBA:4:237
|
||||
TRANS2_fsctl SAMBA:4:238
|
||||
TRANS2_fsctl_time SAMBA:4:239
|
||||
TRANS2_ioctl SAMBA:4:240
|
||||
TRANS2_ioctl_time SAMBA:4:241
|
||||
TRANS2_fnotifyfirst SAMBA:4:242
|
||||
TRANS2_fnotifyfirst_time SAMBA:4:243
|
||||
TRANS2_fnotifynext SAMBA:4:244
|
||||
TRANS2_fnotifynext_time SAMBA:4:245
|
||||
TRANS2_mkdir SAMBA:4:246
|
||||
TRANS2_mkdir_time SAMBA:4:247
|
||||
TRANS2_sessetup SAMBA:4:248
|
||||
TRANS2_sessetup_time SAMBA:4:249
|
||||
TRANS2_getDFSref SAMBA:4:250
|
||||
TRANS2_getDFSref_time SAMBA:4:251
|
||||
TRANS2_rptDFSinconsist SAMBA:4:252
|
||||
TRANS2_rptDFSinconsist_time SAMBA:4:253
|
||||
|
||||
NTTRANS_create SAMBA:4:254
|
||||
NTTRANS_create_time SAMBA:4:255
|
||||
NTTRANS_ioctl SAMBA:4:256
|
||||
NTTRANS_ioctl_time SAMBA:4:257
|
||||
NTTRANS_setsecdesc SAMBA:4:258
|
||||
NTTRANS_setsecdesc_time SAMBA:4:259
|
||||
NTTRANS_notifychange SAMBA:4:260
|
||||
NTTRANS_notifychange_time SAMBA:4:261
|
||||
NTTRANS_rename SAMBA:4:262
|
||||
NTTRANS_rename_time SAMBA:4:263
|
||||
NTTRANS_qsecdesc SAMBA:4:264
|
||||
NTTRANS_qsecdesc_time SAMBA:4:265
|
||||
}
|
10
pcp/root
Normal file
10
pcp/root
Normal file
@ -0,0 +1,10 @@
|
||||
/*
|
||||
* fake "root" for validating the local PMNS subtree
|
||||
*/
|
||||
|
||||
#include "/var/pcp/pmns/stdpmid"
|
||||
|
||||
root { samba }
|
||||
|
||||
#include "pmns"
|
||||
|
1772
pcp/samba.c
Normal file
1772
pcp/samba.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user