Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Livestatus query

With this command, you can check the check interval, retry interval, smart ping timeout, and the max check attempts of the host:

...

Code Block
 ~/lib/cmc/icmpreceiver |python3 /local/bin/dump.py |grep --line-buffered  "127.0.0.1" |ts -i



if perl If Perl is not possible, you will find it here:   https://unix.stackexchange.com/questions/26728/prepending-a-timestamp-to-each-line-of-output-from-a-command

...

Code Block
#!/usr/bin/env python3

import ipaddress
import sys

def main() -> None:
    while True:
        addr = ipaddress.ip_address(sys.stdin.buffer.read(4))
        sys.stdout.write(f"{addr!s}\n")
        sys.stdout.flush()

if __name__ == "__main__":
    main()           


you You can use this online instead of the ./dump.py:

...