HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: how to monitor the vsftpd and apache servers
Operating System - Linux
1830935
Members
2272
Online
110017
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 06:24 AM
12-22-2004 06:24 AM
Dear Gurus
how can I check, that how many users are connected to vsftpd and apache server, and what they(users/client) did ? i.e. in short how can i monitor my servers ?
Thanks in advance
Regards
Maaz
how can I check, that how many users are connected to vsftpd and apache server, and what they(users/client) did ? i.e. in short how can i monitor my servers ?
Thanks in advance
Regards
Maaz
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 08:39 AM
12-22-2004 08:39 AM
Solution
service httpd status
rc=$?
if [ $rc -ne 0 ]
then
echo "httpd server is down"
service httpd start
fi
For users:
httpd_users=$(ps -ef | grep httpd | wc -l)
# This will get you a rough count of how many users are on, though you may need to manipulate the numbers based on how many spare processes you allocate to the apache server in httpd.conf
Same thing would probably work for ftpd
SEP
rc=$?
if [ $rc -ne 0 ]
then
echo "httpd server is down"
service httpd start
fi
For users:
httpd_users=$(ps -ef | grep httpd | wc -l)
# This will get you a rough count of how many users are on, though you may need to manipulate the numbers based on how many spare processes you allocate to the apache server in httpd.conf
Same thing would probably work for ftpd
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 05:26 PM
12-22-2004 05:26 PM
Re: how to monitor the vsftpd and apache servers
Hi,
for more detailed info about what apache is doing - read about apache module called server-status in apache manual.
for more detailed info about what apache is doing - read about apache module called server-status in apache manual.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2004 07:24 PM
12-22-2004 07:24 PM
Re: how to monitor the vsftpd and apache servers
Simply:
#ps -ef | grep httpd
#ps -ef | grep vsftp
Regards.
#ps -ef | grep httpd
#ps -ef | grep vsftp
Regards.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP