I am using checkcounter from check_nrpe to check out for how long an application is started. The command goes like this:
./check_nrpe -h (IP-Address) -c checkcounter -a (Process and time) ShowAll
Host replies with "OK: (Process and time): 34920.4
I want to get only the number and show it in days, hours, minutes and seconds. I also would like not to be showing all the text, just simply the number, and trim the text. Anyone knows how?
Thank you very much!