<feed xmlns='http://www.w3.org/2005/Atom'>
<title>monitoring-plugins/plugins-scripts/check_uptime.pl, branch 3.0.0-rc3</title>
<subtitle>Monitoring Plugins
</subtitle>
<id>https://www.monitoring-plugins.org/repositories/monitoring-plugins/atom?h=3.0.0-rc3</id>
<link rel='self' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/atom?h=3.0.0-rc3'/>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/'/>
<updated>2023-04-14T18:35:00Z</updated>
<entry>
<title>Fix a lot of typos reported by codespell</title>
<updated>2023-04-14T18:35:00Z</updated>
<author>
<name>Jan Wagner</name>
<email>waja@cyconet.org</email>
</author>
<published>2023-04-14T14:37:47Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=0f3703e641f0f995a8abb40056cb5430b6c228c4'/>
<id>urn:sha1:0f3703e641f0f995a8abb40056cb5430b6c228c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>check_uptime: Fix lowercase typo in plugin output</title>
<updated>2022-02-15T15:31:23Z</updated>
<author>
<name>Andreas Motl</name>
<email>andreas.motl@elmyra.de</email>
</author>
<published>2022-02-15T00:39:21Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=6c8b45a1691f4ce98f1c559a1e9cd1fef68c0fe2'/>
<id>urn:sha1:6c8b45a1691f4ce98f1c559a1e9cd1fef68c0fe2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>check_uptime: Add option to report uptime in days instead of seconds</title>
<updated>2022-02-15T15:09:47Z</updated>
<author>
<name>Andreas Motl</name>
<email>andreas.motl@elmyra.de</email>
</author>
<published>2022-02-12T13:41:54Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=c99a166a43fb9da42ba68073224921124a435aab'/>
<id>urn:sha1:c99a166a43fb9da42ba68073224921124a435aab</id>
<content type='text'>
Currently, the plugin output is:

  CRITICAL: Uptime is 38829029 seconds.

When using the proposed `--days|-d` option, it will be:

  CRITICAL: Uptime is 449 days.</content>
</entry>
<entry>
<title>Fixed error message, added comment</title>
<updated>2018-06-17T07:42:25Z</updated>
<author>
<name>Bernd Arnold</name>
<email>wopfel@gmail.com</email>
</author>
<published>2018-06-17T07:42:25Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=6a8564fb44ab6914dcc8ec63e8af6477803da080'/>
<id>urn:sha1:6a8564fb44ab6914dcc8ec63e8af6477803da080</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Drop uptime binary call</title>
<updated>2018-06-17T07:36:13Z</updated>
<author>
<name>Bernd Arnold</name>
<email>wopfel@gmail.com</email>
</author>
<published>2018-06-17T07:36:13Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=37f9b45266acfeb45157d3c27a65979b33c57df7'/>
<id>urn:sha1:37f9b45266acfeb45157d3c27a65979b33c57df7</id>
<content type='text'>
No need to call /bin/uptime, since the string can be generated with strftime(...).
</content>
</entry>
<entry>
<title>Added help text for range support</title>
<updated>2018-06-17T07:20:16Z</updated>
<author>
<name>Bernd Arnold</name>
<email>wopfel@gmail.com</email>
</author>
<published>2018-06-17T07:20:16Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=28f4d144f286e115eb2502c6c9e130d26eaba441'/>
<id>urn:sha1:28f4d144f286e115eb2502c6c9e130d26eaba441</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove useless (empty) print</title>
<updated>2018-06-17T07:19:55Z</updated>
<author>
<name>Bernd Arnold</name>
<email>wopfel@gmail.com</email>
</author>
<published>2018-06-17T07:19:55Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=b40d660bb38a7d43934c6c63962e3c50f524e55a'/>
<id>urn:sha1:b40d660bb38a7d43934c6c63962e3c50f524e55a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix typo in check_uptime</title>
<updated>2018-06-13T18:23:21Z</updated>
<author>
<name>Sven Nierlein</name>
<email>sven@nierlein.de</email>
</author>
<published>2018-06-13T18:23:21Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=0b9c85109b3b929993f0afa16cb069e67e94e872'/>
<id>urn:sha1:0b9c85109b3b929993f0afa16cb069e67e94e872</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refactoring</title>
<updated>2018-06-13T15:28:53Z</updated>
<author>
<name>Bernd Arnold</name>
<email>wopfel@gmail.com</email>
</author>
<published>2018-06-13T15:28:53Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=cf157ef84502ed86b006fbb6289b7ec94e8f0eb3'/>
<id>urn:sha1:cf157ef84502ed86b006fbb6289b7ec94e8f0eb3</id>
<content type='text'>
Better alignment.
Avoid duplications ("Exceeds ... threshold").
</content>
</entry>
<entry>
<title>Introducing ranges for warning and critical</title>
<updated>2018-06-13T14:56:22Z</updated>
<author>
<name>Bernd Arnold</name>
<email>wopfel@gmail.com</email>
</author>
<published>2018-06-13T14:56:22Z</published>
<link rel='alternate' type='text/html' href='https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=db499b6f5b82aff65171ac4cfa5b936ba1e5e5ad'/>
<id>urn:sha1:db499b6f5b82aff65171ac4cfa5b936ba1e5e5ad</id>
<content type='text'>
Works as before:
-w 1w -c 2w

New (as before, but also warn if uptime &lt; 5m, and crit if uptime &lt; 2m):
-w 5m:1w -c 2m:2w

(idea by @sni)

Also refactored the time calculation, if a suffix is present:
New sub calc_as_seconds($)
</content>
</entry>
</feed>
