What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

ubuntu uptime sensor

Votes:

0

after some tweaking i got this to work. requirement to install putty/plink script:

---
@echo off
set SERVER=%1
set USERNAME=%2
set PASSWORD=%3

plink %USERNAME%@%SERVER% -pw "%PASSWORD%" -batch  echo $(($(awk -F . '{print $1}' /proc/uptime)/86400))
---

script ubuntu uptime

Created on May 2, 2022 10:02:10 AM

Last change on May 2, 2022 3:06:30 PM by  Felix Wiesneth [Paessler Support]



Replies

Nobody has replied yet


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.