Page 1 of 1

HP-UX server monitoring

Posted: Wed Oct 06, 2021 5:27 am
by sneha.irali
Hi Team,

I have HP-UX servers enabled for monitoring using the LINUX SNMP Wizard.

I wanted to know how the CPU, Memory and disk utilization is calculated. Team here wants to do an analysis the reason for frequesntly triggered cpu, mem and disk alerts for which they need to know how is the utilization calculated on Nagios.

/backup Disk Usage Warning 1h 44m 11s 5/5 2021-10-06 05:11:18 /backup: 82%used(43691MB/53184MB) (>80%) : WARNING

CPU Usage Ok 1h 45m 44s 1/5 2021-10-06 05:15:08 1 CPU, load 24.0% < 80% : OK

Memory Usage Ok 1h 45m 27s 1/5 2021-10-06 05:15:31 Physical memory: 46%used(120564MB/262035MB) (<80%) : OK

Re: HP-UX server monitoring

Posted: Wed Oct 06, 2021 4:40 pm
by ssax
If you pass the -v option to the plugin it will show you the OIDs and the values returned from the remote device:

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H 192.168.X.X -C 'yourcommunity' --v2c -m '^/backup$' -w 80 -c 95 -f -v
/usr/local/nagios/libexec/check_snmp_load_wizard.pl -H 192.168.X.X -C 'yourcommunity' --v2c -w 80 -c 90 -f -v
/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H 192.168.X.X -C 'yourcommunity' --v2c -m Physical -w 80 -c 90 -f -v
You would need to look inside each plugin for how the calculations are done based on that output and the OIDs that they are querying.

Re: HP-UX server monitoring

Posted: Thu Oct 07, 2021 12:21 pm
by sneha.irali
can you help me with the command for snmpv3..?

Re: HP-UX server monitoring

Posted: Fri Oct 08, 2021 5:13 am
by sneha.irali
Hi,

I got the below o/p, I have few queries:

storages selected : 1
1.3.6.1.2.1.25.2.3.1.5.31 : 1310720
1.3.6.1.2.1.25.2.3.1.6.31 : 32519
1.3.6.1.2.1.25.2.3.1.4.31 : 8192
Descr : /
Size : 1310720
Used : 32519
Alloc : 8192
Perf data : '/'=254MB;8192;9216;0;10240
/: 2%used(254MB/10240MB) (<80%) : OK | '/'=254MB;8192;9216;0;10240

--> How Do I interpret the values in bold...?

CPU Utilisation:
OID : 1.3.6.1.2.1.25.3.3.1.1.768, Desc : 0.0
OID : 1.3.6.1.2.1.25.3.3.1.2.768, Desc : 3
OID : 1.3.6.1.2.1.25.3.3.1.1.769, Desc : 0.0
1 CPU, load 3.0% < 80% : OK | cpu_prct_used=3%;80;90
--> How Do I interpret the values in bold...?

Memory Utilisation:
Descr : Physical memory
Size : 8387030
Used : 5715446
Alloc : 4096
Perf data : 'Physical_memory'=22326MB;26209;29486;0;32762
Physical memory: 68%used(22326MB/32762MB) (<80%) : OK | 'Physical_memory'=22326MB;26209;29486;0;32762

--> How Do I interpret the values in bold...?

Re: HP-UX server monitoring

Posted: Fri Oct 08, 2021 1:32 pm
by ssax
EDIT: For SNMPv3 they would be:

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H 192.168.X.X -L sha,aes -l snmpv3user -x 'authPass' -X 'privPass' -m '^/backup$' -w 80 -c 95 -f -v
/usr/local/nagios/libexec/check_snmp_load_wizard.pl -H 192.168.X.X -L sha,aes -l snmpv3user -x 'authPass' -X 'privPass' -w 80 -c 90 -f -v
/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -H 192.168.X.X -L sha,aes -l snmpv3user -x 'authPass' -X 'privPass' -m Physical -w 80 -c 90 -f -v
This is saying your / filesystem is only 2% used, 254MBs used out of 10240MB total, which is less than the threshold of 80 defined so it's showing that info with the OK state:

Code: Select all

/: 2%used(254MB/10240MB) (<80%) : OK
This is saying you have 1 CPU, the load of that CPU is 3%, which is less than the threshold of 80 defined so it's showing that info with the OK state:

Code: Select all

1 CPU, load 3.0% < 80% : OK
This is saying you have 68% used physical memory, 22326MB used out of 32762MB total, which is less than the threshold of 80 defined so it's showing that info with the OK state:

Code: Select all

Physical memory: 68%used(22326MB/32762MB) (<80%) : OK 
Everything after the | is performance graph data, warn/critical/min/max values, that information is what is used to build the performance graphs, please see here for the performance data format:

https://nagios-plugins.org/doc/guidelines.html#AEN200

Performance Data:

Code: Select all

| '/'=254MB;8192;9216;0;10240
| cpu_prct_used=3%;80;90
| 'Physical_memory'=22326MB;26209;29486;0;32762
You can see the help sections of each plugin to determine what options it supports to make it do different things:

Code: Select all

/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -h
/usr/local/nagios/libexec/check_snmp_load_wizard.pl -h
/usr/local/nagios/libexec/check_snmp_storage_wizard.pl -h

Re: HP-UX server monitoring

Posted: Mon Oct 11, 2021 6:52 am
by sneha.irali
Thanks for the info.

Can you please help me with this last one:

swap:

Descr : Swap space (total)
Size : 75497472
Used : 0
Alloc : 1024
Descr : Swapped text pages
Size : 258441
Used : 183726
Alloc : 4096
Perf data : 'Swap_space__total_'=0MB;58982;66355;0;73728 'Swapped_text_pages'=718MB;808;909;0;1010
Swap space (total): 0%used(0MB/73728MB) Swapped text pages: 71%used(718MB/1010MB) (<80%) :

Re: HP-UX server monitoring

Posted: Mon Oct 11, 2021 5:57 pm
by ssax
Virtual Memory/Page File - 0%/0MB used swap space out of 73728MB total swap
71%/718MB used swapped text pages out of 1010MB total

See here for pages:

https://www.kernel.org/doc/gorman/html/ ... nd014.html