So if you know the PID of a particular process you can get information about it. Each subdirectory of /proc is the PID of a running process. You can't do a check on the "Process Name" with a wildcard to skip over minor differences like that. Is it possible to pass input to a running service or daemon On Linux, all running processes have a special directory under /proc containing information and hooks into the process. Issue the command: DB2DIR/instance/db2ilist where DB2DIR represents the location where the DB2 copy is installed. Determine which instances are associated with the DB2 copy. The limitations here are that (say) you end up monitoring "nginx-1.12.1", because that's the binary name - if you do an upgrade, all your monitoring will erroneously break. Procedure To stop all DB2 processes, perform the following steps: Log on as root. You can use the whole outputĮg: Process Name: "PassengerAgent", Command Line Filter: "Passenger watchdog" Monit conducts automatic maintenance and. "Command Line Filter" can be the changed name (as seen in 'ps -ef'). monit is a utility for managing and monitoring processes, files, directories and filesystems on a Unix system. This monitoring of hot processes can also be enabled or disabled based on certain criterias or from the command line on the fly. the one derived from the binary that was run to create it) "Process Name" must be the 'ps -ae' name of the process (ie. In the Process Monitor (Component Monitor): whoami command : Find out who you are currently logged in as on Linux. who command : Display information about Linux users who are currently logged in. The script must be located in /var/prtg/scripts Now that script can be run using the SSH Script sensor. To test the mailx command, write the email’s content, then press Ctrl D, which will display an EOT (End of Transmission) message. How to show current logged in users in Linux w command : Show who is logged on and what they are doing on Linux. Yes as long as you can put the according shell script to check the status of that service on the machine you wish to monitor. You don’t have to be an expert in Linux to perform a mailx test, and it’s a simple process. It turns out you can monitor this quite effectively. Users of Linux are required to use the command line mailx to send emails. but this is what I'd like to be able to use:ġ19503 ? Sl 204:07 sidekiq 4.2.7 myapp ġ19993 ? Ss 0:00 nginx: master process /usr/lib64/passenger/support-binaries/nginx-1.12.1 -c /tmp/p0zs/nf -p /tmp/p0zsġ20004 ? Ss 0:00 /usr/lib64/passenger/support-binaries/PassengerAgent temp-dir-toucher /tmp/p0zs -cleanup -daemonize -pid-file /tmp/p0zs/temp_ġ20070 ? Sl 48:33 Passenger RubyApp: /home/myapp/myapp It seems that SW uses the output of something like " ps -ae" to get process names, but in my case, the processes have changed their names to far more descriptive ones (which you can see in " ps -ax"). I'm trying to monitor a bunch of processes on a Linux machine with the agent installed (Centos 7, if it matters). I've just spent an hour or two looking into this, so thought I'd share for anyone else similarly stuck.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |