0

I have an ISPConfig server serving php pages with FPM in ondemand mode. On another server with a single fpm pool I keep daemon monitored using the /status URL and work great. In ISPConfig case there are several pools, one for each domain, and the status URL gives information about the single pool. Is there any way to have a singe status URL to keep monitored all the daemon childs? Like number of processes, queue, slow processes... Thanks

3
  • As the pools are running as individual processes, I think this is not possible. But I'd love to know if it is ;-)
    – zhenech
    Aug 2, 2014 at 10:22
  • I hope so ;) Well, there's always the master process swpawning childs, so it should know something about them!
    – Maxxer
    Aug 2, 2014 at 10:24
  • Since I'm running Zabbix I've temporary added two new items with value proc.num[php5-fpm] and proc.mem[php5-fpm,,sum], so at least I know the trend of the active processes
    – Maxxer
    Aug 6, 2014 at 14:18

1 Answer 1

0

There is no way to monitor multiple php-fpm pools with one status URL, but it also doesn't make sense to do that. The only reason for creating more php-fpm pools is to separate different services one from each other, so if one service fails, the other one continues to work. Which is the reason why you should monitor each pool separately. If you don't have different services using php-fpm, then don't create more pools in the first place, just use one pool with more processes.

If you would like Zabbix to detect all php-fpm pools status URLs, you could create a discovery script which would find all status URLs from the php-fpm configuration files and return them to Zabbix, from which Zabbix could automatically create items for each pool you would like to monitor.

1
  • I'm running a busy ispconfig server with 200 sites, indeed it probably doesn't male sense to monitor all polls, just the total process number and the total memory is enough
    – Maxxer
    Nov 7, 2014 at 6:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.