[collectd] multiple Nginx server monitoring issue

SCOTT, Keith (NATIONAL SERVICES SCOTLAND) keith at nhs.net
Fri Nov 11 00:48:13 CET 2016


I know what the problem is now. The "hostname" that is being put into my
influxdb when the nginx stats are being stored is that of the collectd
server. I need to override the hostname that is stored doing something
like the following

<Plugin nginx>
         host "Server-A"
         URL "http://Nginx_Server_A:10987/nginx_status"
</Plugin>

<Plugin nginx>
         host "Server-B"
         URL "http://Nginx_Server_B:10987/nginx_status"
</Plugin>

But when I try this I see the following...

Nov 10 23:28:32 monitoring.ourserver.com collectd[32178]: plugin_load:
plugin "memory" successfully loaded.
Nov 10 23:28:32 monitoring.ourserver.com collectd[32178]: plugin_load:
plugin "network" successfully loaded.
Nov 10 23:28:32 monitoring.ourserver.com collectd[32178]: plugin_load:
plugin "nginx" successfully loaded.
Nov 10 23:28:32 monitoring.ourserver.com collectd[32178]: plugin_load:
plugin "notify_email" successfully loaded.
Nov 10 23:28:32 monitoring.ourserver.com collectd[32178]: Plugin `nginx'
did not register for value `host'.
Nov 10 23:28:32 monitoring.ourserver.com collectd[32178]: Plugin `nginx'
did not register for value `host'.
Nov 10 23:28:32 monitoring.ourserver.com collectd[32178]: plugin_load:
plugin "threshold" successfully loaded.
Nov 10 23:28:32 monitoring.ourserver.com collectd[32178]: Systemd
detected, trying to signal readyness.
Nov 10 23:28:32 monitoring.ourserver.com systemd[1]: Started Collectd
statistics daemon.
-- Subject: Unit collectd.service has finished start-up

Am I making any sense ? and can anyone help me ?

Keith.

On 10/11/16 16:34, Keith wrote:

> --- This message was sent from an email address external to NHSmail
> but gives the appearance of being from an NHSmail address. Verify the
> sender and content is legitimate before acting upon information
> contained within. ---
>
> Hi, I have recently setup Collectd, Influxdb and Grafana on a server and
> have managed to get the Collectd nginx plugin installed and configured.
>
> I am able to see the nginx servers stats in Grafana but we have two
> nginx servers and it appears that the stats are being combined. We needt
> them separate them by host but can't see how.
>
> Out current configuration.....
> <Plugin nginx>
>         URL "http://Nginx_Server_A:10987/nginx_status"
>         URL "http://Nginx_Server_B:10987/nginx_status"
> </Plugin>
>
> I think I need to tag them but I can't figure it out. If someone could
> help it would be appreciated.
> Thanks
> Keith
>
>
>
>
> ********************************************************************************************************************
>
>
> This message may contain confidential information. If you are not the
> intended recipient please inform the
> sender that you have received the message in error before deleting it.
> Please do not disclose, copy or distribute information in this e-mail
> or take any action in reliance on its contents:
> to do so is strictly prohibited and may be unlawful.
>
> Thank you for your co-operation.
>
> NHSmail is the secure email and directory service available for all
> NHS staff in England and Scotland
> NHSmail is approved for exchanging patient data and other sensitive
> information with NHSmail and GSi recipients
> NHSmail provides an email address for your career in the NHS and can
> be accessed anywhere
> For more information and to find out how you can switch, visit
> www.nhsdigital.nhs.uk/nhsmail
>
> ********************************************************************************************************************
>
>
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> https://mailman.verplant.org/listinfo/collectd


********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere
For more information and to find out how you can switch, visit www.nhsdigital.nhs.uk/nhsmail

********************************************************************************************************************



More information about the collectd mailing list