Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inverse-inc/packetfence-monitoring-scripts
PacketFence Monitoring Scripts
https://github.com/inverse-inc/packetfence-monitoring-scripts
Last synced: 2 months ago
JSON representation
PacketFence Monitoring Scripts
- Host: GitHub
- URL: https://github.com/inverse-inc/packetfence-monitoring-scripts
- Owner: inverse-inc
- Created: 2016-10-18T12:25:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-13T17:05:11.000Z (about 3 years ago)
- Last Synced: 2024-05-12T00:42:22.549Z (9 months ago)
- Language: Shell
- Size: 68.4 KB
- Stars: 2
- Watchers: 12
- Forks: 4
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# packetfence-monitoring-scripts
## How to add a script
First create a file with the right shebang so it can be executed on remote systems. You also need to add the '#fname' header which will determine the filename the script will have on the remote system.
```
#!/bin/bash
#fname:check-something.shif [ 1 -eq 0 ]; then
echo "1 is not equal to 0. Something must be up"
exit 1
fi
```Then, you need to add it to `monit-script-registry.txt` so its part of the scripts that are pulled down on the remote systems.
The rest is magic