graphing an AIX 5.1 server????
Moderators: Developers, Moderators
graphing an AIX 5.1 server????
Has anyone been able to get useful graphs from an AIX 5.1 server????
We have setup cacti and have began adding a number of servers with different operating systems.
For Solaris servers, we've been installing net-snmp, and for AIX 5.2 servers, we've just been making minor modifications to /etc/snmpdv3.conf.
But neither of these methods has allowed us to get snmpd working very well on AIX 5.1. We can get very little info to graph - no file system statistics, no memory stats, no cpu load.
Has anyone been able to do this in the past? I've read through a bunch of posts, but they seem like dead ends.
Thanks!
We have setup cacti and have began adding a number of servers with different operating systems.
For Solaris servers, we've been installing net-snmp, and for AIX 5.2 servers, we've just been making minor modifications to /etc/snmpdv3.conf.
But neither of these methods has allowed us to get snmpd working very well on AIX 5.1. We can get very little info to graph - no file system statistics, no memory stats, no cpu load.
Has anyone been able to do this in the past? I've read through a bunch of posts, but they seem like dead ends.
Thanks!
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Check out my AIX template in the Scripts and Addons section.
As for memory usage, well, it doesn't work. Personally, I have used a utiltity written by a IBM employee called NMON. It allows me to export memory stats, which I then parse and graph in cacti.
CPU load for hostmib, per CPU, is broken on 64 bit kernels. I have repeatly bugged IBM concerning this issue. The alternate is to use the Summarized CPU graph in the AIX mib, available in the template.
File system stats, well usage and volume groups, that is covered in the templates, but transfers and such are not.
As for memory usage, well, it doesn't work. Personally, I have used a utiltity written by a IBM employee called NMON. It allows me to export memory stats, which I then parse and graph in cacti.
CPU load for hostmib, per CPU, is broken on 64 bit kernels. I have repeatly bugged IBM concerning this issue. The alternate is to use the Summarized CPU graph in the AIX mib, available in the template.
File system stats, well usage and volume groups, that is covered in the templates, but transfers and such are not.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
We imported the AIX template some time ago -- that's what we're using for the AIX 5.2 servers. However, applying that template to a 5.1 server doesn't give us much. I suspect we're missing something on the server side of things.
As an example, if I do a verbose query of "Get File Systems", we simply don't get any answer.
+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/cacti-0.8.6e/resource/snmp_queries/aix_fs.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2.6.191.6.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/usr/local/cacti-0.8.6e/resource/snmp_queries/aix_fs.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6e/resource/snmp_queries/aix_fs.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6e/resource/snmp_queries/aix_fs.xml'
As an example, if I do a verbose query of "Get File Systems", we simply don't get any answer.
+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/cacti-0.8.6e/resource/snmp_queries/aix_fs.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2.6.191.6.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/usr/local/cacti-0.8.6e/resource/snmp_queries/aix_fs.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6e/resource/snmp_queries/aix_fs.xml'
+ Found data query XML file at '/usr/local/cacti-0.8.6e/resource/snmp_queries/aix_fs.xml'
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Ah, the fun of AIX snmp agent... I hate it btw...
There are 5 parts to the SNMP agent:
snmpd - which there are 2 version, snmpd and snmpdv3, snmpd is usually linked to it.
dpid2 - Sub agent for commnications
hostmibd - Host mib related snmp objects
aixmibd - AIX mib related snmp objects
snmpmibd - SNMP related snmp objects
Always start snmpd then the other sub agents. If you alter the snmp community, you will need to allow public from the Network interfaces of the server. As for some crazy reason, the sub agents don't use localhost. Trust me on this one, I had many heated discussions with IBM concerning this mess.
There are 5 parts to the SNMP agent:
snmpd - which there are 2 version, snmpd and snmpdv3, snmpd is usually linked to it.
dpid2 - Sub agent for commnications
hostmibd - Host mib related snmp objects
aixmibd - AIX mib related snmp objects
snmpmibd - SNMP related snmp objects
Always start snmpd then the other sub agents. If you alter the snmp community, you will need to allow public from the Network interfaces of the server. As for some crazy reason, the sub agents don't use localhost. Trust me on this one, I had many heated discussions with IBM concerning this mess.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
I don't know that I'd want to go so far as a plugin - yet another tab in Cacti.
It would be nice if you could just devide the device trees - or what can be seen on them - by users though.
Obviously I want this data for the AIX admins - the helpdesk and my fellow network guys, however, don't need to see it. Some of this I think I remember hearing would be in the next release of Cacti - so simply getting these rrd files moved in under the Cacti umbrella will be sufficient. Reading your how-to now...
When is that next release due, btw?
**added export data that you get from nmon - perhaps there's a way to script either adding the rrds to cacti or...whatever...
It would be nice if you could just devide the device trees - or what can be seen on them - by users though.
Obviously I want this data for the AIX admins - the helpdesk and my fellow network guys, however, don't need to see it. Some of this I think I remember hearing would be in the next release of Cacti - so simply getting these rrd files moved in under the Cacti umbrella will be sufficient. Reading your how-to now...
When is that next release due, btw?
**added export data that you get from nmon - perhaps there's a way to script either adding the rrds to cacti or...whatever...
- Attachments
-
- nmon_2_rrd_output_files.zip
- (146.19 KiB) Downloaded 597 times
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Personally, I just created a script that gathers the nmon data. Then when the Cacti poller executes, it uses those files to create nmon graphs.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Well, I will have to check.
I wrote them at work for work computers. I don't think it will be an issue, but I'm not promising anything.
I wrote them at work for work computers. I don't think it will be an issue, but I'm not promising anything.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
So, anyone else been able to manipulate nmon files sufficiently for use with Cacti? I would be interested in any and all solutions for getting AIX monitoring data into Cacti - scripts, templates, whatever!
SNMP is running on one of the dev AIX boxes we have, but the information retrieved isn't as detailed as they'd like - and currently get via nmon. Further, SNMP isn't allowed on the production boxen.
SNMP is running on one of the dev AIX boxes we have, but the information retrieved isn't as detailed as they'd like - and currently get via nmon. Further, SNMP isn't allowed on the production boxen.
[quote="rony"]Well, I will have to check.
I wrote them at work for work computers. I don't think it will be an issue, but I'm not promising anything.[/quote]
rony, were you able to get clearance on releasing these scripts? And in what mode are you running nmon on the target systems?
I've found another example of someone doing the nmon->cacti thing here:
http://www-128.ibm.com/developerworks/f ... 9#13778339
...but want to see what others have done before i implement anything.
I wrote them at work for work computers. I don't think it will be an issue, but I'm not promising anything.[/quote]
rony, were you able to get clearance on releasing these scripts? And in what mode are you running nmon on the target systems?
I've found another example of someone doing the nmon->cacti thing here:
http://www-128.ibm.com/developerworks/f ... 9#13778339
...but want to see what others have done before i implement anything.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Attached are the following:
This scripts and templates are provided without warrenties. I will do my best to help you implement them, but I really never intended them to be in the wild.
- cacti_nmon_push.sh - Bash shell script that extracts nmon data and pushes the file to the Cacti server. This should be run as root every 5 minutes on the target server.
- nmon_mem_stats.pl - Perl script used by Cacti to get the Memory data from the Nmon file. Used by the template.
- cacti_graph_template_nmon_memory_stats.xml - NMON Memory Template.
This scripts and templates are provided without warrenties. I will do my best to help you implement them, but I really never intended them to be in the wild.
- Attachments
-
- Example Graph
- nmon_memory_graph.png (27.46 KiB) Viewed 11076 times
-
- cacti_nmon_push.sh
- Nmon remote server script
- (651 Bytes) Downloaded 638 times
-
- nmon_mem_stats.pl
- Script required for template to extract nmon memory stats
- (1.72 KiB) Downloaded 633 times
-
- cacti_graph_template_nmon_memory_stats.xml
- Nmon Memory Template
- (25.5 KiB) Downloaded 812 times
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Who is online
Users browsing this forum: No registered users and 2 guests