SNMP Informant Win32 memory usage -- update June 21, 2009
Moderators: Developers, Moderators
SNMP Informant Win32 memory usage -- update June 21, 2009
I got my improved ucd/net-snmp memory usage ported over to Win32, using SNMP Informant Advanced (not the Std freeware edition).
That graph shows the total real memory installed, used by processes, used by cache, and altogether unused. It also shows allocated swap space (from c:\pagefile.dat only) as a pink strip on the top, above the real memory.
This uses a script to gather various bits of information from the Host MIB as well as SNMP Informant, and then performs some mathematics and string normalization.
--> see this page for the tarball and instructions <--
That graph shows the total real memory installed, used by processes, used by cache, and altogether unused. It also shows allocated swap space (from c:\pagefile.dat only) as a pink strip on the top, above the real memory.
This uses a script to gather various bits of information from the Host MIB as well as SNMP Informant, and then performs some mathematics and string normalization.
--> see this page for the tarball and instructions <--
Last edited by ehall on Tue Jun 23, 2009 11:18 am, edited 8 times in total.
Yea, standard doesn't have that info.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Which version?
I'm using Cacti 0.8.6g and I'm getting invalid hash errors when trying to import the template. What version did you export this from?
BTW - Nice clean coding & comments on the script.
BTW - Nice clean coding & comments on the script.
- AndyStewart
- Cacti User
- Posts: 102
- Joined: Thu Sep 29, 2005 5:21 am
- Location: Edinburgh, Scotland
0.8.6g here as well, getting "hash version does not exist" when trying to import...
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
No values on graph
Hi,
This template is really nice and saves a lot of time. Thanks for it.
The import went like a charm: no errors at all, right at the first attempt.
The problem is that I don't get any readings: all values on the graph are still "nan" after I configured it 2-3 weeks ago.
If running the script from the console, I get these readings:
availReal: 546332672
memCached: 137285632
totalSwap: 0
usedSwap: 0
usedReal: 1462779904
availSwap:0
The server has 2Gb RAM with a 2Gb total page file size.
Too much for the SNMP counters?
Uses 32-bit or 64 bit counters?
If one counter would be over the maximum limit set in the datasource definition, would it prevent all reading from being written to the RRD database?
I am running Cacti 0.8.6h with RRDtool 1.2 on Redhat 9.
The maximum value for all conters in the template is set manually to 10000000000.
What am I doing wrong?
Thanks,
Zoltan
This template is really nice and saves a lot of time. Thanks for it.
The import went like a charm: no errors at all, right at the first attempt.
The problem is that I don't get any readings: all values on the graph are still "nan" after I configured it 2-3 weeks ago.
If running the script from the console, I get these readings:
availReal: 546332672
memCached: 137285632
totalSwap: 0
usedSwap: 0
usedReal: 1462779904
availSwap:0
The server has 2Gb RAM with a 2Gb total page file size.
Too much for the SNMP counters?
Uses 32-bit or 64 bit counters?
If one counter would be over the maximum limit set in the datasource definition, would it prevent all reading from being written to the RRD database?
I am running Cacti 0.8.6h with RRDtool 1.2 on Redhat 9.
The maximum value for all conters in the template is set manually to 10000000000.
What am I doing wrong?
Thanks,
Zoltan
Missing MIBS
I just bought the Informant Advanced agent to use with this script, and am having a problem... The following OID's (referenced in the script) don't seem to exist anymore. Did they use to? Browsing through the advanced (and standard) MIBs through GetIF didn't show that they had moved anywhere else, just that .1.3.6.1.4.1.9600.1.22 is not valid. Since ...9600.1.1 seems to be Standard and ...9600.1.2 seems to be Advanced, what does that imply about ...9600.1.22?
array ("totalSwap", ".1.3.6.1.4.1.9600.1.22.5.3.1.2.1"),
array ("usedSwap", ".1.3.6.1.4.1.9600.1.22.5.3.1.4.1");
For now I'm just commenting out anything about Swap, but I'd like to have that too. Thanks
array ("totalSwap", ".1.3.6.1.4.1.9600.1.22.5.3.1.2.1"),
array ("usedSwap", ".1.3.6.1.4.1.9600.1.22.5.3.1.4.1");
For now I'm just commenting out anything about Swap, but I'd like to have that too. Thanks
When you snmpwalk 1.3.6.1.4.1.9600.1, you don't see anything in 1.3.6.1.4.1.9600.1.22 ?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
I posted a new version of the script with many significant enhancements. The biggest change is a switch from the expensive and slow script query interface to the persistent and fast script server interface. I also dropped the comma-separated parameters and switched to a colon-separated "bundle" for SNMP arguments, tightened up the array and variable management, added a lot more error checking, and otherwise did a complete rewrite of the script.
Due to the changes, the script and resource xml files need to be reinstalled and any data queries need to be reimported. However the existing graphs and data sources should continue to operate afterwards.
I've also moved the files to this page on my web server so that I can more easily maintain them
Due to the changes, the script and resource xml files need to be reinstalled and any data queries need to be reimported. However the existing graphs and data sources should continue to operate afterwards.
I've also moved the files to this page on my web server so that I can more easily maintain them
Last edited by ehall on Tue Jun 23, 2009 11:17 am, edited 1 time in total.
I see it's massive script update day, nice.
Please consider posting all templates in the repository. http://docs.cacti.net/templates
Please consider posting all templates in the repository. http://docs.cacti.net/templates
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Hello, i have installed this scripts, and on my host i have installed
snmp informant 1.6 (current production release)
but when i lunch the script i have this error? :
what do u think the problem com from please?
and this :
snmp informant 1.6 (current production release)
but when i lunch the script i have this error? :
Code: Select all
mika2008 [/var/www/cacti/scripts] > php ss_informant_memory.php 192.168.0.33:1:public::::::::
FATAL: Unable to read memory data from SNMP
and this :
Code: Select all
mika2008 [/var/www/cacti/scripts] > snmpwalk -c public -v1 192.168.0.33 .1.3.6.1.4.1.9600.1.22
End of MIB
Who is online
Users browsing this forum: No registered users and 1 guest