Getting incorrect results when trying to get uptime data fro


#1

I’m developing a script which parses a csv file generated from the above cgi, the entire url is -

](http://)/nagios/cgi-bin/avail.cgi?show_log_entries=&host=all&timeperiod=custom&smon=8&sday=1&syear=2008&shour=0&smin=0&ssec=0&emon=8&eday=31&eyear=2008&ehour=24&emin=0&esec=0&rpttimeperiod=24x7_exclude_restart&assumeinitialstates=yes&assumestateretention=yes&assumestatesduringnotrunning=yes&includesoftstates=no&initialassumedhoststate=0&initialassumedservicestate=0&backtrack=4&csvoutput=

The attached jpg below show the uptime for our host ‘almaak’, the uptime is reported as 99.708%. Below is the line from the generated csv file -

“almaak.its”, 7706, 8.286%, 8.286%, 85294, 91.714%, 91.714%, 93000, 100.000%, 100.000%, 6694, 7.198%, 7.198%, 4294960602, -7.198%, -7.198%, 0, 0.000%, 0.000%, 0, 0.000%, 0.000%, 0, 0.000%, 0.000%, 0, 0.000%, 0.000%, 0, 0.000%, 0, 0.000%, 0, 0.000%

Which reports the uptime as 100%

Thanks in advance to anyone who has any ideas/advice

Scott
%between%{e_FILE}public/1220511169_11038_FT0_nagios_.jpg