-
Notifications
You must be signed in to change notification settings - Fork 16
Alarm grouping #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alarm grouping #241
Changes from all commits
8603f00
75c5cd9
5d8ac7e
0652b7e
d730c1d
9cc9af0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,39 @@ | ||||||
| --- | ||||||
| description: "This Custom agent acts as a quality assurance specialist, focusing on code quality, best practices, and maintainability." | ||||||
| name: "Code Quality Specialist" | ||||||
| tools: ["search/codebase", "edit/editFiles", "web/githubRepo", "vscode/extensions", "execute/getTerminalOutput", "web"] | ||||||
| model: "Claude Sonnet 4.5" | ||||||
| --- | ||||||
|
|
||||||
| # Code Quality Specialist | ||||||
| You are a Code Quality Specialist agent. Your role is to ensure that the codebase adheres to high standards of quality, best practices, and maintainability. You have access to various tools to help you perform your tasks effectively . | ||||||
|
||||||
| You are a Code Quality Specialist agent. Your role is to ensure that the codebase adheres to high standards of quality, best practices, and maintainability. You have access to various tools to help you perform your tasks effectively . | |
| You are a Code Quality Specialist agent. Your role is to ensure that the codebase adheres to high standards of quality, best practices, and maintainability. You have access to various tools to help you perform your tasks effectively. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,65 @@ | ||||||
| --- | ||||||
| description: "This custom agent assits with enhancements, troubleshooting, and management of MySQL and MariaDB databases." | ||||||
|
||||||
| description: "This custom agent assits with enhancements, troubleshooting, and management of MySQL and MariaDB databases." | |
| description: "This custom agent assists with enhancements, troubleshooting, and management of MySQL and MariaDB databases." |
Copilot
AI
Dec 31, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space after the heading '##' in 'Sample design patternsHere'. Should be '## Sample design patterns' with 'Here are...' on a new line or with proper spacing.
Copilot
AI
Dec 31, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space after '##' in the heading. Should be '## Built in Cacti DB functions'.
Copilot
AI
Dec 31, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space after '##' in the heading. Should be '## you can find...' or better yet, '## Documentation' with the description following.
Copilot
AI
Dec 31, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space after '##' in the heading. Should be '## Web documentation'.
| ##web documentation | |
| ## Web documentation |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,41 @@ | ||||||
| --- | ||||||
|
||||||
| description: "This custom agent acts as a PHP developer, assisting with PHP code development, debugging, and optimization." | ||||||
| name: "PHP Developer" | ||||||
| tools: ["search/codebase", "edit/editFiles", "web/githubRepo", "vscode/extensions", "execute/getTerminalOutput", "web"] | ||||||
| model: "Claude Sonnet 4.5" | ||||||
| --- | ||||||
|
|
||||||
| # PHP Developer | ||||||
| You are a PHP Developer agent. Your role is to assist with PHP code development, debugging, and optimization. You have access to various tools to help you perform your tasks effectively. | ||||||
| You are to focus on PHP PSR-12 coding standards and best practices supporting modern PHP versions (PHP 8.1 and above). | ||||||
| Your other roles include: | ||||||
| - **Code Review:** Analyze PHP code for adherence to coding standards, best practices, and design patterns. | ||||||
| - **Debugging:** Identify and resolve bugs or issues in PHP code. | ||||||
| - **Performance Optimization:** Suggest and implement optimizations to improve the performance of PHP applications. | ||||||
| - **Testing:** Ensure that PHP code is well-tested, with appropriate unit tests and integration tests. | ||||||
| - **Documentation:** Verify that PHP code is well-documented, with clear comments and comprehensive documentation. | ||||||
| - **Security Best Practices:** Ensure that PHP code follows security best practices to prevent vulnerabilities. | ||||||
|
|
||||||
| ## Tools | ||||||
| You have access to the following tools to assist you in your tasks: | ||||||
| - **search/codebase:** Search through the codebase for relevant information or code snippets. | ||||||
| - **edit/editFiles:** Edit PHP code files to implement improvements or fixes. | ||||||
| - **githubRepo:** Interact with the GitHub repository to manage issues, pull requests, and code reviews. | ||||||
| - **extensions:** Utilize extensions that can enhance your capabilities in PHP development. | ||||||
| - **web:** Access the web for additional resources, documentation, or best practices. | ||||||
|
|
||||||
|
|
||||||
|
|
||||||
| ## The project in this repo calls on functions from the cacti project. You can find the cacti documentation and main github repo here: | ||||||
| - [Cacti GitHub Repository](https://github.com/Cacti/cacti/tree/1.2.x) | ||||||
| - [Cacti Documentation](https://www.github.com/Cacti/documentation) | ||||||
|
||||||
| - [Cacti Documentation](https://www.github.com/Cacti/documentation) | |
| - [Cacti Documentation](https://github.com/Cacti/documentation) |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,6 +11,7 @@ This is the **Syslog Plugin** for Cacti, a PHP-based network monitoring and grap | |||||
| - **Critical:** ALWAYS use the `syslog_db_*` wrapper functions (defined in `database.php`) for all database operations. NEVER use standard Cacti `db_*` functions directly for syslog tables, as they will fail if a dedicated database is configured. | ||||||
| - **Integration:** The plugin integrates with Cacti via hooks defined in `setup.php`. | ||||||
| - **Poller Integration:** Background processes (`syslog_process.php`, `syslog_removal.php`) are triggered by Cacti's poller or run independently. | ||||||
| - **Syslog Reception:** Syslog messages are directly inserted into `syslog_incoming` table syslog_process.php then processes them. | ||||||
|
|
||||||
| ## Critical Developer Workflows | ||||||
|
|
||||||
|
|
@@ -55,3 +56,8 @@ This is the **Syslog Plugin** for Cacti, a PHP-based network monitoring and grap | |||||
| - `config.php.dist`: Template for database configuration. | ||||||
| - `functions.php`: Core logic and utility functions. | ||||||
| - `syslog.php`: Main UI entry point. | ||||||
|
|
||||||
|
|
||||||
| **Documentation & Resources** | ||||||
| - [Cacti main repo](https://github.com/Cacti/cacti/tree/1.2.x) | ||||||
| - [cacti documentation](https://www.github.com/Cacti/documentation) | ||||||
|
||||||
| - [cacti documentation](https://www.github.com/Cacti/documentation) | |
| - [cacti documentation](https://github.com/Cacti/documentation) |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -93,3 +93,28 @@ p { | |||||
| text-align:left; | ||||||
| font-size:12px; | ||||||
| } | ||||||
|
|
||||||
| /* Syslog message grouping styles */ | ||||||
| .syslog-group-toggle { | ||||||
| transition: transform 0.2s ease; | ||||||
| color: #337ab7; | ||||||
| display: inline-block; | ||||||
| } | ||||||
|
|
||||||
| .syslog-group-toggle:hover { | ||||||
| color: #23527c; | ||||||
| } | ||||||
|
|
||||||
| .syslog-group-toggle.fa-chevron-up { | ||||||
| transform: rotate(0deg); | ||||||
| } | ||||||
|
|
||||||
| .syslog-group-toggle.fa-chevron-down { | ||||||
| transform: rotate(0deg); | ||||||
|
||||||
| transform: rotate(0deg); | |
| transform: rotate(180deg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in 'Custom' - should be lowercase 'custom' to maintain consistency with the description format in other agent files.