Zabbix server and agent work fine on remote host reporting (Debian Squeeze), but apache2, swap and a few others don't seem to be returning info. The servers sees the agent and it reports some info correctly (host alive, etc), how do I tweak the agent to see apache2 process is running (and others)?
Ad Widget
Collapse
zabbix agent won't report apache2
Collapse
X
-
Tags: None
-
thanks @jamied66
I guess what I'm trying to understand is HOW zabbix gets it's info. i.e. does it run a perl regex on the agent box, and what is the syntax for constructing such directives? So does net.tcp.service[whatever] uses some perl lib to find out who's listening on port 80 and what the name is? OTOH, does proc.num[apache2] just cat /proc/whatever and return a value? I'd like to experiment with commands. On Nagios nrpe server, you can run whatever command at command line and see if it's working on the agent side as a troubleshooting step. For instance, I get errors saying the remote box has low swap space, how does it query that?Comment
-
If you want to get that deep you should check out the agent source?
It's written in C, not Perl. I've not looked at the bits that perform those types of checks closely in a long time, so I can't help with the technical bits, but you're probably not far off if at all.Comment
Comment