better ucd/net-snmp memory usage -- update June 21 2009
Moderators: Developers, Moderators
-
- Posts: 27
- Joined: Tue Sep 11, 2007 6:33 am
Solved problem
Already achieve that it was working for the machines Solaris, the problem was in the version of the snmp, because hize the proof of sending the script with the version 1 the snmp and it does not work but with the version 2 perfectly, without nothing problem, this way that I put snmp2 and already it(he,she) was doing(painting).
Thank you very much for everything
Thank you very much for everything
-
- Cacti User
- Posts: 175
- Joined: Sun May 27, 2007 5:42 pm
-
- Posts: 23
- Joined: Fri Jul 20, 2007 10:24 am
Hi,
i try to export the php script into snmp query xml, but if i change direction to input in the xml script, there's no drop down menu in the Associated Graph Templates, with direction output the drop down menu appears.
also the snmp query only work with direction input.
anyone can help ?
i try to export the php script into snmp query xml, but if i change direction to input in the xml script, there's no drop down menu in the Associated Graph Templates, with direction output the drop down menu appears.
also the snmp query only work with direction input.
anyone can help ?
- Attachments
-
- with snmp query direction set to input
- snmp direction input.jpg (25.98 KiB) Viewed 14431 times
-
- with snmp query direction set to output
- snmp direction output.jpg (38.06 KiB) Viewed 14431 times
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
have you installed this patch : http://cacti.net/download_patches.php ?
"Graph Logic Syntax Issue"
have you installed this patch : http://cacti.net/download_patches.php ?
"Graph Logic Syntax Issue"
[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]
[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]
Yes I did 2 days ago, as I saw this suggestion already on another post.
The snmpget results seem to be correct:
The snmpget results seem to be correct:
Code: Select all
/usr/share/cacti/site/scripts# snmpwalk localhost -c xxxxxx-v1 .1.3.6.1.2.1.25.2.2.0
HOST-RESOURCES-MIB::hrMemorySize.0 = INTEGER: 1003904 KBytes
server:/usr/share/cacti/site/scripts# snmpwalk localhost -c xxxxxx -v1 .1.3.6.1.4.1.2021.4.6.0
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 25984 kB
server:/usr/share/cacti/site/scripts# snmpwalk localhost -c xxxxxx -v1 .1.3.6.1.4.1.2021.4.6.0
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 25992 kB
server:/usr/share/cacti/site/scripts# snmpwalk localhost -c xxxxxx -v1 .1.3.6.1.4.1.2021.4.6.0
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 26004 kB
server:/usr/share/cacti/site/scripts# snmpwalk localhost -c xxxxxx -v1 .1.3.6.1.4.1.2021.4.14.0
UCD-SNMP-MIB::memBuffer.0 = INTEGER: 222244 kB
server:/usr/share/cacti/site/scripts# snmpwalk localhost -c xxxxxx -v1 .1.3.6.1.4.1.2021.4.15.0
UCD-SNMP-MIB::memCached.0 = INTEGER: 479124 kB
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
[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]
[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]
Thanks! This one works great! And without needing a script, nice!
http://forums.cacti.net/viewtopic.php?t=24501 bookmarked
http://forums.cacti.net/viewtopic.php?t=24501 bookmarked
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
[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]
[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]
Since we updated to cacti 0.8.7.d, the output of the script netsnmp_memory_usage.php have strange behaviour:
With cacti 0.8.7.c:
With cacti 0.8.7.d:
--> White space are added to the output after the colon of availReal, totalSwap, availSwap and memBuffer. In the RRD file, those values are NaN ...
Any idea to solve this issue ?.
Thanks
With cacti 0.8.7.c:
Code: Select all
/usr/bin/php -q /home/reseau/cacti_old/scripts/netsnmp_memory_usage.php ...
totalReal:16301160 availReal:194896 totalSwap:20479992 availSwap:20479824 memBuffer:18456 memCached:15593124 usedReal:494684 usedSwap:168
Code: Select all
/usr/bin/php -q /home/reseau/cacti/scripts/netsnmp_memory_usage.php ...
totalReal:16301160 availReal: 194524 totalSwap: 20479992 availSwap: 20479824 memBuffer: 18504 memCached: 15593124 usedReal:495008 usedSwap:168
Any idea to solve this issue ?.
Thanks
hello, I had exactly the same problem. It seems the new version likes to add white spaces somewhere and because of that the netsnmp_memory_usage.php file returns them too.
actually the fix is pretty simple - just trim them away.
I used php trim function for that :
the new output in netsnmp_memory_usage.php file :
the old output in netsnmp_memory_usage.php file :
Voila and it started working again
actually the fix is pretty simple - just trim them away.
I used php trim function for that :
the new output in netsnmp_memory_usage.php file :
Code: Select all
$output = $output . $oid[$outputcount][0] . ":" . trim($cmdoutput[$outputcount]) . " ";
Code: Select all
$output = $output . $oid[$outputcount][0] . ":" . $cmdoutput[$outputcount] . " ";
Who is online
Users browsing this forum: No registered users and 6 guests