PNP4Nagios Timesamp

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
YDardeer
Posts: 12
Joined: Mon Dec 24, 2012 4:38 am

PNP4Nagios Timesamp

Post by YDardeer »

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:

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
everything seems fine. the generated file is something like:

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
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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: PNP4Nagios Timesamp

Post by jdalrymple »

Is this what you're after:

https://en.wikipedia.org/wiki/Unix_time

I'm not seeing anything otherwise confusing.
Locked