If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
several of our webapps rely heavily on memcache to help with heavy page builds. getting stats from memcache isn't too hard, but it does normally involve a telnet session. I've included here:
XML template for all items from memcache stats (no graphs right now)
python script to easily pull stats from memcache
RPM for RHEL 5.3+ that edits the zabbix_agentd.conf file with the proper UserParameters and sets up a man page for the app along with the python script itself in /usr/bin.
I couldn't upload an XML file to the Templates portion of the wiki for some reason.
Good day!
this parameters in zabbix_agentd.conf with this tempates doesn't work
error message in zabbix server log
Item [my.server.com:memcache[bytes]] error: Not supported by Zabbix Agent
Item [my.server.com:memcache[bytes_read]] error: Not supported by Zabbix Agent
Originally posted by tberton
Add the following UserParameter (and modify the ip address if neccessary):
Item [my.server.com:memcache[bytes]] error: Not supported by Zabbix Agent
Item [my.server.com:memcache[bytes_read]] error: Not supported by Zabbix Agent
output is
echo -e "stats\nquit" | nc 127.0.0.1 11211
STAT pid 13855
STAT uptime 2775031
STAT time 1276607531
STAT version 1.4.2
STAT pointer_size 64
i forgot:
version of zabbix server/agent
Zabbix Agent v1.8.2 (revision 11211) (29 March 2010)
zabbix server on debian lenny, zabbix agent on ubuntu lucid
i guess that is problem in part of user parameter
| grep grep "STAT $1 "
when in my zabbix_agentd.conf
UserParameter=memcache[*],echo -e "stats\nquit" | nc 127.0.0.1 11211
i test it from zabbix server
zabbix_get -s my.server.com -k memcache[bytes]
i saw in zabbix agent log
Processing request.
Requested [memcache[bytes]]
Before
Run remote command [echo -e "stats\nquit" | nc 127.0.0.1 11211] Result [5] [ERROR]...
Sending back [ERROR]
============================
in other case with
UserParameter=memcache[*],echo -e "stats\nquit" | nc 127.0.0.1 11211 | grep "STAT $1 "
in zabbix agent log appear
Requested [memcache[bytes]]
Before
Sending back [ZBX_NOTSUPPORTED]
I created my own thread before I realized there was a template gallery. Here is my ColdFusion 9 Template.
Monitors the following service states with triggers.
ColdFusion 9 .NET Service
ColdFusion 9 Application Server
ColdFusion 9 ODBC Agent
ColdFusion 9 ODBC Server
ColdFusion 9 Search Server
ColdFusion 9 Solr Service
Comment