Using snmpgetnext vs snmpgetnext (SQL Server 2000 snmp)
Moderators: Developers, Moderators
Using snmpgetnext vs snmpgetnext (SQL Server 2000 snmp)
I am working toward getting ms sql to deliver data for graphing and need to use snmpgetnext
How do I utilize snmpgetnext rather than the standard snmpget?
There are many threads stating how mssql's snmp wont return data when using snmpget, however, snmpgetnext does work.
I noticed that in the configuration->settings->paths there is a binary location for calling snmpgetnext. However, I dont see which Data Query or Data Template can utilize this call.
Can anyone point me in the right direction? I should have thought someone would have written the snmp generic OID script to call snmpgetnext.
BTW this is on a debian box so WMI is out.
Thanks,
Alex
How do I utilize snmpgetnext rather than the standard snmpget?
There are many threads stating how mssql's snmp wont return data when using snmpget, however, snmpgetnext does work.
I noticed that in the configuration->settings->paths there is a binary location for calling snmpgetnext. However, I dont see which Data Query or Data Template can utilize this call.
Can anyone point me in the right direction? I should have thought someone would have written the snmp generic OID script to call snmpgetnext.
BTW this is on a debian box so WMI is out.
Thanks,
Alex
Last edited by amccool on Tue Sep 26, 2006 12:56 pm, edited 1 time in total.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Well, unfortunately, we don't have a function for the snmpgetnext, although we are asking for this (due to MacTrack). So, I wrote all of MacTrack and some of Cacti, so I guess my enhancements make it quicker.
So, your solution is to use a script rather than an snmp query. This will resolve your problem. If it's snmp data query (table based), the you run a script query, otherwise, simply run a script.
TheWitness
So, your solution is to use a script rather than an snmp query. This will resolve your problem. If it's snmp data query (table based), the you run a script query, otherwise, simply run a script.
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
oh my bleeding edge
Thanks, I appreciate the effort. I kinda figured that might be the case, so I'm about half way done with a script for it. The major bummer is the snmp isn't really indexed, so I have to do it in a custom fashion
If you get a chance post back to let me know which version is going to be getting the snmpgetnext functionality.
Thanks,
Alex
If you get a chance post back to let me know which version is going to be getting the snmpgetnext functionality.
Thanks,
Alex
I wrote a small perl script using snmpgetnext to query on hosts
Its working rather well. No doubt that some cleanup would be good, but I thought that people may want to start graphing sql server snmp from linux sooner than later
Its working rather well. No doubt that some cleanup would be good, but I thought that people may want to start graphing sql server snmp from linux sooner than later
- Attachments
-
- SQL_STATS.pl
- script to query sql server 2000 SNMP using snmp->get_next_request
- (1.06 KiB) Downloaded 548 times
-
- cacti_graph_template_sql_blocking.xml
- SQL Blocking graph
- (13.59 KiB) Downloaded 280 times
-
- cacti_graph_template_sql_users_and_locks.xml
- SQL user connections and locks graph
- (13.59 KiB) Downloaded 292 times
-
- cacti_graph_template_ssqlstats.xml
- sql server combined graph
- (18.4 KiB) Downloaded 327 times
-
- Posts: 2
- Joined: Tue Oct 24, 2006 4:31 pm
still not working :-(
I tried using these configs and they seem to be half working... for some reason, the spaces between the commandline parameters were lost, so I had to go in and add them back. All the graphs come back with everything as "nan"... but when I run the script manually, this is what I get:
UserConnections: 228 TotalLocks:212 TotalBlockingLocks:1 UsersBlocked:1
so it looks like the script is doing its job, but the information just doesnt flow back to cacti properly? has anybody gotten this to work?
UserConnections: 228 TotalLocks:212 TotalBlockingLocks:1 UsersBlocked:1
so it looks like the script is doing its job, but the information just doesnt flow back to cacti properly? has anybody gotten this to work?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You have a space between "UserConnections:" and "228". That won't work.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
-
- Posts: 2
- Joined: Tue Oct 24, 2006 4:31 pm
the daily, weekly, monthly graphs
I ran into the same issue with daily, weekly graphs showing the monthlies
its not related to the script and template, buyt due to a cacti upgrade problem
Luckily, It's easily fixed
go to console, datasources, --RRA and correct to taste (see attached)
its not related to the script and template, buyt due to a cacti upgrade problem
Luckily, It's easily fixed
go to console, datasources, --RRA and correct to taste (see attached)
- Attachments
-
- cacti.JPG (103.16 KiB) Viewed 5582 times
I dont get the graph to work, only showing "nan" as values
Error in the cacti log file:
CMDPHP: Poller[0] ERROR: SQL Exec Failed "delete from data_input_data where data_input_id=14"
have installed the xml's and copied the SQL_STATS.PL to the correct path
please advice
Edit:
Its against a SQL2003 server
Error in the cacti log file:
CMDPHP: Poller[0] ERROR: SQL Exec Failed "delete from data_input_data where data_input_id=14"
have installed the xml's and copied the SQL_STATS.PL to the correct path
please advice
Edit:
Its against a SQL2003 server
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Do you actually have the Microsoft Agent Extensions loaded. AKA, have you confirmed that the host responds to the correct MIBS?
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
the SNMP Service is up and running, all the other graphs are working fine...TheWitness wrote:Do you actually have the Microsoft Agent Extensions loaded. AKA, have you confirmed that the host responds to the correct MIBS?
TheWitness
I installed the NET::SNMP perl and then i get another error
"CMDPHP: Poller[0] Host[33] DS[890] WARNING: Result from CMD not valid. Partial Result: ERROR: Community not"
Guess that the comminity is not valid, but what about the other graphs that are working fine...
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You might have a separate community required for that section of the agent. I don't know. I've never used it.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
I'm getting nan values as well with the following error in the cacti logs:
CMDPHP: Poller[0] Host[11] DS[114] WARNING: Result from CMD not valid. Partial Result: ERROR: Community not
I imported the templates and verfied that the perl script is running from the command line.
any ideas how to fix this?
CMDPHP: Poller[0] Host[11] DS[114] WARNING: Result from CMD not valid. Partial Result: ERROR: Community not
I imported the templates and verfied that the perl script is running from the command line.
any ideas how to fix this?
Who is online
Users browsing this forum: No registered users and 0 guests