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
Update IRC-Bot.md #7084
Merged
Merged
Update IRC-Bot.md #7084
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,13 @@ Table of Content: | |
- [Commands](#commands) | ||
- [Examples](#examples) | ||
- [Extensions](#extensions) | ||
|
||
- Systemd start up script | ||
|
||
# <a name="about">About</a> | ||
|
||
LibreNMS has an easy to use IRC-Interface for basic tasks like viewing last log-entry, current device/port status and such. | ||
|
||
By default the IRC-Bot will not start when executed and will return an error until at least `$config['irc_host']` and `$config['irc_port']` has been specified inside `config.php`. | ||
By default the IRC-Bot will not start when executed and will return an error until at least `$config['irc_host']` and `$config['irc_port']` has been specified inside `config.php`. (To start the IRC-Bot run ./irc.php ) | ||
|
||
If no channel has been specified with `$config['irc_chan']`, `##librenms` will be used. | ||
The default Nick for the bot is `LibreNMS`. | ||
|
@@ -143,3 +143,21 @@ File: includes/ircbot/echo.inc.php | |
return $this->respond("root shouldn't be online so late!"); | ||
} | ||
``` | ||
|
||
Systemd start up script | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be a heading, see other headings for examples. |
||
|
||
Basic systemd start up script to be placed in /etc/systemd/system/ to start irc service at boot. | ||
|
||
librenms-irc.service script is located at /opt/librenms/misc/ | ||
|
||
Once copied to /etc/systemd/system/ you must run the following commads: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. commads -> commands |
||
|
||
a) chmod 664 /etc/systemd/system/librenms-irc.service | ||
|
||
b) systemctl daemon-reload | ||
|
||
c) systemctl enable librenms-irc.service | ||
|
||
d) systemctl start librenms-irc.service | ||
|
||
It can be stopped or started just like any other systemd script such as systemctl start librenms-irc.service |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This should be a link like the line above it.