- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Get Syntax Error when running a nagios Script
Operating System - HP-UX
1752478
Members
5791
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2009 05:22 AM
тАО09-30-2009 05:22 AM
Hi all,
I am trying to run a script (attached) in a Server where I get a Syntax Error. I have used this script for all other servers without problems. HPUX version 11.23.
burbsdq1:/usr/local/nagios/libexec#./check_memory_hpux.sh -w 80 -c 90
./check_memory_hpux.sh[2]: FREEMB=: Syntax error
./check_memory_hpux.sh[2]: FREEMB=: Syntax error
./check_memory_hpux.sh[3]: * 20 / 100: Syntax error
I thought initially maybe due a different shell version but they`re the same.
Any idea why this is occurring?
Thx!
I am trying to run a script (attached) in a Server where I get a Syntax Error. I have used this script for all other servers without problems. HPUX version 11.23.
burbsdq1:/usr/local/nagios/libexec#./check_memory_hpux.sh -w 80 -c 90
./check_memory_hpux.sh[2]: FREEMB=: Syntax error
./check_memory_hpux.sh[2]: FREEMB=: Syntax error
./check_memory_hpux.sh[3]: * 20 / 100: Syntax error
I thought initially maybe due a different shell version but they`re the same.
Any idea why this is occurring?
Thx!
Solved! Go to Solution.
- Tags:
- nagios
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2009 05:30 AM
тАО09-30-2009 05:30 AM
Solution
Hi:
You would produce these errors (at least in part) if the server on which you are running did _not_ have pseudoswap enabled. That is, you would be missing the "memory" line in the output of 'swapinfo -tam'.
If you like, on the failing server, run:
# swapinfo -tam
...and post that output.
Regards!
...JRF...
You would produce these errors (at least in part) if the server on which you are running did _not_ have pseudoswap enabled. That is, you would be missing the "memory" line in the output of 'swapinfo -tam'.
If you like, on the failing server, run:
# swapinfo -tam
...and post that output.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2009 05:34 AM
тАО09-30-2009 05:34 AM
Re: Get Syntax Error when running a nagios Script
Hi James, you├В┬┤re right, check the output:
burbsdq1:/usr/local/nagios/libexec#swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8192 0 8186 0% 0 - 1 /dev/vg00/lvol2
dev 25600 0 25594 0% 0 - 1 /dev/vg00/lvswap2
reserve - 17666 -17666
total 33792 17666 16114 52% - 0 -
burbsdq1:/usr/local/nagios/libexec#swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8192 0 8186 0% 0 - 1 /dev/vg00/lvol2
dev 25600 0 25594 0% 0 - 1 /dev/vg00/lvswap2
reserve - 17666 -17666
total 33792 17666 16114 52% - 0 -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2009 11:31 PM
тАО09-30-2009 11:31 PM
Re: Get Syntax Error when running a nagios Script
Indeed the responsible variable for that is called
swapmem_on
and it was with value=0, so I had to changed it with the command
kmtune -s swapmem_on=1
Now we're waiting to reboot the server as it is needed to apply the changes.
Thanks James!!
Regards,
swapmem_on
and it was with value=0, so I had to changed it with the command
kmtune -s swapmem_on=1
Now we're waiting to reboot the server as it is needed to apply the changes.
Thanks James!!
Regards,
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP