Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


add_graphs.php: suggestion

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions
Author Message
oxo-oxo
Cacti User


Joined: 30 Aug 2007
Posts: 106
Location: Silkeborg, Denmark

PostPosted: Mon Sep 03, 2007 12:37 pm    Post subject: add_graphs.php: suggestion Reply with quote

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

PostPosted: Tue Sep 04, 2007 6:19 am    Post subject: Reply with quote

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

PostPosted: Tue Sep 11, 2007 10:04 am    Post subject: Reply with quote

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: 5448
Location: Wisconsin, USA

PostPosted: Tue Sep 11, 2007 10:16 am    Post subject: Reply with quote

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

PostPosted: Tue Sep 11, 2007 11:30 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group