Update to fix uptime verification with "check_centreon_snmp_uptime".

For more information : http://trac.centreon.com/ticket/29

git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@5347 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Damien Duponchelle 2008-06-11 08:52:59 +00:00
parent 4df6f928b3
commit f841898429
2 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,8 @@ HR_STORAGE_SIZE=.1.3.6.1.2.1.25.2.3.1.5
HR_STORAGE_USED=.1.3.6.1.2.1.25.2.3.1.6
OBJECTID=.1.3.6.1.2.1.1.1.0
UPTIME_WINDOWS=.1.3.6.1.2.1.1.3.0
UPTIME_OTHER=.1.3.6.1.2.1.25.1.1.0
#UPTIME_OTHER=.1.3.6.1.2.1.25.1.1.0
UPTIME_OTHER=.1.3.6.1.2.1.1.3.0
IF_IN_OCTET=.1.3.6.1.2.1.2.2.1.10
IF_OUT_OCTET=.1.3.6.1.2.1.2.2.1.16
IF_SPEED=.1.3.6.1.2.1.2.2.1.5

View File

@ -133,7 +133,7 @@ if ($opt_d) {
if ($un || ( $un == 0) ){
if ($opt_d) {
print "OK - Uptime (in day): $un|uptime=".$un."hs\n";
print "OK - Uptime (in day): $un|uptime=".$un."day\(s\)\n";
} else {
print "OK - Uptime (in hundredths of a second): $un|uptime=".$un."hs\n";
}