1- .TH NOIRNET 1 "November 22, 2024" "1.0.0 " "NoirNet Manual "
1+ .TH NOIRNET 1 "November 22, 2024" "Version 1.0.1 " "User Commands "
22.SH NAME
3- NoirNet \- Monitors internet and DNS access and sends notifications
3+ NoirNet \- Monitors internet and DNS access and sends notifications.
44
55.SH SYNOPSIS
66.B noirnet
7- [ \fI options \fR ]
7+ . RI [ options ]
88
99.SH DESCRIPTION
1010.B NoirNet
11- is a script that monitors the device's internet and DNS access and sends notifications via Pushover and desktop notifications .
11+ is a script designed to monitor the device's internet and DNS access. It logs downtime and sends notifications via desktop or Pushover .
1212
1313.SH OPTIONS
1414.TP
@@ -18,37 +18,34 @@ Display this help message.
1818.B \- V, \-\- version
1919Display the application version.
2020.TP
21- .B \- i, \-\- interval \fI seconds \fR
22- Set the interval between checks (default: 60 seconds).
23- .TP
24- .B \- c, \-\- config \fI config_file \fR
25- Specify a custom configuration file (default: ~/.noirnetrc).
21+ .B \- c, \-\- config \fI <config_file> \fP
22+ Specify a custom configuration file (default: $HOME/.noirnetrc).
2623.TP
2724.B \- I, \-\- init
2825Initialize the configuration file.
2926.TP
30- .B \- F, \-\- force-init
31- Force initialize the configuration file if one exists.
27+ .B \- F, \-\- force\ - init
28+ Force initialization of the configuration file if one exists.
3229.TP
33- .B \- s, \-\- show-config
30+ .B \- s, \-\- show\ - config
3431Show the configuration settings.
3532.TP
36- .B \- S, \-\- show-config-file
33+ .B \- S, \-\- show\ - config\ - file
3734Show the configuration file.
3835.TP
3936.B \- C, \-\- clean
4037Delete all cached files.
4138.TP
42- .B \- k, \-\- cache-dir \fI path \fR
39+ .B \- k, \-\- cache\ -dir \fI <path> \fP
4340Specify a custom cache directory.
4441.TP
4542.B \- p, \-\- pushover
4643Send Pushover notifications.
4744.TP
48- .B \- a, \-\- api-token \fI token \fR
45+ .B \- a, \-\- api\ -token \fI <token> \fP
4946Specify the API token for Pushover notifications.
5047.TP
51- .B \- u, \-\- user-key \fI key \fR
48+ .B \- u, \-\- user\ -key \fI <key> \fP
5249Specify the user key for Pushover notifications.
5350.TP
5451.B \- d, \-\- desktop
@@ -60,19 +57,22 @@ Enable verbose output.
6057.B \- l, \-\- log
6158Log the log file to the screen.
6259.TP
63- .B \- o, \-\- output \fI file \fR
60+ .B \- o, \-\- output \fI <file> \fP
6461Specify a custom log file location.
6562.TP
66- .B \- L, \-\- log-level \fI level \fR
63+ .B \- L, \-\- log\ -level \fI <level> \fP
6764Set the log level (FATAL, ERROR, WARN, INFO, DEBUG).
6865.TP
69- .B \- P, \-\- ping-target \fI IP \fR
66+ .B \- i, \-\- interval \fI <seconds> \fP
67+ Set the interval between checks (default: 60 seconds).
68+ .TP
69+ .B \- P, \-\- ping\-target \fI <IP> \fP
7070Set a custom ping target (default: 8.8.8.8).
7171.TP
72- .B \- D, \-\- dns-test-domain \fI domain \fR
72+ .B \- D, \-\- dns\ -test\ -domain \fI <domain> \fP
7373Set a custom DNS test domain (default: example.com).
7474.TP
75- .B \- T, \-\- timeout \fI seconds \fR
75+ .B \- T, \-\- timeout \fI <seconds> \fP
7676Set the timeout for ping and DNS tests (default: 5 seconds).
7777.TP
7878.B \- r, \-\- start
@@ -90,10 +90,10 @@ Run interactively with default settings:
9090.B noirnet
9191.TP
9292Run interactively with custom targets:
93- .B noirnet \-\- ping-target 1.1.1.1 \-\- dns-test-domain google.com
93+ .B noirnet \-\- ping\ -target 1.1.1.1 \-\- dns\ -test\ -domain google.com
9494.TP
9595Start the service with custom targets:
96- .B noirnet \-\- ping-target 1.1.1.1 \-\- dns-test-domain google.com \-\- start
96+ .B noirnet \-\- ping\ -target 1.1.1.1 \-\- dns\ -test\ -domain google.com \-\- start
9797.TP
9898Check service status:
9999.B noirnet \-\- status
@@ -107,5 +107,27 @@ John Smith III
107107.SH LICENSE
108108MIT License
109109
110+ .SH FILES
111+ .TP
112+ .B $HOME/.noirnetrc
113+ Default configuration file.
114+ .TP
115+ .B /tmp/noirnet_cache
116+ Directory to store all cache files.
117+ .TP
118+ .B /tmp/noirnet_cache/noirnet.log
119+ Default log file location.
120+ .TP
121+ .B /tmp/noirnet_cache/noirnet.pid
122+ Lock file.
123+ .TP
124+ .B /tmp/noirnet_cache/network_downtime.csv
125+ CSV file for network downtime history.
126+ .TP
127+ .B /tmp/noirnet_cache/dns_downtime.csv
128+ CSV file for DNS downtime history.
129+
110130.SH SEE ALSO
111- ping(8), nslookup(1), curl(1)
131+ .BR ping (8),
132+ .BR nslookup (1),
133+ .BR curl (1)
0 commit comments