HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- errors in Alarmdef file
Operating System - HP-UX
1834007
Members
1961
Online
110063
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
Forums
Discussions
Discussions
Discussions
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
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
08-27-2001 01:11 AM
08-27-2001 01:11 AM
this is a part of my alarmdef file.... what's wrong?
the error is : IF conditions must be followed by THEN clause.
("/var/opt/perf/alarmdef", near line - 33)
this is a part :
alarm CPU_Bottleneck > 60 and omniagent:APP_ALIVE_PROC == 0 for 5 minutes
type = "CPU"
start
if CPU_Bottleneck > 80 and omniagent:APP_ALIVE_PROC == 0 for 5 minutes then
red alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
else
yellow alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
repeat every 15 minutes
if CPU_Bottleneck > 80 and omniagent:APP_ALIVE_PROC == 0 for 5 minutes then
red alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
else
yellow alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
end
reset alert "End of CPU Bottleneck Alert"
the error is : IF conditions must be followed by THEN clause.
("/var/opt/perf/alarmdef", near line - 33)
this is a part :
alarm CPU_Bottleneck > 60 and omniagent:APP_ALIVE_PROC == 0 for 5 minutes
type = "CPU"
start
if CPU_Bottleneck > 80 and omniagent:APP_ALIVE_PROC == 0 for 5 minutes then
red alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
else
yellow alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
repeat every 15 minutes
if CPU_Bottleneck > 80 and omniagent:APP_ALIVE_PROC == 0 for 5 minutes then
red alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
else
yellow alert "CPU Bottleneck probability= ", CPU_Bottleneck, "%"
end
reset alert "End of CPU Bottleneck Alert"
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2001 01:45 AM
08-27-2001 01:45 AM
Solution
It looks to me that you don't have your test condition in brackets or parentheses, whichever shell you are using, or you need to separate the last word of your test and then with a semicolon. Or, try putting the then on a different line. Good luck an hope I have helped.
Chris
Chris
It wasn't me!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2001 02:03 AM
08-27-2001 02:03 AM
Re: errors in Alarmdef file
in brackets didn't work...
different lines AND brackets did
thanx!!
different lines AND brackets did
thanx!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2001 04:39 AM
08-27-2001 04:39 AM
Re: errors in Alarmdef file
You may also have the then on the same line if you separate the ] and then with a semicolon. Maybe too much info since it works, but I thought I'd offer it up as a style point. I am always happy to help. Good luck.
Chris
Chris
It wasn't me!!!!
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP