ChrisDo you have /server-stats enabled in your Apache httpd.conf file? E.g.:Add or uncomment in your file on the server being monitored and reload Apache and you should then get data in Observium.
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1 ::1
</Location>
On Wed, Jan 9, 2013 at 7:56 AM, Lance Raymond <lraymond@weatherflow.com> wrote:
Since the poller showed it responded, I thought so, but I did look on the wiki (http://www.observium.org/wiki/Unix_Agent) and under testing did what it showed;
telnet stats.domain.com 6556
Trying 10.83.11.5...
Connected to ec2-....... amazon.com
Escape character is '^]'.
<<<check_mk>>>
Version: 1.2.0p3
AgentOS: linux
PluginsDirectory: /usr/lib/check_mk_agent/plugins
LocalDirectory: /usr/lib/check_mk_agent/local
AgentDirectory: /etc/check_mk
OnlyFrom:
So that did confirm. The remote host is running Ubuntu 12.04LTS and under /usr/lib/check_mk_agent I have the apache script. I tried to run it locally and had a perl LWP error so added that, now when I run it local I get;
Data fetch failure.
I am not sure if that's normal since it's being run local, or that is where the problem lies.
Tnx
On 1/9/13 2:28 AM, Adam Armstrong wrote:
Observium doesn't hit apache directly. That is done via the agent script.
Is it working?
Lance Raymond <lraymond@weatherflow.com> wrote:
After a successful implement of the mysql module, I now am looking to monitor apache. I will try to give as much on the 1st post as I do now understand how the agents work a bit more (Thanks Adam) so the info and questions are;
Unix-agent is installed, enabled, port is open, and I can hit the server-status from the observium server via curl;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><title>Apache Status</title></head><body><h1>Apache Server Status for stats.domain.com</h1>
<dl><dt>Server Version: Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.4 with Suhosin-Patch</dt><dt>Server Built: Nov 8 2012 21:37:30</dt></dl><hr /><dl><dt>Current Time: Wednesday, 09-Jan-2013 04:00:49 UTC</dt><dt>Restart Time: Tuesday, 08-Jan-2013 20:58:01 UTC</dt><dt>Parent Server Generation: 3</dt><dt>Server uptime: 7 hours 2 minutes 47 seconds</dt><dt>Total accesses: 651 - Total Traffic: 1.7 MB</dt><dt>CPU Usage: u9.48 s1.89 cu0 cs0 - .0448% CPU load</dt><dt>.0257 requests/sec - 71 B/second - 2773 B/request</dt><dt>1 requests currently being processed, 9 idle workers</dt>
Using the poller command to test server;
ubuntu@websvr1:/opt/observium$ ./poller.php -v -h stats.domain.comObservium Poller v0.12.11.3407
Starting polling run:
stats.domain.com 5 linux (unix)Observium UNIX Agent: execution time: 328ms
Processes:Sensors:Using UNIX Agent Uptime (2877622)Uptime: 33 days, 7h 20m 22s
Hardware: Generic x86 64-bit Version: 3.2.0-31-virtual Features: /usr/bin/distro: No such file or directory Serial:IPMI:Processor Intel Xeon E5507 @ 2.27GHz 1%Mempool Physical memory: 79.6%Mempool Virtual memory: 51.63%Mempool Swap space: 0.01%Storage /: 17%Storage /mnt: 0%Polling Netstats: IP TCP UDP ICMP SNMPHR Stats: Processes UsersPolling IP-MIB ipSystemStats ipv4 ipv6Caching Oids: ifEntry ifXEntry dot3StatsDuplexStatusvalidvalidPort lo(1) HC HC VLAN == bps(0bps/0bps)bytes(0B/0B)pkts(0pps/0pps)Port eth0(2) HC HC VLAN == bps(1.32kbps/4kbps)bytes(4.83kB/14.6kB)pkts(2.2pps/2.2pps)Checking UCD DiskIO MIB: xvda1 xvdb xvda3
OSPF: Processes: Areas: Ports: Neighbours:
Entity Physical:Applications:agent uptime netstat_ip netstat_ip_frag netstat_tcp netstat_udp netstat_icmp netstat_icmp_info netstat_snmp netstat_snmp_pkt hr_processes hr_users ucd_cpu ucd_swap_io ucd_io ucd_contexts ucd_interrupts ucd_memory ucd_load ipsystemstats_ipv4 ipsystemstats_ipv4_frag ipsystemstats_ipv6 ipsystemstats_ipv6_frag Polled in 4.680 secondsUPDATED!
MySQL: Cell[0/0s] Row[3/0s] Rows[25/0.01s] Column[0/0s] Update[9/0.01s] Insert[5/0.01s] Delete[0/0s]
So, it seems the agent is running, apache is reachable by the server with the server-status, just not sure why the graph page is broken. The main graph's all say Error Drawing Graph, and the scoreboard at the bottom just has a few broken image links.
--
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
--
Chris Stone
AxisInternet, Inc.
www.axint.net
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium