Apache & nfs status from c++ application


 
Thread Tools Search this Thread
Top Forums Programming Apache & nfs status from c++ application
# 1  
Old 12-13-2009
Apache & nfs status from c++ application

Hello guys,

I have just started building a high-available site using ubuntu server 9.10. I am using moodle. The thing is that i want to write an application using curses, to show the status of the apache servers, mysql servers and the nfs server. I can check the mysql from the c api, but how can i check the status of apache and nfs?

Ideas are very much appreciated.
# 2  
Old 12-13-2009
what "status" do you want to know about apache? Is it running? Is it running an functional, etc..? If you just want to see if it is up you could check the httpd.pid file and make sure it exists using kill(pid,0). you could send a HTTP request to the server-status page and parse that.

mod_status - Apache HTTP Server

for NFS - what do you want to know? You could perform a read/write test. create a file with certain pattern(0101...) and then read it back. keep track of timings etc..

just a thought.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to see the status of all the ftp put & get files logs and curent ftp transfer status ?

How to see the status of all the ftp put & get files logs and curent ftp transfer status if any active ftp running in the background ? (2 Replies)
Discussion started by: i4ismail
2 Replies

2. Shell Programming and Scripting

Display status of instances in apache - Where to start

Hello, I know this is not a simple question so I just need to know where to start for below project: I am running under Ubuntu 18.04 What I'd like to see in apache page is to display status of particular process pids. ps aux | grep keywords.txt keywords.txt word1 word2 word3 word4... (9 Replies)
Discussion started by: baris35
9 Replies

3. Shell Programming and Scripting

Manipulate application status with awk

Hello Friends, I am stuck with a silly (maybe simple) awk issue. I need to check some applications status and print to a file.. my application "rfe" status is like the following. I need to check each instance status for the following 4 rows.. sscm@SSCM-SFE1:~$ svcs -a | grep -iw rfe... (4 Replies)
Discussion started by: EAGL€
4 Replies

4. Red Hat

nfs_stat_to_errno: bad nfs status return value: 88

Hi, I'm getting this message from my 64bit Redhat 5.5 NFSv3 clients. They are mounting an Oracle 7110 Array that is exporting the NFS shares. nfs_stat_to_errno: bad nfs status return value: 88 As the 7110 is a Solaris/ZFS array I've traced the errno 88 to be an "Illegal Byte Sequence" by... (2 Replies)
Discussion started by: general_lee
2 Replies

5. Web Development

Apache mod status buggy?

My problem is whenever I run mod status to capture the amount of byte count served I am getting 100+ gig of byte count! in 10 minutes! But when I try to filter the apache log and count the byte count served in the same time stamp within 12 hours, it computes to less than 103 MB only Just an... (0 Replies)
Discussion started by: 3rr0r_3rr0r
0 Replies

6. UNIX for Dummies Questions & Answers

Application & Virtual hosts in Apache

Folks; I need help knowing how to add an application to existing Virtual host on Apache. here's the details: I have a virtual host file (Based on IP address) for Apache and is configured to run application inside it. How can i add another application to the same virtual host based on the same IP... (0 Replies)
Discussion started by: moe2266
0 Replies

7. Solaris

create application using apache On solaris

dears iam new in solaris i install solaris on my pc can you help me in steps how can i create application using apache on solaris (3 Replies)
Discussion started by: murad.jaber
3 Replies

8. UNIX for Dummies Questions & Answers

PHP & Apache & MySQL install how-to ?

how do i install php & mysql with apache on suse linux ??? apache was installed and configured when i installed linux. all its files are in different folders. e.g http files in usr/local/httpd/htdocs/ and its configs are in etc/httpd/ so how do i install php and get it to work with apache and... (4 Replies)
Discussion started by: perleo
4 Replies

9. UNIX for Advanced & Expert Users

Apache /server-status

HI, Where is the script for /server-status handler located? Can i change code of the script somehow? Thank you all (3 Replies)
Discussion started by: solvman
3 Replies
Login or Register to Ask a Question