Search Results

Search: Posts Made By: Pushpraj
5,559
Posted By Pushpraj
Below is the suders configuration for zabbix...
Below is the suders configuration for zabbix user.

Defaults:zabbix !requiretty
Cmnd_Alias ZABBIX_CMDS = /opt/zabbix/, /opt/zabbix/cassandra.sh, /bin/grep, /usr/bin/nodetool, /usr/bin/awk,...
5,559
Posted By Pushpraj
Actually I can not pass attribute "Memtable...
Actually I can not pass attribute "Memtable switch count" directly in script because there are many such attributes which will be passed to script and script will provide the values through the...
5,559
Posted By Pushpraj
Hi RudiC , I just tried it now. If I run the...
Hi RudiC , I just tried it now. If I run the command as zabbix user by escaping double quotes it ran correctly.
su -l zabbix -s /bin/bash -c "nodetool cfstats cassdb.tests | grep \"Memtable switch...
5,559
Posted By Pushpraj
Thanks RudiC , You are correct. That was typing...
Thanks RudiC , You are correct. That was typing mistake. I have updated post.
5,559
Posted By Pushpraj
Grep command giving different result for different users for same command
Hello,

I am running below command as root user
#nodetool cfstats tests | grep "Memtable switch count"
Memtable switch count: 12

Where as when I try to run same command as another user it...
2,128
Posted By Pushpraj
Thanks, It worked :) :)
Thanks, It worked :) :)
2,128
Posted By Pushpraj
Thanks, code is working fine. Now I am facing...
Thanks, code is working fine. Now I am facing another issue with exact string match.
if my variable value is "apache2,elb1" and the file contains lines like "apache2,elb1" "apache2,elb11"...
2,128
Posted By Pushpraj
Thanks Srini, Its working fine :) I have one...
Thanks Srini, Its working fine :)
I have one query, What needs to be done if I have to send matching strings as a variable to same awk command. My variable would be like mentioned below...
2,128
Posted By Pushpraj
Match columns and print specific field
Hello,

I have data in following format. ...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 07:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy