Sponsored Content
Top Forums Web Development Website RTO. What monitoring can I setup and how to track issue? Post 303019063 by bakunin on Friday 22nd of June 2018 07:13:12 AM
Old 06-22-2018
Quote:
Originally Posted by solaris_1977
2- How do I track, at what level it is failing ? I checked AWS instance and it was always up and no downtime on that Centos linux.
I don't think it is a matter of tools but a matter of organised debugging: let us first consider what could have gone wrong:

1) the server('s OS) - you ruled that out

2) the application software, i.e. Apache and/or whatever works on top of it.

3) the network connection of your server: possible reasons include network congestion, broadcast storms, intermittent hardware outage, ...

4) the connection between you and your server: caching mechanisms like Cloudflare may influence the connectivity until the cache is filled.

This off the top of my head list is probably neither complete nor detailed enough. You are welcome to edit it until it fits your environment. Once you have done that you start ruling out one point or sub-point after the other: for instance the application stack you use could be tested by a client working from within the server automatically and so foregoing the network connections otherwise necessary. Once you have established that you move on to the next point in the list.

Debugging is just the organised application of logic and a few usually rather simple tests once you have properly envisioned how things are supposed to work and what depends on what.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. HP-UX

Issue with setup.hp file for webserver

Hi All, I have an issue in writing the shell script to install a webserver on UNIX system. My shell script look something like this. ------------------------------------------------------------ echo "start of the script" #! /bin/sh cd /home/path echo | setup.hp -is:javaconsole -console... (1 Reply)
Discussion started by: vishalm
1 Replies

2. UNIX for Dummies Questions & Answers

Possible to track FTP user last login? Last and Finger don't track them.

Like the topic says, does anyone know if it is possible to check to see when an FTP only user has logged in? Because the shell is /bin/false and they are only using FTP to access the system doing a "finger" or "last" it says they have never logged in. Is there a way to see when ftp users log in... (1 Reply)
Discussion started by: LordJezo
1 Replies

3. Red Hat

printer setup issue

I am a linux newbie who is in over his head.... We have a 3rd party company hosting our servers and they are running RHEL 4 (actaully is is OEL, but Oracle just rebranded RH) they installed a bunch of printers on the servers there. Our application prints but the formatt is off. When we had the... (0 Replies)
Discussion started by: jayjabour
0 Replies

4. Shell Programming and Scripting

Monitoring script issue

I written following script to monitor two log files. First piece of code working fine, but piece is failing with followin error. $ sh Log_Monitoring.sh Database failed to written 4 Database failed to written expr: syntax error ================= clear sh=`date | awk '{print $4}' | cut... (2 Replies)
Discussion started by: paventhan
2 Replies

5. Shell Programming and Scripting

Snmp Process Monitoring Issue

Can someone please explain to me how come snmpwalk doesn't always find a running process that's on a remote server? I prefer to use snmp to monitor processes remotely because this doesn't require me to put a script on that remote box. but the problem is, there are times that my snmp command... (2 Replies)
Discussion started by: SkySmart
2 Replies

6. Solaris

Monitoring issue

can any one help me in this issue iscsiadm: ISCSI_AUTH_GET failed, errno: 5 Monitored File: /var/adm/messages (1 Reply)
Discussion started by: saripudi1985
1 Replies

7. Programming

[SOLVED] DDD Newbie Setup Issue

(Ubuntu 11.04) I've just installed the debugger DDD, and I'm literally testing a 'hello world' program, but whilst breakpoints are being hit, the (next to) execute line is not highlighted, and when I click 'Next' the code runs to the end? (7 Replies)
Discussion started by: silas2
7 Replies

8. Solaris

Public private key setup issue in Solaris 10

Hi i am using solaris 10.I am trying to setup a public/private key but it is not working.Appreciate your repsonse on it There are two servers DB1 server and DB2 server. 1)I have generated public/private key using below step on both servers. ssh-keygen -t rsa 2)From DB1 server moved the... (6 Replies)
Discussion started by: muraliinfy04
6 Replies

9. Linux

Check_esx_host_vmfs plugin issue while monitoring ESXi DS

Hello, I setup a check_esx_host_vmfs plugin for monitoring datastore status on ESXi server. But on configuring this plugin, this is working fine but it displays "WARNING" status on UI of Nagios every time. Currently my datastore size is 926.50 GB and right now free space available is 570.60 GB... (2 Replies)
Discussion started by: sunnysthakur
2 Replies

10. UNIX for Advanced & Expert Users

Issue setup Transparent proxy and Gateway using Squid on CentOS 7

Hello, We are migrating our gateways from CentOS 6 to CentOS 7 and for setting up a transparent proxy using squid and Firewalld i am using below configuration. #Firewalld configurations firewall-cmd --permanent --zone=public --add-forward-port=port=80:proto=tcp:toport=3128:toaddr=LAN_IP... (4 Replies)
Discussion started by: sunnysthakur
4 Replies
socket(n)						       Tcl Built-In Commands							 socket(n)

__________________________________________________________________________________________________________________________________________________

NAME
socket - Open a TCP network connection SYNOPSIS
socket ?options? host port socket -server command ?options? port _________________________________________________________________ DESCRIPTION
This command opens a network socket and returns a channel identifier that may be used in future invocations of commands like read, puts and flush. At present only the TCP network protocol is supported; future releases may include support for additional protocols. The socket command may be used to open either the client or server side of a connection, depending on whether the -server switch is specified. CLIENT SOCKETS
If the -server option is not specified, then the client side of a connection is opened and the command returns a channel identifier that can be used for both reading and writing. Port and host specify a port to connect to; there must be a server accepting connections on this port. Port is an integer port number and host is either a domain-style name such as www.sunlabs.com or a numerical IP address such as 127.0.0.1. Use localhost to refer to the host on which the command is invoked. The following options may also be present before host to specify additional information about the connection: -myaddr addr Addr gives the domain-style name or numerical IP address of the client-side network interface to use for the connection. This option may be useful if the client machine has multiple network interfaces. If the option is omitted then the client-side interface will be chosen by the system software. -myport port Port specifies an integer port number to use for the client's side of the connection. If this option is omitted, the client's port number will be chosen at random by the system software. -async The -async option will cause the client socket to be connected asynchronously. This means that the socket will be created immedi- ately but may not yet be connected to the server, when the call to socket returns. When a gets or flush is done on the socket before the connection attempt succeeds or fails, if the socket is in blocking mode, the operation will wait until the connection is com- pleted or fails. If the socket is in nonblocking mode and a gets or flush is done on the socket before the connection attempt suc- ceeds or fails, the operation returns immediately and fblocked on the socket returns 1. SERVER SOCKETS
If the -server option is specified then the new socket will be a server for the port given by port. Tcl will automatically accept connec- tions to the given port. For each connection Tcl will create a new channel that may be used to communicate with the client. Tcl then invokes command with three additional arguments: the name of the new channel, the address, in network address notation, of the client's host, and the client's port number. The following additional option may also be specified before host: -myaddr addr Addr gives the domain-style name or numerical IP address of the server-side network interface to use for the connection. This option may be useful if the server machine has multiple network interfaces. If the option is omitted then the server socket is bound to the special address INADDR_ANY so that it can accept connections from any interface. Server channels cannot be used for input or output; their sole use is to accept new client connections. The channels created for each incoming client connection are opened for input and output. Closing the server channel shuts down the server so that no new connections will be accepted; however, existing connections will be unaffected. Server sockets depend on the Tcl event mechanism to find out when new connections are opened. If the application doesn't enter the event loop, for example by invoking the vwait command or calling the C procedure Tcl_DoOneEvent, then no connections will be accepted. CONFIGURATION OPTIONS
The fconfigure command can be used to query several readonly configuration options for socket channels: | -error | This option gets the current error status of the given socket. This is useful when you need to determine if an asynchronous connect | operation succeeded. If there was an error, the error message is returned. If there was no error, an empty string is returned. -sockname This option returns a list of three elements, the address, the host name and the port number for the socket. If the host name cannot be computed, the second element is identical to the address, the first element of the list. -peername This option is not supported by server sockets. For client and accepted sockets, this option returns a list of three elements; these are the address, the host name and the port to which the peer socket is connected or bound. If the host name cannot be computed, the second element of the list is identical to the address, its first element. SEE ALSO
flush(n), open(n), read(n) KEYWORDS
bind, channel, connection, domain name, host, network address, socket, tcp Tcl 8.0 socket(n)
All times are GMT -4. The time now is 01:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy