Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post general support questions here that do not specifically fall into the Linux or Windows categories.
Moderators: Developers , Moderators
exeral
Posts: 7 Joined: Sat May 02, 2009 5:43 am
Post
by exeral » Thu Jun 26, 2014 10:34 am
Hi,
I have a custom OID, that outputs:
NET-SNMP-EXTEND-MIB::nsExtendOutLine."status".1 = STRING: error:0 finished:0 new:7 pending:561 running:47 stalled:0 suspended:3
I created a data input method:
input type: SNMP
and created the appropriate output fields
then I created a Data source that use this data input method
But, I can't find where I have to put the OID that will be requested ??!
thanks for help
exeral
Posts: 7 Joined: Sat May 02, 2009 5:43 am
Post
by exeral » Mon Jun 30, 2014 4:54 am
for the OID, it seems ok but the rrd isn't updated
06/30/2014 09:45:29 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/host_trainstatus_6785.rrd --template new 1404121529:U
06/30/2014 09:45:29 AM - SPINE: Poller[0] Host[177] TH[1] DS[6785] SNMP: v2: host.net, dsname: new, oid: .1.3.6.1.4.1.8072.1.3.2.4.1.2.22.116.114.97.105.110.115.116.97.116.117.115.45.99.111.110.116.114.111.108.108.101.114.1, value: error:6 finished:0 new:5 pending:167 running:21 stalled:0 suspended:0
the update is only on 1 DS item, not 7 as I specified
nvtkamil
Posts: 2 Joined: Wed Jul 02, 2014 4:28 am
Post
by nvtkamil » Wed Jul 02, 2014 4:33 am
Did you find a solution?
In my opinion non DS are updated, you are getting U value.
I have the same task
CMDPHP: Poller[0] Host[33] DS[1393] SNMP: v2: 172.16.38.51, dsname: avg_t, oid: NET-SNMP-EXTEND-MIB::nsExtendOutput1Line."WSMGWPERFORMANCE", output: all_sms:219 avg_t:1.89
POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/mpps-db01-new_all_tp_1392.rrd --template all_tp N:U
POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/mpps-db01-new_avg_t_1393.rrd --template avg_t 1404293145:U
I think a custom SNMP Data Input Method is required but I have no idea how to make one.
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Wed Jul 02, 2014 7:29 am
Hi
This:
Code: Select all
error:6 finished:0 new:5 pending:167 running:21 stalled:0 suspended:0
or this:
Aren't valid integer numbers. You will have to build a script around this to parse the output before presenting it to Cacti.
nvtkamil
Posts: 2 Joined: Wed Jul 02, 2014 4:28 am
Post
by nvtkamil » Wed Jul 02, 2014 8:40 am
I solved my problem by using a local shell script on cacti server to execute snmpget from the target server.
Cacti can parse the same output now.
CMDPHP: Poller[0] Host[33] DS[1402] CMD: /opt/nvt/cacti/mpps_wsmgw_performance.sh, output: all_sms:181 avg_t:2.54
POLLER: Poller[0] Parsed MULTI output field 'all_sms:181' [map all_sms->all_sms]
POLLER: Poller[0] Parsed MULTI output field 'avg_t:2.54' [map avg_t->avg_t]
POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/mpps-db01-new_avg_t_1402.rrd --template all_sms:avg_t 1404307844:181:2.54
Is it possible to achieve this using only Cacti SNMP ?
phalek
Developer
Posts: 2838 Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:
Post
by phalek » Wed Jul 02, 2014 8:43 am
You will have to present the different data in separete OIDs so you can poll these. Presenting the data combined in one OID this isn't possible.
Users browsing this forum: No registered users and 2 guests