How to get connections and other data to monitoring? #1167

Open
gazambuja opened this Issue Nov 18, 2014 · 4 comments

Comments

Projects
None yet
3 participants
@gazambuja

Hi, I want to use Zabbix or cacti to monitoring connections requests and other data. How I can get this info using command line (without having the admin interface load in memory)?

Cherokee is SNMP compatible? how I can get this info to monitor this?

Thanks!

@skinkie

This comment has been minimized.

Show comment
Hide comment
@skinkie

skinkie Nov 18, 2014

Member

I am running Zabbix on all our servers. But I didn't ever write a plugin
to monitor cherokee with Zabbix, but it might be trivial to parse the
/about page's json output for such statistics.

Member

skinkie commented Nov 18, 2014

I am running Zabbix on all our servers. But I didn't ever write a plugin
to monitor cherokee with Zabbix, but it might be trivial to parse the
/about page's json output for such statistics.

@gazambuja

This comment has been minimized.

Show comment
Hide comment
@gazambuja

gazambuja Nov 18, 2014

yes, /about/info/js for example... but I need to keep running the admin interface for this?

cherokee-admin -b

From where this page get the info?

yes, /about/info/js for example... but I need to keep running the admin interface for this?

cherokee-admin -b

From where this page get the info?

@skinkie

This comment has been minimized.

Show comment
Hide comment
@skinkie

skinkie Nov 19, 2014

Member

Per default cherokee configures /about on the default virtual host. So if
you would browse to http://yourip/about you should see this page. No admin
has to be started for that. You may limit the source IPs accessing this
page and expose all variables in full. The only downside that I see is
that Zabbix seems to be capable of exporting just one variable per query
(or has this changed?) this would require you to download the page, store
it in for example /dev/shm/cherokee.js with a time-to-live of one
minute and do all requests on the same file.

If you have an idea how to implement something different I am happy to
implement it, but SNMP isn't my goal here ;)

Member

skinkie commented Nov 19, 2014

Per default cherokee configures /about on the default virtual host. So if
you would browse to http://yourip/about you should see this page. No admin
has to be started for that. You may limit the source IPs accessing this
page and expose all variables in full. The only downside that I see is
that Zabbix seems to be capable of exporting just one variable per query
(or has this changed?) this would require you to download the page, store
it in for example /dev/shm/cherokee.js with a time-to-live of one
minute and do all requests on the same file.

If you have an idea how to implement something different I am happy to
implement it, but SNMP isn't my goal here ;)

@gazambuja

This comment has been minimized.

Show comment
Hide comment
@gazambuja

gazambuja Nov 19, 2014

Thanks Skinkie... I think we can make a php or bash script to parse the info and get the output like: var1,var2,var3
Then, in the zabbix, using UserParameter we can import all data...
Something like:
UserParameter=cherokee[*],/home/zabbix/bin/cherokee_monitor $1

See this for Apache example: http://www.zabbix.org/wiki/Docs/howto/apache_monitoring_script#Method_3

Thanks Skinkie... I think we can make a php or bash script to parse the info and get the output like: var1,var2,var3
Then, in the zabbix, using UserParameter we can import all data...
Something like:
UserParameter=cherokee[*],/home/zabbix/bin/cherokee_monitor $1

See this for Apache example: http://www.zabbix.org/wiki/Docs/howto/apache_monitoring_script#Method_3

@Borkason Borkason added the t:question label Nov 19, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment