uptime and who giving improper or no output

Hello Everyone,

One of our servers is showing a strange issue, let me paste the output

root # uptime
  4:37pm  3 users,  load average: 0.00, 0.04, 0.04

Its been running since months but you can see after time there isn't any output like up 191 days(s).

Even the who command with b and r option isn't giving any output.

 
root # who -b
root #
root # who -r
root #

the date command displays correct output.

I am not sure but is it because someone has played with utmpx and wtmpx files, is reboot the only solution we have.

Can anyone help us since we don't intend to reboot the server for such a reason and also no one has complained till yet.

Regards,
Vishal

Certainly, that would be a good explanation.

It might stay broken even after a reboot, depending on how badly these files were damaged.

Copying these files from another server that has a similar uptime, although a hack, might help if you don't want to reboot. In case you reboot and the commands are still broken, clear these files and reboot again.