I need to monitor services in rhel 8
below are the service......
crond
chronyd
rsyslogd
sshd
sssd
firewalld
Scripts..........
but after run script, output does not come. please help, where is the problem in scripts.
--- Post updated at 07:17 PM ---
I prepared another script. but getting error.
Output-
[root@localhost ~]# sh service1.sh
service1.sh: line 6: [: -eq: unary operator expected
crond is not running
service1.sh: line 6: [: -eq: unary operator expected
chronyd is not running
service1.sh: line 6: [: -eq: unary operator expected
rsyslogd is not running
service1.sh: line 6: [: -eq: unary operator expected
sshd is not running
service1.sh: line 6: [: -eq: unary operator expected
sssd is not running
service1.sh: line 6: [: -eq: unary operator expected
firewalld is not running
Hi All,
I want to disable bunch of unused services on SLES and RHEL to improve the performance. Since we have more than 100 servers to disable services, I want to do with some script. Any one can give me an idea how to write a script to disable services. Thanks (1 Reply)
Guy's
What the exact steps to mention for example this script /usr/start/start.sh
to be as start up script , I want it to be automatically started when I reboot the server . (8 Replies)
Hi Guys,
I need bash script to restart the service.
1. Disable the service called SASM
svcadm disable sasm
2. if service went to maintenance mode then it shuld clear it with below command
svcadm clear sasm
3.or else it should restart the mysql service
/etc/init.d/mysql stop... (1 Reply)
I had a doubt if any services need to be restarted if port no in /etc/services in an RHEL setup is changed. For eg, the port no of 443 for SSL may need to be changed.
I hope my query is clear whether any services need to be restarted if port no in /etc/services is changed.
Please revert with... (10 Replies)
Hi,
I just started working on a script. After my research, i found a command which can help me:
AIM: To build a script which starts the services (Services 1) on server 1 automatically whenever its down. And it has a dependency on other service (Service 2) on Server 2.
So my script has to... (4 Replies)
I developed for monitoring the network connections among the branch servers as I given below as script.But I don't know how to monitor the services through network script whether the services is running or not. eg : I want to check the postgres service for all the branch servers through network... (0 Replies)
Hi
I want to write a script for netflow service
because my service doesnt send any packet to netflow walker (server).
Although the service is started but it does not send any packet to server until i restart the service
I want to write a script in order to restart the service... (7 Replies)
Sorry if this is the wrong forum
Searching for Saas Monitor service which monitor my servers which are sitting in different providers .
This monitor tool will take as less CPU as possible , and will send info about the server to main Dashboard.
The info I need is CPU / RAM / my servers status (... (1 Reply)
Hi all,
on our application server we have the following script that monitor the status of the website, my problem here is that i have edite the retries from 3 to 5,
and the timewait to 120 second,
so the script should check 5 times every 2 minutes, and if the fifth check fails it must restart... (0 Replies)
Discussion started by: charli1
0 Replies
LEARN ABOUT CENTOS
kvno
KVNO(1) MIT Kerberos KVNO(1)NAME
kvno - print key version numbers of Kerberos principals
SYNOPSIS
kvno [-c ccache] [-e etype] [-q] [-h] [-P] [-S sname] [-U for_user] service1 service2 ...
DESCRIPTION
kvno acquires a service ticket for the specified Kerberos principals and prints out the key version numbers of each.
OPTIONS -c ccache
Specifies the name of a credentials cache to use (if not the default)
-e etype
Specifies the enctype which will be requested for the session key of all the services named on the command line. This is useful in
certain backward compatibility situations.
-q Suppress printing output when successful. If a service ticket cannot be obtained, an error message will still be printed and kvno
will exit with nonzero status.
-h Prints a usage statement and exits.
-P Specifies that the service1 service2 ... arguments are to be treated as services for which credentials should be acquired using
constrained delegation. This option is only valid when used in conjunction with protocol transition.
-S sname
Specifies that the service1 service2 ... arguments are interpreted as hostnames, and the service principals are to be constructed
from those hostnames and the service name sname. The service hostnames will be canonicalized according to the usual rules for con-
structing service principals.
-U for_user
Specifies that protocol transition (S4U2Self) is to be used to acquire a ticket on behalf of for_user. If constrained delegation is
not requested, the service name must match the credentials cache client principal.
ENVIRONMENT
kvno uses the following environment variable:
KRB5CCNAME
Location of the credentials (ticket) cache.
FILES
FILE:/tmp/krb5cc_%{uid}
Default location of the credentials cache
SEE ALSO kinit(1), kdestroy(1)AUTHOR
MIT
COPYRIGHT
1985-2013, MIT
1.11.3KVNO(1)