Alex

About

Username
Alex
Joined
Visits
142
Last Active
Roles
Member

Comments

  • Pavel, i edited near string 337, and replase from old script who works with nmon #A# my @ps = grep {/$0(?!grep|sh -c)/} `ps -ef 2>>$error_log`; my @ps = `ps -ef 2>>$error_log|grep $0|grep -v grep|grep -v "sh -c"`; And it is work!
  • Hi, Pavel. Ok, but some correction, you use out not "free", but "cat /proc/meminfo" as: testdb3:~ # free total used free shared buffers cachedMem: 528313444 519418200 8895244 168357348 1491496 494083384-/+ buffers/cache: 23843320 504470124Swap: 12585980 0 12585980 testdb3:~ # cat /proc/meminfoMemTotal: 528313444 kBMemFree:…
  • Hi, Pavel. Why? Because can do it. You say it may do: (https://www.ibm.com/developerworks/community/forums/html/topic?id=4b21495b-cf50-47c0-9144-da7b32b8f8f5) yes, you can use only NMON (NMON is independent on the OS agent, both just use the same script/program). In fact you have 3 independent options: 1. NMON only…
  • [root@stor2rrd /]# ls -l /home/stor2rrd/stor2rrd/data/SW3700_bkp_main/config.json-rw-r--r-- 1 stor2rrd stor2rrd 27701 Feb 27 12:35 /home/stor2rrd/stor2rrd/data/SW3700_bkp_main/config.json OK, if it not affect on metrics, i can ignore this message.
  • This changes based by article: https://stackoverflow.com/questions/41224738/how-to-calculate-system-memory-usage-from-proc-meminfo-like-htop
  • testdb3:~ # free total used free shared buffers cachedMem: 528313444 211444856 316868588 158341632 1588816 185538936-/+ buffers/cache: 24317104 503996340Swap: 12585980 0 12585980
  • I update Linux agent to version 6.15 and make changes to calc SharedMemory as Used (like algorithm in Htop program, actual for Oracle RDBMS) [root@stor2rrd 1]# diff /1/lpar2rrd-agent.pl /2/lpar2rrd-agent.pl126c126< my $version = "6.15-0";---> my $version = "6.15-0a";1497a1498,1500> ##add 2 vars> my $pcached = 0;> my…
  • OK. Small guide to use AD user, if you use XenServer with RBAC & AD. 1. Make changes in file /bin/xen-xapi2json.pl (see up) 2. Make AD user lpar2rrd, add his to XenServer, add him role "pool-admin" 3. Exchange SSH key from lpar2rrd user to root user on XenServer [root@stor2rrd ~]# su - lpar2rrd[lpar2rrd@stor2rrd ~]$ cd…
  • Ok, if i add in Lpar2RRD username as "DOMAIN\username" need make changes in ./bin/xen-xapi2json.pl FROM: if ( $hosts{$host}{auth_ssh} ) { my $ssh_key = $hosts{$host}{ssh_key_id}; ssh2json( $hostname, $username, $ssh_key ); } TO if ( $hosts{$host}{auth_ssh} ) { my $ssh_key = $hosts{$host}{ssh_key_id}; ##A# #ssh2json(…
  • Hi, David. I have some info. Command to login by SSH with AD user: # ssh DOMAIN\\username@hostname If in RBAC set role "pool-admin", to SSH config file on XenServer /etc/pam.d/sshd added (auto) string: account sufficient pam_succeed_if.so user = DOMAIN\username and then login by SSH to !!! root session: [lpar2rrd@stor2rrd…
  • I make as you ask. No result. [root@dl580-s1-l1 etc]# xe subject-list... uuid ( RO) : 9884ac6b-f44d-0bc7-0527-82e2d85bfb6b subject-identifier ( RO): S-1-5-21-1202660629-776561741-725345543-26871 other-config (MRO): subject-name: DOMAIN\lpar2rrd; subject-upn: lpar2rrd@DOMAIN.SRV; subject-uid: 293628151; subject-gid:…
  • David, you whant to logon user lpar2rrd into root session on Xen host? Go to XenServer from Lpar2RRD by SSH keys for root user: [root@stor2rrd ~]# ssh dl580-s1-l1Last login: Thu Jul 18 14:37:43 2019 from stor2rrd.domen.srv Try switch to lpar2ddr user from AD linux like: [root@dl580-s1-l1 ~]# su - lpar2rrdsu: user lpar2rrd…
  • Hi, David. 1) i make AD user "lpar2rrd" PS C:\Users\User.Domen> Get-ADUSer lpar2rrd -properties memberof DistinguishedName : CN=lpar2rrd,OU=TestHiddenOU,DC=domen,DC=srvEnabled : TrueGivenName : lpar2rrdMemberOf : {}Name : lpar2rrdObjectClass : user... UserPrincipalName : lpar2rrd@domen.srv 2) i connect to XenServer by CLI,…
  • Yes, as you say. If used RBAC only root user allowed to access the XenServer API. If used AD, any others users is only from external directory services (AD). So, if i make user lpar2rrd in my AD, add it in RBAC and assign role ReadOnly, this OK. But, for this user (lpar2rrd from AD) not posible manipulate RSA keys for SSH!…
  • P.S. about NMon part script of LPAR Agent. If my application on the server (SLES12) use SharedMemory, NMon too incorect display used memory. And NMon have very small parameters to right calculate UsedMemory. In my case, i need use Active parameter, as UsedMemory: ( undef, undef, $size, undef, undef, undef, $free, undef,…
  • Hi, Pavel. This topic i made when see, what LPAR Agent incorrect display used memory on my server. On my server used Oracle RDBMS without HugePages, is used SharedMemory. But current algorithm LPAR Agent do not use Shmem in calculation. Why? I search some articles, and find, what any programm calc used memory by any…
  • Pavel, not for a long time of you, see this articles: http://calimeroteknik.free.fr/blag/?article20/really-used-memory-on-gnu-linux http://http//nopipi.hatenablog.com/entry/2015/09/13/181026 (translate to you lang) Unfortunately, NMON have small of data about memory, and i need modify to $in_use_work value "active". (In my…
  • Hi, Pavel Yes, if it posible, i want RPM with fix. For easy update, i have many Linux servers. Thanks!
  • P.S. Need correct code: if ( $line =~ m/^Shmem/ ) { ( undef, $shared ) = split( / +/, $line ); TO if ( $line =~ m/^Shmem:/ ) { ( undef, $shared ) = split( / +/, $line ); Because in /proc/meminfo has: Shmem ShmemHugePagesShmemPmdMapped Our need only "Shmem:"
  • Why i need do this? In my server 1TiB RAM and many Oracle instances, and his can't use only 31GiB memory <span>:smile:</span> I compare output # cat /proc/meminfo; free and read article (link at top). Can you make changes in Agent Lapr2RRD in future verions?
  • OK, i make this changes and see result as HTOP (maked changes above section ###Linux memory###): testdb:/opt/lpar2rrd-agent # cat lpar2rrd-agent.pl | grep -A 10 "#A#" #A# add 2 vars my $pcached = 0; my $sreclaim = 0; -- #A# add if{} if ( $line =~ m/^SReclaimable:/ ) { ( undef, $sreclaim ) = split( / +/, $line ); } if (…
  • Please, one a moment. I see, you scan output /proc/meminfo string by sting. I need time to make algorinthm with this specific.
  • Yes, Pavel. Oldest is killed OS, but born new. Just for info. Nagios spam me warning mail every 3-5 minutes. Somthing changed in new version.
  • [root@stor2rrd /]# dateMon Mar 25 15:26:39 MSK 2019[root@stor2rrd /]# ps -ef| grep defunctstor2rrd 520 1874 0 15:26 ? 00:00:00 [ssh] <defunct>stor2rrd 531 1650 0 15:26 ? 00:00:00 [ssh] <defunct>stor2rrd 551 1586 0 15:26 ? 00:00:00 [ssh] <defunct>root 574 28752 0 15:26 pts/3 00:00:00 grep --color=auto defunctstor2rrd 28902…
  • This server with OS CentOS 7.6 is virtual. I add vProcessors (x2, summary 8 vCPU), but it not effect.
  • Yes, this patch is work. No any messages in error.log for 7-mode NetApp. Thank you.
  • So, it is resolve upper errors, but add new error string: Use of uninitialized value in subtraction (-) at /home/stor2rrd/stor2rrd/bin/naperf.pl line 782.
  • Sorry, version Stor2RRD is 2.52
Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!