Can I use |host_snmp_location| to be displayed in the graph template?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
User avatar
EBrander
Cacti User
Posts: 52
Joined: Tue Mar 23, 2004 1:52 pm

Can I use |host_snmp_location| to be displayed in the graph template?

Post by EBrander »

I'd like to add |host_snmp_location| to be in one of my graphs. I tried adding that to a COMMENT and a GPRINT but it only displayed literally |host_snmp_location|.
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Can I use |host_snmp_location| to be displayed in the graph template?

Post by macan »

try |host_snmp_sysLocation|
Let the Cacti grow!
User avatar
EBrander
Cacti User
Posts: 52
Joined: Tue Mar 23, 2004 1:52 pm

Re: Can I use |host_snmp_location| to be displayed in the graph template?

Post by EBrander »

macan wrote: Tue Nov 05, 2024 10:01 am try |host_snmp_sysLocation|
Perfect, thank you!
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Can I use |host_snmp_location| to be displayed in the graph template?

Post by macan »

Hint - the name must be the same as in the mysql host table

so try "describe host" in mysql
Let the Cacti grow!
dallenk
Posts: 19
Joined: Sat Nov 26, 2011 3:21 am

Re: Can I use |host_snmp_location| to be displayed in the graph template?

Post by dallenk »

macan wrote: Thu Nov 07, 2024 2:31 am so try "describe host" in mysql
this is a fantastic tip! I had no idea about this until now. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests