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.
I'm stuck and not sure what to look at in the perl script. I have CentOS 4.6 and 4.7 and the results are the same. I have also tried 5.2 and 5.3 and the results generally are the same.
Thanks so much for all of this, it works out very well as long as you have a small amount of disks.
I've hacked it up to support vxstat for grabbing stats from VxVM volumes and disks.
It's pretty crude, but it works for me on Sol9. Feel free to include it in the official version if you want. I only included 2 types of graphs, IO requests and times. There is 1 more type of graph you could easily make if you wanted to, as the parsing and data query is already setup to pull blocks transferred.
Otherwise YMMV.
--
Chris
Attachments
example_iops.png (45.07 KiB) Viewed 12012 times
example_servicetimes.png (19.23 KiB) Viewed 12012 times
If you do not get any output in Cacti (and it works when using snmpwalk on the command line), you could try increasing the SNMP timeout in Cacti. That worked for me.
[root@server /]# snmpwalk -v1 -c public localhost .1.3.6.1.3.1
End of MIB
In Cacti, I also see "no SNMP data returned" errors (obviously...)
I don't speak perl well enough to fix or even debug the script (except for placing some dummy print statements) and I do know almost nothing about the linux snmpd (I just did "yum install snmpd" and "service snmpd start" after I added the "pass..." line to the snmpd.conf)
Any help would be greatly appreciated
-Michael
*Edit: CentOS 5.4 x64 fully patched, snmpd 5.3.2.2, cacti 0.8.7e*
*Edit2: I modified the SNMP config to allow access from everywhere, now I can browse a whole lot of snmp subtrees ("snmpwalk -v1 -c public localhost .1 | wc -l" says 8523 lines) but the .1.3.6.1.3.1 subtree is not among them*
I'm trying to run this against Solaris 10 Sparc, and it's running from a ubu server 9
Below is the output of a verbose query
+ Running data query [19].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/iostat-solaris.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.3.1'
+ No SNMP data returned
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/iostat-solaris.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/iostat-solaris.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/iostat-solaris.xml'
however when i run a snmpwalk against it, i get the following: Summarized for brevity.
when i attempt to create the iostat graphs in cacti I get this:
+ Running data query [11].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/iostat.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.3.1'
+ No SNMP data returned
snmpwalk returns:
Timeout: No Response from <host>
iostat.pl seems to run and I have output in /tmp/iostat.cache
thanks for your nice work! I have installed the files and templates according to your readme file, but now I experience the same problem like some other people: after adding the new data queries to my device, the queries show 0 items and rows. I have spent some time on debugging and searching for advice, but so far without success.
On the Cacti web gui, verbose query (e.g. for "iostat - kBytes/sec") says:
+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/snmp_queries/iostat.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.3.1'
+ No SNMP data returned
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/snmp_queries/iostat.xml'
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/snmp_queries/iostat.xml'
+ Found data query XML file at '/srv/www/htdocs/cacti/resource/snmp_queries/iostat.xml'
If I hit the green circle next to the data query or click the link to run the verbose query, I can see on the target server that a lot of snmp requests are received and answered (tcpdump output). I can see the corresponding traffic on the Cacti server, therefor my *guess* is, that data is received but not interpreted.
So what can be the reason for cacti telling me that no data is available? How can I find out what's wrong?
It's possible to use this template to monitor nfs mount points? When we execute iostat, it only give me the local devices. Btw, I also tried to execute with -n option, but iostat command doesn't support -n option on my os. Thanks inadvance for your suggestions/comments.
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
cacti 8.7g
snmp 5.1.2