Format Command in THOLD

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
bmfmancini
Cacti User
Posts: 249
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Format Command in THOLD

Post by bmfmancini »

Hey Guys

I am trying to format the vairables to pass from THOLD into a script that does a curl
I have been able to get as far as get the hostname and IP along with Errorrs but I cant get which interface the errors are on
which Variable would I need to pass to get this ?
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
bmfmancini
Cacti User
Posts: 249
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Format Command in THOLD

Post by bmfmancini »

I have passed these variables

<DESCRIPTION> <HOSTNAME> <DSNAME> <CURRENTVALUE> <GRAPH>
which gets me the hostname IP and errors but no interface name
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: Format Command in THOLD

Post by netniV »

If you look at the description fields against the template or host, that shows the variables that can be used.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
eholz1
Cacti User
Posts: 253
Joined: Mon Oct 01, 2018 10:09 am

Re: Format Command in THOLD

Post by eholz1 »

how did you do this? what is your script? I want to uise the "Status Change Command" in the thold plugin area

thanks,

eholz1
bmfmancini
Cacti User
Posts: 249
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Format Command in THOLD

Post by bmfmancini »

Read the thold variables from env
The script would just read the environmental variable

Just look at the env output for what's passed
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests