PNP4Nagios Timesamp
Posted: Tue Oct 20, 2015 10:38 am
I have PNP4Nagios setup to monitor and create graphs of some services in my environment. I have also created a script to download the performance data to a file for reporting and analysis purposes. like:
everything seems fine. the generated file is something like:
However, I'm having a trouble understanding the timestamp format. I can see there is a increment of 60 each row. I'm assuming these are seconds. But I still can't figure out the actual time
Code: Select all
curl http://nagiosadmin:password@ipaddress/pnp4nagios/xport/csv\?host=host1\&srv=Temperature\&start=-1day > /usr/local/pnp4nagios/reports/daily-`date +%y-%m-%d`.csv
Code: Select all
timestamp;TempC_MIN;TempC_MAX;TempC_AVERAGE
1444951020;3.01;3.01;3.01
1444951080;3.0233333333;3.0233333333;3.0233333333
1444951140;3.1216666667;3.1216666667;3.1216666667
1444951200;3.2233333333;3.2233333333;3.2233333333
1444951260;3.3333333333;3.3333333333;3.3333333333
1444951320;3.51;3.51;3.51
1444951380;3.5233333333;3.5233333333;3.5233333333
1444951440;3.6216666667;3.6216666667;3.6216666667