Page 1 of 1

AIX SNMP in Nagios XI

Posted: Thu Jun 11, 2015 4:20 pm
by CFT6Server
We are configure some AIX servers and looks from SNMPwalk, we can capture RAM and SWAP usage etc.
The status information shown is "alarm at 15" but the performance data shown is different. Can this be adjusted?
aix.JPG
Here's what the output looks like when you click on the overview.

Code: Select all

SNMP v1 login
Filter : RAM
OID : 1.3.6.1.2.1.25.2.3.1.3.14, Desc : /dev/edmnim02_netapp
OID : 1.3.6.1.2.1.25.2.3.1.3.19, Desc : /dev/edmnim02_info
OID : 1.3.6.1.2.1.25.2.3.1.3.8, Desc : /dev/fslv00
OID : 1.3.6.1.2.1.25.2.3.1.3.21, Desc : /dev/paging00
OID : 1.3.6.1.2.1.25.2.3.1.3.16, Desc : /dev/nim02_Sol
OID : 1.3.6.1.2.1.25.2.3.1.3.9, Desc : /dev/nim02_opt_bmc
OID : 1.3.6.1.2.1.25.2.3.1.3.6, Desc : /dev/hd11admin
OID : 1.3.6.1.2.1.25.2.3.1.3.1, Desc : /dev/hd4
OID : 1.3.6.1.2.1.25.2.3.1.3.20, Desc : /dev/hd6
OID : 1.3.6.1.2.1.25.2.3.1.3.15, Desc : /dev/edmnim02_ca11
OID : 1.3.6.1.2.1.25.2.3.1.3.22, Desc : /dev/paging01
OID : 1.3.6.1.2.1.25.2.3.1.3.18, Desc : /dev/fslv01
OID : 1.3.6.1.2.1.25.2.3.1.3.17, Desc : /dev/openv
OID : 1.3.6.1.2.1.25.2.3.1.3.4, Desc : /dev/hd3
OID : 1.3.6.1.2.1.25.2.3.1.3.11, Desc : /dev/edmnim02_nim
OID : 1.3.6.1.2.1.25.2.3.1.3.12, Desc : /dev/edmnim02_srvdoc
OID : 1.3.6.1.2.1.25.2.3.1.3.7, Desc : /dev/hd10opt
OID : 1.3.6.1.2.1.25.2.3.1.3.3, Desc : /dev/hd9var
OID : 1.3.6.1.2.1.25.2.3.1.3.10, Desc : /dev/edmnim02_swlib
OID : 1.3.6.1.2.1.25.2.3.1.3.2, Desc : /dev/hd2
OID : 1.3.6.1.2.1.25.2.3.1.3.24, Desc : System RAM
Name : System RAM, Index : 24
OID : 1.3.6.1.2.1.25.2.3.1.3.5, Desc : /dev/hd1
OID : 1.3.6.1.2.1.25.2.3.1.3.13, Desc : /dev/edmnim02_ca
OID : 1.3.6.1.2.1.25.2.3.1.3.23, Desc : /dev/paging02
storages selected : 1
Descr : System RAM
Size : 1114112
Used : 1090700
Alloc : 4096
Perf data : 'System_RAM'=4261MB;3482;3917;0;4352
System RAM: 98%used(4261MB/4352MB) (>90%) : CRITICAL
Perf graph looks good and the advance tab shows the following

Advanced Status Details
Service State: Critical
Duration: 41m 38s
State Type: Hard
Current Check: 5 of 5
Last Check: 2015-06-11 14:02:38
Next Check: 2015-06-11 14:17:38
Last State Change: 2015-06-11 13:31:02
Last Notification: 2015-06-11 13:35:08
Check Type: Active
Check Latency: 0.47164 seconds
Execution Time: 0.26763 seconds
State Change: 17.43421%
Performance Data: 'System_RAM'=4261MB;3482;3917;0;4352 [Unknown option: 1]

I ran the command from console....

Code: Select all

