Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Commit 50b82f0

Browse files
Fix --test to always print out vsnap missing message, adjusted warning/error for vsnap and server
1 parent 60c7fa6 commit 50b82f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/sppmonMethods/other.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ def test_connection(influx_client: InfluxClient, rest_client: RestClient, config
7474
LOGGER.info(f">> No {type.name} client detected.")
7575

7676
if(type == SshTypes.SERVER):
77-
ExceptionUtils.error_message(">> Server is not declared as SSH-client. This one is required for process-statistics.")
77+
ExceptionUtils.error_message(">> Critical: Without Server as ssh client you wont have any process statistics available. These are a key part of SPPMon.")
7878
ssh_working = False # No error, but still critical
7979

80-
if(type == SshTypes.VSNAP , ssh_clients):
81-
LOGGER.info(">> WARNING: No vSnap-client detected. You may add vSnap's for additional storage information and alerts.")
80+
if(type == SshTypes.VSNAP):
81+
LOGGER.info(">> WARNING: Without vSnap as ssh client you have no access to storage information. You may add vSnap's for additional monitoring and alerts.")
8282
no_warnings = False # ssh will still work, but thats definitly a warning
8383

8484
ssh_methods: SshMethods = SshMethods(influx_client, config_file, False)

0 commit comments

Comments
 (0)