Hi,
I have a running librenms installation on hostA which is working without problems. I have some applications successfully collecting data, including nginx on localhost. I now have another nginx installation on hostB from which i would like to collect nignx application data as well.
System setup:
Version | 1.39-70-g57a23a754 - Fri May 18 2018 10:40:34 GMT+0200 |
---|---|
DB Schema | #250 |
Web Server | nginx/1.10.3 |
PHP | 7.0.27-0+deb9u1 |
MySQL | 10.1.23-MariaDB-9+deb9u1 |
RRDtool | 1.6.0 |
validate.php all ok
Setup hostB:
root@hostB:/etc/snmp# ./nginx-stats
1
0
1
0
587
extends in snmpd.conf (raspberry is working fine):
extend raspberry /etc/snmp/raspberry.sh
extend nginx /etc/snmp/nginx-stats
What i get on hostA
After discovery for hostB:
Settings:
Graphs:
Part of the output of ./poller.php -h hostB -d -r -f -m applications
SNMP[/usr/bin/snmpget -v3 -n '' -l 'authPriv' -a 'SHA' -A PASSWORD -u USER -x 'DES' -X PASSWORD -Ovq -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell udp:HOSTNAME:161 .1.3.6.1.4.1.8072.1.3.2.3.1.2.5.110.103.105.110.120]
1
0
1
0
587
nginxactive: 1 reading: 0 writing: 1 waiting: 0 Requests: 580
RRD[update /opt/librenms/rrd/privacypi/app-nginx-7.rrd N:580:1:0:1:0]
[RRD Disabled]SQL[UPDATE `applications` set `app_state` ='OK',`app_status` ='',`timestamp` =NOW() WHERE `app_id` = '7']
SQL[SELECT * FROM `application_metrics` WHERE app_id='7']
: SQL[UPDATE `application_metrics` set `value` ='580',`value_prev` ='579' WHERE app_id='7' && metric='Requests']
U....
>> Runtime for poller module 'applications': 0.5375 seconds with 4256 bytes
For me it seams everything should be in place but the database update is not successful. Did i miss something?
Thanks in advance for any help
Martin
P.S.: The poller output for the working localhost nginx app:
SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -Ovq -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell udp:HOSTNAME:161 .1.3.6.1.4.1.8072.1.3.2.3.1.2.5.110.103.105.110.120]
1
0
1
0
194404
nginxactive: 1 reading: 0 writing: 1 waiting: 0 Requests: 194404
RRD[update /opt/librenms/rrd/localhost/app-nginx-2.rrd N:194404:1:0:1:0]
[RRD Disabled]SQL[UPDATE `applications` set `app_state` ='OK',`app_status` ='',`timestamp` =NOW() WHERE `app_id` = '2']
SQL[SELECT * FROM `application_metrics` WHERE app_id='2']
: SQL[UPDATE `application_metrics` set `value` ='194404',`value_prev` ='194290' WHERE app_id='2' && metric='Requests']
USQL[UPDATE `application_metrics` set `value` ='1',`value_prev` ='2' WHERE app_id='2' && metric='Active']
U..SQL[UPDATE `application_metrics` set `value` ='0',`value_prev` ='1' WHERE app_id='2' && metric='Waiting']
U