Bug in SLA addition?
Putting together a test box on CentOS 6.4 today to get a feel for it. If it works for us (though there are some hurdles), we'll look at it as a long term replacement to our largely homegrown MRTG installation.
One of the many things I was happy to find that Observium is doing out of the box is Cisco IP SLA graphing. However, I'm running into an issue. The rrds are not being created and the graphs are empty.
I set up config.php to enable_sla, and taking a clue from something I came across in the archives, I ran:
./poller.php -d -h <hostname>
In the debug, a couple of things show up:
SLA 121: jitter IP SLA SVC to Villages Low Priority... RRD[/usr/bin/rrdtool create /usr/local/apps/observium/rrd/<hostname>/sla-121.rrd \ DS:rtt:GAUGE:600:0:300000 --step 300 RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:2976 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:96:360 RRA:MIN:0.5:288:1440 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:96:360 RRA:MAX:0.5:288:1440 ] ERROR: can't parse argument ' DS:rtt:GAUGE:600:0:300000' 17ms at 2013-10-03 11:11:59RRD[cmd[update /usr/local/apps/observium/rrd/<hostname>/sla-121.rrd 1380813119:17] stdout[ERROR: opening '/usr/local/apps/observium/rrd/<hostname>/sla-121.rrd': No such file or directory] stderr[]]
SLA 130: jitter IP SLA SVC to Mote High Priority... RRD[/usr/bin/rrdtool create /usr/local/apps/observium/rrd/<hostname>/sla-130.rrd \ DS:rtt:GAUGE:600:0:300000 --step 300 RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:2976 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:96:360 RRA:MIN:0.5:288:1440 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:96:360 RRA:MAX:0.5:288:1440 ] ERROR: can't parse argument ' DS:rtt:GAUGE:600:0:300000' 10ms at 2013-10-03 11:12:03RRD[cmd[update /usr/local/apps/observium/rrd/<hostname>/sla-130.rrd 1380813123:10] stdout[ERROR: opening '/usr/local/apps/observium/rrd/<hostname>/sla-130.rrd': No such file or directory] stderr[]]
So obviously there's an "ERROR" there about parsing one of the arguments fed to the file creation. Any ideas?
Actually, I figured this out. In:
includes/polling/cisco-sla.inc.php
line 43 is:
rrdtool_create($slarrd, " \ DS:rtt:GAUGE:600:0:300000 ");
It needs to be:
rrdtool_create($slarrd, " \ DS:rtt:GAUGE:600:0:300000 ");
On Thursday, October 03, 2013 12:55:42 PM, Eric Stewart wrote:
Putting together a test box on CentOS 6.4 today to get a feel for it. If it works for us (though there are some hurdles), we'll look at it as a long term replacement to our largely homegrown MRTG installation.
One of the many things I was happy to find that Observium is doing out of the box is Cisco IP SLA graphing. However, I'm running into an issue. The rrds are not being created and the graphs are empty.
I set up config.php to enable_sla, and taking a clue from something I came across in the archives, I ran:
./poller.php -d -h <hostname>
In the debug, a couple of things show up:
SLA 121: jitter IP SLA SVC to Villages Low Priority... RRD[/usr/bin/rrdtool create /usr/local/apps/observium/rrd/<hostname>/sla-121.rrd \ DS:rtt:GAUGE:600:0:300000 --step 300 RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:2976 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:96:360 RRA:MIN:0.5:288:1440 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:96:360 RRA:MAX:0.5:288:1440 ] ERROR: can't parse argument ' DS:rtt:GAUGE:600:0:300000' 17ms at 2013-10-03 11:11:59RRD[cmd[update /usr/local/apps/observium/rrd/<hostname>/sla-121.rrd 1380813119:17] stdout[ERROR: opening '/usr/local/apps/observium/rrd/<hostname>/sla-121.rrd': No such file or directory] stderr[]]
SLA 130: jitter IP SLA SVC to Mote High Priority... RRD[/usr/bin/rrdtool create /usr/local/apps/observium/rrd/<hostname>/sla-130.rrd \ DS:rtt:GAUGE:600:0:300000 --step 300 RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:2976 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:96:360 RRA:MIN:0.5:288:1440 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:96:360 RRA:MAX:0.5:288:1440 ] ERROR: can't parse argument ' DS:rtt:GAUGE:600:0:300000' 10ms at 2013-10-03 11:12:03RRD[cmd[update /usr/local/apps/observium/rrd/<hostname>/sla-130.rrd 1380813123:10] stdout[ERROR: opening '/usr/local/apps/observium/rrd/<hostname>/sla-130.rrd': No such file or directory] stderr[]]
So obviously there's an "ERROR" there about parsing one of the arguments fed to the file creation. Any ideas?
-- -- Eric Stewart - Network Administrator - eric@usf.edu University of South Florida, Information Technology
Just make it
rrdtool_create($slarrd, " DS:rtt:GAUGE:600:0:300000 ");
On Thu, Oct 3, 2013 at 1:12 PM, Eric Stewart eric@usf.edu wrote:
Actually, I figured this out. In:
includes/polling/cisco-sla.**inc.php
line 43 is:
rrdtool_create($slarrd, " \ DS:rtt:GAUGE:600:0:300000 ");
It needs to be:
rrdtool_create($slarrd, " \ DS:rtt:GAUGE:600:0:300000 ");
On Thursday, October 03, 2013 12:55:42 PM, Eric Stewart wrote:
Putting together a test box on CentOS 6.4 today to get a feel for it. If it works for us (though there are some hurdles), we'll look at it as a long term replacement to our largely homegrown MRTG installation.
One of the many things I was happy to find that Observium is doing out of the box is Cisco IP SLA graphing. However, I'm running into an issue. The rrds are not being created and the graphs are empty.
I set up config.php to enable_sla, and taking a clue from something I came across in the archives, I ran:
./poller.php -d -h <hostname>
In the debug, a couple of things show up:
SLA 121: jitter IP SLA SVC to Villages Low Priority... RRD[/usr/bin/rrdtool create /usr/local/apps/observium/rrd/**<hostname>/sla-121.rrd \ DS:rtt:GAUGE:600:0:300000 --step 300 RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:2976 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:96:360 RRA:MIN:0.5:288:1440 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:96:360 RRA:MAX:0.5:288:1440 ] ERROR: can't parse argument ' DS:rtt:GAUGE:600:0:300000' 17ms at 2013-10-03 11:11:59RRD[cmd[update /usr/local/apps/observium/rrd/**<hostname>/sla-121.rrd 1380813119:17] stdout[ERROR: opening '/usr/local/apps/observium/**rrd/<hostname>/sla-121.rrd': No such file or directory] stderr[]]
SLA 130: jitter IP SLA SVC to Mote High Priority... RRD[/usr/bin/rrdtool create /usr/local/apps/observium/rrd/**<hostname>/sla-130.rrd \ DS:rtt:GAUGE:600:0:300000 --step 300 RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:2976 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:96:360 RRA:MIN:0.5:288:1440 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:96:360 RRA:MAX:0.5:288:1440 ] ERROR: can't parse argument ' DS:rtt:GAUGE:600:0:300000' 10ms at 2013-10-03 11:12:03RRD[cmd[update /usr/local/apps/observium/rrd/**<hostname>/sla-130.rrd 1380813123:10] stdout[ERROR: opening '/usr/local/apps/observium/**rrd/<hostname>/sla-130.rrd': No such file or directory] stderr[]]
So obviously there's an "ERROR" there about parsing one of the arguments fed to the file creation. Any ideas?
--
Eric Stewart - Network Administrator - eric@usf.edu University of South Florida, Information Technology ______________________________**_________________ observium mailing list observium@observium.org http://postman.memetic.org/**cgi-bin/mailman/listinfo/**observiumhttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Well, I would agree with that except that if you look at every other instance of rrdtool_create, it looks like they use use the \ with newline. So I was just attempting to be consistent.
On Thursday, October 03, 2013 2:45:24 PM, Mikey wrote:
Just make it
rrdtool_create($slarrd, " DS:rtt:GAUGE:600:0:300000 ");
On Thu, Oct 3, 2013 at 1:12 PM, Eric Stewart <eric@usf.edu mailto:eric@usf.edu> wrote:
Actually, I figured this out. In: includes/polling/cisco-sla.__inc.php line 43 is: rrdtool_create($slarrd, " \ DS:rtt:GAUGE:600:0:300000 "); It needs to be: rrdtool_create($slarrd, " \ DS:rtt:GAUGE:600:0:300000 "); On Thursday, October 03, 2013 12:55:42 PM, Eric Stewart wrote: Putting together a test box on CentOS 6.4 today to get a feel for it. If it works for us (though there are some hurdles), we'll look at it as a long term replacement to our largely homegrown MRTG installation. One of the many things I was happy to find that Observium is doing out of the box is Cisco IP SLA graphing. However, I'm running into an issue. The rrds are not being created and the graphs are empty. I set up config.php to enable_sla, and taking a clue from something I came across in the archives, I ran: ./poller.php -d -h <hostname> In the debug, a couple of things show up: SLA 121: jitter IP SLA SVC to Villages Low Priority... RRD[/usr/bin/rrdtool create /usr/local/apps/observium/rrd/__<hostname>/sla-121.rrd \ DS:rtt:GAUGE:600:0:300000 --step 300 RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:2976 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:96:360 RRA:MIN:0.5:288:1440 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:96:360 RRA:MAX:0.5:288:1440 ] ERROR: can't parse argument ' DS:rtt:GAUGE:600:0:300000' 17ms at 2013-10-03 11:11:59RRD[cmd[update /usr/local/apps/observium/rrd/__<hostname>/sla-121.rrd 1380813119:17] stdout[ERROR: opening '/usr/local/apps/observium/__rrd/<hostname>/sla-121.rrd': No such file or directory] stderr[]] SLA 130: jitter IP SLA SVC to Mote High Priority... RRD[/usr/bin/rrdtool create /usr/local/apps/observium/rrd/__<hostname>/sla-130.rrd \ DS:rtt:GAUGE:600:0:300000 --step 300 RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:2976 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:96:360 RRA:MIN:0.5:288:1440 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:96:360 RRA:MAX:0.5:288:1440 ] ERROR: can't parse argument ' DS:rtt:GAUGE:600:0:300000' 10ms at 2013-10-03 11:12:03RRD[cmd[update /usr/local/apps/observium/rrd/__<hostname>/sla-130.rrd 1380813123:10] stdout[ERROR: opening '/usr/local/apps/observium/__rrd/<hostname>/sla-130.rrd': No such file or directory] stderr[]] So obviously there's an "ERROR" there about parsing one of the arguments fed to the file creation. Any ideas? -- -- Eric Stewart - Network Administrator - eric@usf.edu <mailto:eric@usf.edu> University of South Florida, Information Technology _________________________________________________ observium mailing list observium@observium.org <mailto:observium@observium.org> http://postman.memetic.org/__cgi-bin/mailman/listinfo/__observium <http://postman.memetic.org/cgi-bin/mailman/listinfo/observium>
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- -- Eric Stewart - Network Administrator - eric@usf.edu University of South Florida, Information Technology
Consistency. Psh! Anyway, just recently they moved the --step option to a config variable and moved the logic for --step and RRAs to the rrdtool_create() function. That backslash is a rebel.
On Thu, Oct 3, 2013 at 1:50 PM, Eric Stewart eric@usf.edu wrote:
Well, I would agree with that except that if you look at every other instance of rrdtool_create, it looks like they use use the \ with newline. So I was just attempting to be consistent.
On Thursday, October 03, 2013 2:45:24 PM, Mikey wrote:
Just make it
rrdtool_create($slarrd, " DS:rtt:GAUGE:600:0:300000 ");
On Thu, Oct 3, 2013 at 1:12 PM, Eric Stewart <eric@usf.edu mailto:eric@usf.edu> wrote:
Actually, I figured this out. In: includes/polling/cisco-sla.__**inc.php line 43 is: rrdtool_create($slarrd, " \ DS:rtt:GAUGE:600:0:300000 "); It needs to be: rrdtool_create($slarrd, " \ DS:rtt:GAUGE:600:0:300000 "); On Thursday, October 03, 2013 12:55:42 PM, Eric Stewart wrote: Putting together a test box on CentOS 6.4 today to get a feel for it. If it works for us (though there are some hurdles), we'll look at it as a long term replacement to our largely homegrown MRTG installation. One of the many things I was happy to find that Observium is doing out of the box is Cisco IP SLA graphing. However, I'm running into an issue. The rrds are not being created and the graphs are empty. I set up config.php to enable_sla, and taking a clue from something I came across in the archives, I ran: ./poller.php -d -h <hostname> In the debug, a couple of things show up: SLA 121: jitter IP SLA SVC to Villages Low Priority... RRD[/usr/bin/rrdtool create /usr/local/apps/observium/rrd/**__<hostname>/sla-121.rrd \ DS:rtt:GAUGE:600:0:300000 --step 300 RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:2976 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:96:360 RRA:MIN:0.5:288:1440 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:96:360 RRA:MAX:0.5:288:1440 ] ERROR: can't parse argument ' DS:rtt:GAUGE:600:0:300000' 17ms at 2013-10-03 11:11:59RRD[cmd[update /usr/local/apps/observium/rrd/**__<hostname>/sla-121.rrd 1380813119:17] stdout[ERROR: opening '/usr/local/apps/observium/__**rrd/<hostname>/sla-121.rrd': No such file or directory] stderr[]] SLA 130: jitter IP SLA SVC to Mote High Priority... RRD[/usr/bin/rrdtool create /usr/local/apps/observium/rrd/**__<hostname>/sla-130.rrd \ DS:rtt:GAUGE:600:0:300000 --step 300 RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:2976 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:96:360 RRA:MIN:0.5:288:1440 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:96:360 RRA:MAX:0.5:288:1440 ] ERROR: can't parse argument ' DS:rtt:GAUGE:600:0:300000' 10ms at 2013-10-03 11:12:03RRD[cmd[update /usr/local/apps/observium/rrd/**__<hostname>/sla-130.rrd 1380813123:10] stdout[ERROR: opening '/usr/local/apps/observium/__**rrd/<hostname>/sla-130.rrd': No such file or directory] stderr[]] So obviously there's an "ERROR" there about parsing one of the arguments fed to the file creation. Any ideas? -- -- Eric Stewart - Network Administrator - eric@usf.edu <mailto:eric@usf.edu> University of South Florida, Information Technology ______________________________**___________________ observium mailing list observium@observium.org <mailto:observium@observium.**org<observium@observium.org>
http://postman.memetic.org/__**cgi-bin/mailman/listinfo/__**observium<http://postman.memetic.org/__cgi-bin/mailman/listinfo/__observium> <http://postman.memetic.org/**cgi-bin/mailman/listinfo/**observium<http://postman.memetic.org/cgi-bin/mailman/listinfo/observium>
______________________________**_________________ observium mailing list observium@observium.org http://postman.memetic.org/**cgi-bin/mailman/listinfo/**observiumhttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
--
Eric Stewart - Network Administrator - eric@usf.edu University of South Florida, Information Technology ______________________________**_________________ observium mailing list observium@observium.org http://postman.memetic.org/**cgi-bin/mailman/listinfo/**observiumhttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Yeah, that backslash is the result of a regex to get rid of the step I think. It's not needed; putting it there for consistency is good though.
Only IMO we should get rid of it in every other occasion instead ;-) so it doesn't really matter either way.
I'll try not to forget to commit this fix later.
Tom
On 3/10/2013 21:50, Mikey wrote:
Consistency. Psh! Anyway, just recently they moved the --step option to a config variable and moved the logic for --step and RRAs to the rrdtool_create() function.That backslash is a rebel.
On Thu, Oct 3, 2013 at 1:50 PM, Eric Stewart <eric@usf.edu mailto:eric@usf.edu> wrote:
Well, I would agree with that except that if you look at every other instance of rrdtool_create, it looks like they use use the \ with newline. So I was just attempting to be consistent. On Thursday, October 03, 2013 2:45:24 PM, Mikey wrote: Just make it rrdtool_create($slarrd, " DS:rtt:GAUGE:600:0:300000 "); On Thu, Oct 3, 2013 at 1:12 PM, Eric Stewart <eric@usf.edu <mailto:eric@usf.edu> <mailto:eric@usf.edu <mailto:eric@usf.edu>>> wrote: Actually, I figured this out. In: includes/polling/cisco-sla.__inc.php line 43 is: rrdtool_create($slarrd, " \ DS:rtt:GAUGE:600:0:300000 "); It needs to be: rrdtool_create($slarrd, " \ DS:rtt:GAUGE:600:0:300000 "); On Thursday, October 03, 2013 12:55:42 PM, Eric Stewart wrote: Putting together a test box on CentOS 6.4 today to get a feel for it. If it works for us (though there are some hurdles), we'll look at it as a long term replacement to our largely homegrown MRTG installation. One of the many things I was happy to find that Observium is doing out of the box is Cisco IP SLA graphing. However, I'm running into an issue. The rrds are not being created and the graphs are empty. I set up config.php to enable_sla, and taking a clue from something I came across in the archives, I ran: ./poller.php -d -h <hostname> In the debug, a couple of things show up: SLA 121: jitter IP SLA SVC to Villages Low Priority... RRD[/usr/bin/rrdtool create /usr/local/apps/observium/rrd/__<hostname>/sla-121.rrd \ DS:rtt:GAUGE:600:0:300000 --step 300 RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:2976 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:96:360 RRA:MIN:0.5:288:1440 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:96:360 RRA:MAX:0.5:288:1440 ] ERROR: can't parse argument ' DS:rtt:GAUGE:600:0:300000' 17ms at 2013-10-03 11:11:59RRD[cmd[update /usr/local/apps/observium/rrd/__<hostname>/sla-121.rrd 1380813119:17] stdout[ERROR: opening '/usr/local/apps/observium/__rrd/<hostname>/sla-121.rrd': No such file or directory] stderr[]] SLA 130: jitter IP SLA SVC to Mote High Priority... RRD[/usr/bin/rrdtool create /usr/local/apps/observium/rrd/__<hostname>/sla-130.rrd \ DS:rtt:GAUGE:600:0:300000 --step 300 RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:2976 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:96:360 RRA:MIN:0.5:288:1440 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:96:360 RRA:MAX:0.5:288:1440 ] ERROR: can't parse argument ' DS:rtt:GAUGE:600:0:300000' 10ms at 2013-10-03 11:12:03RRD[cmd[update /usr/local/apps/observium/rrd/__<hostname>/sla-130.rrd 1380813123:10] stdout[ERROR: opening '/usr/local/apps/observium/__rrd/<hostname>/sla-130.rrd': No such file or directory] stderr[]] So obviously there's an "ERROR" there about parsing one of the arguments fed to the file creation. Any ideas? -- -- Eric Stewart - Network Administrator - eric@usf.edu <mailto:eric@usf.edu> <mailto:eric@usf.edu <mailto:eric@usf.edu>> University of South Florida, Information Technology _________________________________________________ observium mailing list observium@observium.org <mailto:observium@observium.org> <mailto:observium@observium.org <mailto:observium@observium.org>> http://postman.memetic.org/__cgi-bin/mailman/listinfo/__observium <http://postman.memetic.org/cgi-bin/mailman/listinfo/observium> _______________________________________________ observium mailing list observium@observium.org <mailto:observium@observium.org> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium -- -- Eric Stewart - Network Administrator - eric@usf.edu <mailto:eric@usf.edu> University of South Florida, Information Technology _______________________________________________ observium mailing list observium@observium.org <mailto:observium@observium.org> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (3)
-
Eric Stewart
-
Mikey
-
Tom Laermans