Search Results

Search: Posts Made By: yash_message
1,936
Posted By yash_message
Is there any idea ? how to get the notification.
Is there any idea ? how to get the notification.
1,936
Posted By yash_message
This is rhel 7.7
This is rhel 7.7
1,936
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 ~]#...
2,535
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...
3,230
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?
3,230
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...
3,230
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...
3,230
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.
3,230
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...
3,230
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...
3,087
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'...
3,087
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 -"
...
3,349
Posted By yash_message
Thanks Neo for your time.
Thanks Neo for your time.
3,349
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.
...
3,349
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?
1,919
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...
1,807
Posted By yash_message
Welldone sir, thank you so much :-). you are...
Welldone sir, thank you so much :-).
you are great.
1,807
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...
1,807
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...
1,807
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 ...
1,807
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.
&...
3,170
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.
3,169
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...
2,768
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....
2,360
Posted By yash_message
Still looking suggestion.
Still looking suggestion.
Showing results 1 to 25 of 39

 

Featured Tech Videos

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