Hi
i've got cacti instal 8.7.g and having trouble with the add_graphs.php script
i can add bytes in/out graph fine:
php -q add_graphs.php --host-id=23 --graph-type=ds --graph-template-id=25 --snmp-query-id=1 --snmp-query-type-id=16 --snmp-field=ifOperStatus --snmp-value=Up
however, attempt to add errors/discards just throws the help menu back up:
php -q add_graphs.php --host-id=23 --graph-type=ds --graph-template-id=22 --snmp-query-id=1 --snmp-query-type-id=2 --snmp-field=ifOperStatus –snmp-value=Up
- it doesnt work even if i delete all the datasources for host 23 prior to running....
does it need extra paramters? does the grpah template not match the snmp query type? is the feng shui in the office wrong?
thanks in advance for your help
add_graphs.php not working for discards/errors
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: add_graphs.php not working for discards/errors
Did you install all patches? My results are fine:
R.
Code: Select all
php -q add_graphs.php --host-id=2 --graph-type=ds --graph-template-id=22 --snmp-query-id=1 --snmp-query-type-id=2 --snmp-field=ifOperStatus --snmp-value=Up
Graph Added - graph-id: (1283) - data-source-ids: (128, 128)
Graph Added - graph-id: (1284) - data-source-ids: (129, 129)
Re: add_graphs.php not working for discards/errors
hi, thank you for looking into this. i dont have the patches installed as none of them seemed to touch the add_graphs cli script....
its some weird copy and paste thing (i'm writting a doc as i go and paste stuff back and forth between a terminal window and the doc) - think the '-' gets turned into something by the word processor.
i pasted the command from your post and it worked...
# php -q add_graphs.php --host-id=3 --graph-type=ds --graph-template-id=22 --snmp-query-id=1 --snmp-query-type-id=2 --snmp-field=ifOperStatus –-snmp-value=Up
# php -q add_graphs.php --host-id=3 --graph-type=ds --graph-template-id=22 --snmp-query-id=1 --snmp-query-type-id=2 --snmp-field=ifOperStatus --snmp-value=Up
the top one is mine original - it bombs out, the bottom one is yours and its fine...
anywho - yet another copy/paste blight
thanks for looking into this, all solved.
its some weird copy and paste thing (i'm writting a doc as i go and paste stuff back and forth between a terminal window and the doc) - think the '-' gets turned into something by the word processor.
i pasted the command from your post and it worked...
# php -q add_graphs.php --host-id=3 --graph-type=ds --graph-template-id=22 --snmp-query-id=1 --snmp-query-type-id=2 --snmp-field=ifOperStatus –-snmp-value=Up
# php -q add_graphs.php --host-id=3 --graph-type=ds --graph-template-id=22 --snmp-query-id=1 --snmp-query-type-id=2 --snmp-field=ifOperStatus --snmp-value=Up
the top one is mine original - it bombs out, the bottom one is yours and its fine...
anywho - yet another copy/paste blight
thanks for looking into this, all solved.
Who is online
Users browsing this forum: No registered users and 7 guests