File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ Monitoring Plugins:
3434* about-me: error in perfdata if using ` --dmidecode ` and there is no HW information
3535* about-me: fix various errors with ` sys_dimensions ` on some machines
3636* by-ssh: add missing ` --verbose ` parameter
37+ * ntp-* : prevent ` TypeError: ''=' not supported between instances of 'int' and 'str' `
3738
3839
3940### Changed ("refactor", "chore" etc.)
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import lib.shell
2222from lib .globals import (STATE_OK , STATE_UNKNOWN , STATE_WARN )
2323
2424__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
25- __version__ = '2025100601 '
25+ __version__ = '2025120201 '
2626
2727DESCRIPTION = '''This plugin checks the clock offset of ntpd in milliseconds
2828 compared to ntp servers.'''
@@ -56,6 +56,7 @@ def parse_args():
5656 help = lib .args .help ('--stratum' ) + ' '
5757 + 'Default: %(default)s' ,
5858 dest = 'STRATUM' ,
59+ type = int ,
5960 default = DEFAULT_STRATUM ,
6061 )
6162
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import lib.shell
2121from lib .globals import (STATE_OK , STATE_UNKNOWN , STATE_WARN )
2222
2323__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
24- __version__ = '2025100601 '
24+ __version__ = '2025120201 '
2525
2626DESCRIPTION = '''This plugin checks the state of systemd-timesyncd.'''
2727
@@ -44,6 +44,7 @@ def parse_args():
4444 help = lib .args .help ('--stratum' ) + ' '
4545 + 'Default: %(default)s' ,
4646 dest = 'STRATUM' ,
47+ type = int ,
4748 default = DEFAULT_STRATUM ,
4849 )
4950
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import lib.txt
2323from lib .globals import (STATE_OK , STATE_UNKNOWN , STATE_WARN )
2424
2525__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
26- __version__ = '2025100601 '
26+ __version__ = '2025120201 '
2727
2828DESCRIPTION = '''This monitoring plugin runs `w32tm /query /status /verbose` (Windows)
2929 to help diagnose problems with the time settings.'''
@@ -58,6 +58,7 @@ def parse_args():
5858 help = lib .args .help ('--stratum' ) + ' '
5959 + 'Default: %(default)s' ,
6060 dest = 'STRATUM' ,
61+ type = int ,
6162 default = DEFAULT_STRATUM ,
6263 )
6364
You can’t perform that action at this time.
0 commit comments