OID for custom SNMP data input method

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
exeral
Posts: 7
Joined: Sat May 02, 2009 5:43 am

OID for custom SNMP data input method

Post by exeral »

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

Re: OID for custom SNMP data input method

Post by exeral »

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

Re: OID for custom SNMP data input method

Post by nvtkamil »

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.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: OID for custom SNMP data input method

Post by phalek »

Hi

This:

Code: Select all

error:6 finished:0 new:5 pending:167 running:21 stalled:0 suspended:0
or this:

Code: Select all

all_sms:219 avg_t:1.89
Aren't valid integer numbers. You will have to build a script around this to parse the output before presenting it to Cacti.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
nvtkamil
Posts: 2
Joined: Wed Jul 02, 2014 4:28 am

Re: OID for custom SNMP data input method

Post by nvtkamil »

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 ?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: OID for custom SNMP data input method

Post by phalek »

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.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests