|
|
| Author |
Message |
raz
Joined: 18 Jun 2008 Posts: 22
|
Posted: Wed Aug 06, 2008 8:09 am Post subject: Failure to create graphs for new device |
|
|
Hi,
Following upgrade from 0.8.6h to 0.8.7, I am not able to create graphs for a new device. Graph debug shows:
RRDTool Command:
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Park Royal FA100A -" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Mem Usage" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/src/cacti-0.8.7/rra/park_royal_fa100a__snmp_oid_691.rrd":snmp_oid:AVERAGE \
AREA:a#F5F800:"" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
ERROR: opening '/usr/local/src/cacti-0.8.7/rra/park_royal_fa100a__snmp_oid_691.rrd': No such file or directory
"
poller is running as root, so there is no permissions issue. I am sure if I try creating the rrd file manually it would work.
Debug from cacti.log file for the device shows:
"08/06/2008 12:52:33 PM - CMDPHP: Poller[0] Host[119] PING: Ping not performed due to setting.
08/06/2008 12:52:33 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "update host set status = '1', status_event_cou
nt = '19', status_fail_date = '0000-00-00 00:00:00', status_rec_date = '0000-00-00 00:00:00', status_last_e
rror = 'Ping not performed due to setting.', min_time = '9.99999', max_time = '0.00000', cur_time = '0.0000
0', avg_time = '0.00000', total_polls = '20', failed_polls = '20', availability = '0' where hostname = '10.
xx.xx.xx'"
"
I am running cacti on a slackware box.
PHP Version 5.1.4
PHP OS Linux
PHP uname Linux 2.6.22.5 #1 Fri Aug 24 16:58:58 BST 2007 i686
PHP SNMP Not Installed
max_execution_time 30
Device detection method is PING and SNMP.
Any ideas why rrd file can not be generated for this new device?
Regards |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Mon Aug 11, 2008 2:23 pm Post subject: |
|
|
Please switch to detecion=SNMP only
Reinhard |
|
| Back to top |
|
 |
raz
Joined: 18 Jun 2008 Posts: 22
|
Posted: Tue Aug 12, 2008 3:31 am Post subject: |
|
|
Thanks for your reply.
I tried switching device detection mode to SNMP only. But still debug logs showing same message as before.
08/12/2008 09:27:24 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "update host set status = '1', status_event_count = '1700', status_fail_date = '0000-00-00 00:00:00', status_rec_date = '0000-00-00 00:00:00', status_last_error = 'Ping not performed due to setting.', min_time = '9.99999', max_time = '0.00000', cur_time = '0.00000', avg_time = '0.00000', total_polls = '1701', failed_polls = '1701', availability = '0' where hostname = '10.xx.xx.xx'"
Let me know if you need any further debug information or anything that might help us to nail this issue down.
Regards |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Tue Aug 12, 2008 2:50 pm Post subject: |
|
|
This line does not help. Instead look for | Quote: | | 08/06/2008 12:52:33 PM - CMDPHP: Poller[0] Host[119] PING: Ping not performed due to setting. | or the like
Reinhard |
|
| Back to top |
|
 |
raz
Joined: 18 Jun 2008 Posts: 22
|
Posted: Wed Aug 13, 2008 3:53 am Post subject: |
|
|
Thanks Reinhard.
You are right about the focal point.
I have been concentrating on this particular PING settings issue in the logs. Tried lots of different settings but none seemed to work.
I observed errors about no sock support in PHP as well, with no SNMP support in php. I decided to recompile PHP with SNMP and socket support. It was coming up with some error about SNMP openssl, though I installed openssl on the box. Later on after giving up on SNMP support with PHP I just recompiled PHP with socket support.
Following this my dead graphs came to life, and I could see abstract art on my graphs.
This also resolved the error "Ping not performed due to setting." and devices are now shown as UP and available.
I am still seeing a different error "PING: ICMP Ping timed out". Not sure why is this happening, because if I manually try pinging this target device using ping.pl script in scripts directory I am getting a response.
Any idea why is cacti.log reporting time out?
Regards |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|