Search Results

Search: Posts Made By: yash_message
3,736
Posted By yash_message
Is there any idea ? how to get the notification.
Is there any idea ? how to get the notification.
3,736
Posted By yash_message
This is rhel 7.7
This is rhel 7.7
3,736
Posted By yash_message
Need to get mail , in advance of approx one week if password suppose to be expire
I am preparing script , if user's password needs to be expire in one week. script is running, but gives output in 0.
please help, if any one worked on it..

User details.

[root@localhost ~]#...
5,201
Posted By yash_message
Help to prepare script for monitor services
I need to monitor services in rhel 8
below are the service......
crond
chronyd
rsyslogd
sshd
sssd
firewalld

Scripts..........
#!/bin/bash
for i in "${SERVICES[@]}"
do
###CHECK...
9,395
Posted By yash_message
Wounderfull Neo. thanks for suggestion. issue is...
Wounderfull Neo. thanks for suggestion. issue is resolved. now able to get mail.

Thank you so much sir. how to makr this case as resolve?
9,395
Posted By yash_message
What I understand from the script, cron does run...
What I understand from the script, cron does run below part(bold part). cron has having problem to run for loop. that have to check.

#!/bin/bash
ls -altrh /syslog --time-style=+%D | grep $(date...
9,395
Posted By yash_message
Neo and vbe thanks for reply. cron is...
Neo and vbe thanks for reply.

cron is running from root user. below is the syntax. and the script is giving correct output if runs manual.

*/2 * * * * /bin/sh...
9,395
Posted By yash_message
cront is running. and getting mail also. but...
cront is running. and getting mail also. but does not output content in mail body.
9,395
Posted By yash_message
getting result by cron .........it does not paste...
getting result by cron .........it does not paste the content.

From: root [mailto:root@abc.com]
Sent: den 12 februari 2020 09:56
To: abc@abc.com
Subject: Syslog-Status------Date-Wednesday...
9,395
Posted By yash_message
Unable to get output in mail body after running cron
I have prepared script to get the file details everyday and send mail. while running bash script manually , it sends output in body . but does not send through cron.
cron sends only subject . I...
8,757
Posted By yash_message
Tried, getting same permission error ...
Tried, getting same permission error

[abc@xyz ~]$ sudo su -c systemctl restart crond
[sudo] password for deepak:
Sorry, user abc is not allowed to execute '/bin/su -c systemctl restart crond'...
8,757
Posted By yash_message
How to run root level command , if user has "su -" permission in sudoers provided?
I am looking t run root level command on multiple servers, but all servers have only "su - " permission available in sudoers.
please help me if any way that I can run command using help of "su -"
...
6,453
Posted By yash_message
Thanks Neo for your time.
Thanks Neo for your time.
6,453
Posted By yash_message
Thanks Neo for the reply and sharing url. I...
Thanks Neo for the reply and sharing url.
I have installed all the packages of cockpit , notification icon does not show in poratl. is there any thing special have to do for notification.
...
6,453
Posted By yash_message
How to configure notification in cockpit?
I have installed cockpit in rhel 8 machine, I need to configure notification alert for file system, services(if any stop), network outage.

any one have idea, how can do that?
3,855
Posted By yash_message
How to find particular file-name in file and get result in table in mail?
We have 100 linux servers, All send logs to both centralize server(server1 and serverb).
all send logs every day and stores in /syslog folder with hostname.log file.
I need to prepare script to...
4,754
Posted By yash_message
Welldone sir, thank you so much :-). you are...
Welldone sir, thank you so much :-).
you are great.
4,754
Posted By yash_message
Actually the actual sentence is ..&@@10.10.10.10...
Actually the actual sentence is ..&@@10.10.10.10

I am looking to change - #&@@10.10.10.10
just add # before the line.


Please wrap all code, files, input & output/errors in CODE tags.
It...
4,754
Posted By yash_message
Thanks for reply,but its replacing wrong. ...
Thanks for reply,but its replacing wrong.

sed 's/^&@@10.10.10.10/#&@@10.10.10.10/' /etc/rsyslog.conf
#&@@10.10.10.10@@10.10.10.10- its replacing wrong


please do wrap your codes into CODE...
4,754
Posted By yash_message
Yes I tried, but below is the result, which is...
Yes I tried, but below is the result, which is not exact result.


1. $ActionExecOnlyWhenPreviousIsSuspended on
command-

sed ...
4,754
Posted By yash_message
How to replace # in particular line?
Hi All,

I need your help to make the changes through sed , put # in starting of the line in /etc/rsyslog.conf file
please help me

$ActionExecOnlyWhenPreviousIsSuspended on
&@@10.10.0.10.
&...
7,306
Posted By yash_message
Snmptrapd configuration on rhel 8
I need to configure snmptrap on rhel 8 server and send trap to nimsoft for file system , memory and cpu load and network diconnection status.
please help me, if any one configured.
6,484
Posted By yash_message
How to replace line through sed , but without uncommented?
I am looking to replace minimum password value in login.defs file. it does change , but it change the commented one also.
please

1. my script to be change 12 in the below line...
sed -i...
6,551
Posted By yash_message
Required cpu , memory, df output in mail for multiple servers
I have prepared script which will collect cpu, memory and df out out for multiple server and send in one mail, but my script only run in one server, and when I send to mail, it shows in text format....
6,246
Posted By yash_message
Still looking suggestion.
Still looking suggestion.
Showing results 1 to 25 of 39

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