is it possible to config a non-numeric index ...?

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

Moderators: Developers, Moderators

Post Reply
Cherokee
Posts: 1
Joined: Wed Jan 10, 2007 7:07 am

is it possible to config a non-numeric index ...?

Post by Cherokee »

Hi!

I have the following box (webapp accelerator) with an interesting MIB, check this output:

C:\snmp\bin>snmpwalk -c COMMNAME -v 2c -m +NC-SMI -m +NC-STAT-MIB -M c:/snmp/share/
snmp/mibs -Of 10.80.0.10 webServerServerStatTable

NC-STAT-MIB::serverstatusIpAddress."/test-site00/business-www/business.us" = IpAddress: 10.5.0.5
NC-STAT-MIB::serverstatusIpAddress."/test-site01/rcm-servers-01-port80/rcm-server-01-port80" = IpAddress: 192.168.134.155
NC-STAT-MIB::serverstatusIpAddress."/test-site01/rcm-servers-01-port443/rcm-server-01-port443" = IpAddress: 192.168.134.155
NC-STAT-MIB::serverstatusIpAddress."/test-site01/rcmcyber-servers-01-port80/rcmcyber-server-01-port80" = IpAddress: 70.10.10.93
NC-STAT-MIB::serverstatusPort."/test-site00/business-www/business.us" = INTEGER: 80
NC-STAT-MIB::serverstatusPort."/test-site01/rcm-servers-01-port80/rcm-server-01-port80" = INTEGER: 80
NC-STAT-MIB::serverstatusPort."/test-site01/rcm-servers-01-port443/rcm-server-01-port443" = INTEGER: 443
NC-STAT-MIB::serverstatusPort."/test-site01/rcmcyber-servers-01-port80/rcmcyber-server-01-port80" = INTEGER: 80
NC-STAT-MIB::serverstatusOperationalStatus."/test-site00/business-www/business.us" = STRING: IN-SERVICE
NC-STAT-MIB::serverstatusOperationalStatus."/test-site01/rcm-servers-01-port80/rcm-server-01-port80" = STRING: IN-SERVICE
NC-STAT-MIB::serverstatusOperationalStatus."/test-site01/rcm-servers-01-port443/rcm-server-01-port443" = STRING: IN-SERVICE
NC-STAT-MIB::serverstatusOperationalStatus."/test-site01/rcmcyber-servers-01-port80/rcmcyber-server-01-port80" = STRING: OUT-OF-SERVICE
...

there are other numeric stats (http-requests received for example) and I need to configure this in Cacti.

As you can see the index for each webserver instance is not a number but a "path" which defines uniquely every webserver.
I tried writing a script-type but I cannot get it to cache the results, so I have to execute it everytime I need a field


Question: Is it possible to use a snmp-type data query to poll this table?


please show me the path to the cacti enlightment... btw configuring this beast is HARD

any comment from you is very much appreciated! thanks in advance!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I suppose that this should be possible. Of course, this kind of MIB is ugly, very ugly.
To cope with that, you would at least need a OID/REGEXP type of Data Query. The REGEXP should match the unique string prepending those weird strings. And the "weird strings" would then build the index.
To retrieve other fields listed in the Data Query XML, cacti will append the "weird string" that build the index to the base OID, so this should work. Find some help at My Cacti Stuff, search in the last chapters.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests