Page 1 of 1

avail.cgi units?

Posted: Tue Jun 18, 2019 4:22 pm
by SteveBeauchemin
What are the units for TOTAL_TIME_DOWN when using avail.cgi?

Thanks

Steve B

Re: avail.cgi units?

Posted: Tue Jun 18, 2019 4:29 pm
by scottwilkerson
seconds

Re: avail.cgi units?

Posted: Tue Jun 18, 2019 4:30 pm
by SteveBeauchemin
wow. I had a server down for 50 hours last month...

Thanks

Steve B

Re: avail.cgi units?

Posted: Tue Jun 18, 2019 4:38 pm
by SteveBeauchemin
Is it seconds when I run it from the command line and look at csv data?

Code: Select all

# This is 24x7
TIME="24x7"
export REQUEST_METHOD="GET"
export REMOTE_USER="nagiosadmin"
export QUERY_STRING="host=all&timeperiod=lastmonth&rpttimeperiod=24x7&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringnotrunning=yes&includesoftstates=no&initialassumedhoststate=0&initialassumedservicestate=0&backtrack=4&csvoutput="
/usr/local/nagios/sbin/avail.cgi > ${HOME}/${BASE}-${TIME}.csv
I'm not looking at a web page... I have a number 190100 in the response, and if that is seconds then someone is in trouble for leaving a system in a bad state for a long time. It wasn't me, I swear...

Still seconds?

Steve B

Re: avail.cgi units?

Posted: Tue Jun 18, 2019 4:57 pm
by scottwilkerson
SteveBeauchemin wrote:I'm not looking at a web page... I have a number 190100 in the response, and if that is seconds then someone is in trouble for leaving a system in a bad state for a long time. It wasn't me, I swear...

Still seconds?
The CSV is how I double checked... I have a fake server I knew was down for a whole day and in the CSV it showed 86400 on a one day custom report

Re: avail.cgi units?

Posted: Wed Jun 19, 2019 9:13 am
by SteveBeauchemin
Thanks Scott.

I'll pass on the bad news to the person double checking the report.

Please close this.

Steve B

Re: avail.cgi units?

Posted: Wed Jun 19, 2019 9:48 am
by SteveBeauchemin
If my Users would just look in the Nagios GUI like they should...
50 hours? That can't be right...
outage.PNG

Re: avail.cgi units?

Posted: Wed Jun 19, 2019 10:59 am
by scottwilkerson
:o :shock: