|
|
| Author |
Message |
oxo-oxo Cacti User
Joined: 30 Aug 2007 Posts: 106 Location: Silkeborg, Denmark
|
Posted: Mon Sep 03, 2007 12:37 pm Post subject: add_graphs.php: suggestion |
|
|
Hi
It would be nice if the --list-hosts option would produce
Known Hosts:(id, hostname,Host Template,description )
1 127.0.0.1 Linux Local Machine localhost
This would make it easier for my script to add graphs to hosts of a certain Host Template ... |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Tue Sep 04, 2007 6:19 am Post subject: |
|
|
Also, if the separator is not a "tab" already, we should make it one. Hmm. Let me see...
TheWitness |
|
| Back to top |
|
 |
danathane Cacti User
Joined: 03 May 2007 Posts: 127
|
Posted: Tue Sep 11, 2007 10:04 am Post subject: |
|
|
Hello, i use the add_graphs.php script, and i have a little problem.
I would like to monitor my "/ " partition on Linux, but I can't find the correct synthax to greate the graph.
Do you have any idea?
here are my tries :
| Code: |
php add_graphs.php --graph-type ds --graph-template-id 21 --host-id 27 --snmp-query-id 2 --snmp-query-type-id 6 --snmp-field dskMount --snmp-value /
php add_graphs.php --graph-type cg --graph-template-id 31 --host-id 27
|
|
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5439 Location: Wisconsin, USA
|
Posted: Tue Sep 11, 2007 10:16 am Post subject: |
|
|
Try:
| Code: |
php add_graphs.php --graph-type ds --graph-template-id 21 --host-id 27 --snmp-query-id 2 --snmp-query-type-id 6 --snmp-field dskMount --snmp-value "/" |
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Tue Sep 11, 2007 11:30 am Post subject: |
|
|
Better yet, try:
| Code: | | php add_graphs.php --graph-type=ds --graph-template-id=21 --host-id=27 --snmp-query-id=2 --snmp-query-type-id=6 --snmp-field="dskMount" --snmp-value="/" |
The Linux notation for "--" is always "--parameter=value", not "--parameter value"
TheWitness |
|
| Back to top |
|
 |
|