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 suspect Net-SNMP does not return the correct values.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
It turned out pre-installed SNMP on SuSE 9 is not working properly.
I have to install net-snmp 5.4 source packages in order to graph properly.
The default SNMP 5.4 build doesn't include MIB modules, i need to enable-ucd-snmp-compatibility option.
snmpwalk -v 1 -c public xx.xx.xx.xx .1.3.6.1.2.1.25.2.2.0
Returned value
HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 65329680 Kbytes
Then I execute
/usr/local/php/bin/php -q netsnmp_memory_usage.php xx.xx.xx.xx, public, 1, , , 161, 500
But have you an idea about traffic templates :
If I want use Data Query [SNMP - Interface Statistics] for create graph, I have like message error : "WARNING: Result from SNMP not valid. Partial Result:" only with an OpenBSD device.
I am getting the same "malformed output" when I run the script manually. I checked all the OIDs on my Solaris 8 box and all returned values except for the last two.
From reading the code it looks like it is a defense measure to stop processing if any value does not return a real value. The membuffer and memcache are probably not supported on Solaris. Is there a way to get the script to process the data anyway?
I have just put control yourself of the memory(report) but now I have a problem...
When it(he,she) paints the graphs to me in the values "Nan" goes out for me always and the graph remains in white(target).
I have put the script inside path_cacti/scrtips/
Some help
This script need to be modified in order to run on cacti 0.8.7
Prior to 0.8.7, the configuration information is stored in config.php. In 0.8.7, most of the information previously in config.php are moved to global.php.
In this 0.8.7, in order to use php snmp call, it require more information.
Thus here is the modification on "netsnmp_memory_usage.php:
# -------------------------------------------------------------------------------
#
# cacti script to read ucd/net-snmp memory usage data with SNMP
#
# uses the basic HOST MIB for phys memory due to swap weirdness in FreeBSD handling
#
include(dirname(__FILE__) . "/../include/config.php");
include(dirname(__FILE__) . "/../include/global.php");
include(dirname(__FILE__) . "/../lib/snmp.php");
super-hornet!!!
I continue with the same problem of before, when I throw the script it works perfectly but then it does not paint anything in the graphs.
I have put the .php that you have left in the web page.
I need help please