# ./check_snmp_storage_wizard.pl -H edmnim02 -C nagios -v 1 -m 'RAM' -w 80 -c 90
Alarm at 15
SNMP v1 login
Filter : RAM
OID : 1.3.6.1.2.1.25.2.3.1.3.14, Desc : /dev/edmnim02_netapp
OID : 1.3.6.1.2.1.25.2.3.1.3.19, Desc : /dev/edmnim02_info
OID : 1.3.6.1.2.1.25.2.3.1.3.8, Desc : /dev/fslv00
OID : 1.3.6.1.2.1.25.2.3.1.3.21, Desc : /dev/paging00
OID : 1.3.6.1.2.1.25.2.3.1.3.16, Desc : /dev/nim02_Sol
OID : 1.3.6.1.2.1.25.2.3.1.3.9, Desc : /dev/nim02_opt_bmc
OID : 1.3.6.1.2.1.25.2.3.1.3.6, Desc : /dev/hd11admin
OID : 1.3.6.1.2.1.25.2.3.1.3.1, Desc : /dev/hd4
OID : 1.3.6.1.2.1.25.2.3.1.3.20, Desc : /dev/hd6
OID : 1.3.6.1.2.1.25.2.3.1.3.15, Desc : /dev/edmnim02_ca11
OID : 1.3.6.1.2.1.25.2.3.1.3.22, Desc : /dev/paging01
OID : 1.3.6.1.2.1.25.2.3.1.3.18, Desc : /dev/fslv01
OID : 1.3.6.1.2.1.25.2.3.1.3.17, Desc : /dev/openv
OID : 1.3.6.1.2.1.25.2.3.1.3.4, Desc : /dev/hd3
OID : 1.3.6.1.2.1.25.2.3.1.3.11, Desc : /dev/edmnim02_nim
OID : 1.3.6.1.2.1.25.2.3.1.3.12, Desc : /dev/edmnim02_srvdoc
OID : 1.3.6.1.2.1.25.2.3.1.3.7, Desc : /dev/hd10opt
OID : 1.3.6.1.2.1.25.2.3.1.3.3, Desc : /dev/hd9var
OID : 1.3.6.1.2.1.25.2.3.1.3.10, Desc : /dev/edmnim02_swlib
OID : 1.3.6.1.2.1.25.2.3.1.3.2, Desc : /dev/hd2
OID : 1.3.6.1.2.1.25.2.3.1.3.24, Desc : System RAM
   Name : System RAM, Index : 24
OID : 1.3.6.1.2.1.25.2.3.1.3.5, Desc : /dev/hd1
OID : 1.3.6.1.2.1.25.2.3.1.3.13, Desc : /dev/edmnim02_ca
OID : 1.3.6.1.2.1.25.2.3.1.3.23, Desc : /dev/paging02
storages selected : 1
Descr : System RAM
Size :  1114112
Used : 1085614
Alloc : 4096
Perf data : 'System_RAM'=4241MB;3482;3917;0;4352
System RAM: 97%used(4241MB/4352MB) (>90%) : CRITICAL
Perhaps I should be using something else? This was taken from what a Linux check would've looked like.

Re: AIX SNMP in Nagios XI

Posted: Fri Jun 12, 2015 8:38 am
by lmiltchev
20MB is not a big difference. This could be caused by the rounding or maybe, the value could have changed by the time you performed the second check (from the CLI). I am not able to recreate the issue in-house as I don't have an AIX test box. I ran the same plugin against a CentOS box and it seemed to work as expected - the values from the "Advanced" tab and the CLI matched.

Can you test the plugin against a Linux box to see if you will experience the same issue?

What is the version of the plugin that you are currently using?

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage_wizard.pl --version

Re: AIX SNMP in Nagios XI

Posted: Mon Jun 15, 2015 2:38 pm
by CFT6Server
The difference is due to me running the screen grab at different times. I am not worried about that. I am just looking at the "alarm at 15" status information vs. what is shown in the advanced tab.

For Linux Machines we are using "Check_xi_service_snmp_linux_storage" for RAM.
which is using the same underline command and that is ok.

Code: Select all

# /usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H smisdhadma01 -C nagios --v2c -m 'Memory' -w 80 -c 90
Memory buffers: 1%used(429MB/64428MB) (<80%) : OK

Code: Select all

# /usr/local/nagios/libexec/check_snmp_storage_wizard.pl --version
check_snmp_storage version : 1.3.3
Went back and looked at the command further and turns out it was the -v1 switch....

Code: Select all

# /usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H edmnim02 -C nagios -m 'RAM' -w 80 -c 90
System RAM: 98%used(4284MB/4352MB) (>90%) : CRITICAL

Re: AIX SNMP in Nagios XI

Posted: Mon Jun 15, 2015 2:46 pm
by ssax
Are you saying that it's now working properly for you?

Re: AIX SNMP in Nagios XI

Posted: Mon Jun 15, 2015 3:10 pm
by CFT6Server
Yes, I've removed the -v1 from the check command and it is working right for me now. Thank you.

Re: AIX SNMP in Nagios XI

Posted: Mon Jun 15, 2015 3:19 pm
by ssax
Great, glad to hear that! I'll be marking this as resolved and locking the topic.