replace the plug-in image

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
Prabowo313

replace the plug-in image

Post by Prabowo313 »

Hello,

I have problem with monitor plugin (cacti version 1.2.24)

I installed the Windows version of cacti and the display on my monitor plugin looks like a switch or server image, I really want to change the image to a computer or laptop.
I have set it in "Console" > "Settings" > "Monitor" but nothing has changed.

how do you change the settings for the image.
image 1 is the state of my cacti monitor plugin
image 2 is the state of the monitor plugin I want

Thanks in advance for your feedback! And sorry for my bad english! :wink:
Attachments
the condition of the monitor plugin that I want
the condition of the monitor plugin that I want
image 2.PNG (41.48 KiB) Viewed 4459 times
my cacti
my cacti
Image 1.PNG (57.17 KiB) Viewed 4459 times
macan
Cacti Pro User
Posts: 886
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: replace the plug-in image

Post by macan »

It seems that it isn't possible now. Images were replaced by font awesome icons.

You can change icon directly in php code in file monitor.php you can change from da-server to fa-laptop or find another here https://fontawesome.com/v4/icons/
Let the Cacti grow!
Prabowo313

Re: replace the plug-in image

Post by Prabowo313 »

I still have 1 question, how do I sort the icon image, if the device is a computer using a computer and if it is a router/switch network it uses the server icon?

Thanks in advance for your feedback :wink:
Attachments
icon.PNG
icon.PNG (17.11 KiB) Viewed 4401 times
Prabowo313

Re: replace the plug-in image

Post by Prabowo313 »

macan wrote: Mon Aug 07, 2023 8:14 am It seems that it isn't possible now. Images were replaced by font awesome icons.

You can change icon directly in php code in file monitor.php you can change from da-server to fa-laptop or find another here https://fontawesome.com/v4/icons/
I still have 1 question, how do I sort the icon image, if the device is a computer using a computer and if it is a router/switch network it uses the server icon?

Thanks in advance for your feedback :wink:
Attachments
icon.PNG
icon.PNG (17.11 KiB) Viewed 4379 times
User avatar
TheWitness
Developer
Posts: 16897
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: replace the plug-in image

Post by TheWitness »

I like that glyph BTW.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Prabowo313

Re: replace the plug-in image

Post by Prabowo313 »

TheWitness wrote: Tue Aug 08, 2023 6:33 pm I like that glyph BTW.
Hello @TheWitness, can you help me on how to change the icon for each device monitor in the plugin. Thank You
User avatar
TheWitness
Developer
Posts: 16897
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: replace the plug-in image

Post by TheWitness »

Right now it's not on my list of things that are most important. Maybe another one of our plugin developers can help you. It's as simple as adding an attribute to the host_template table and associating one of the Fontawesome Glyphs to the field value and then a very small change to the monitor plugin. My problem is not doing this, my problem is the time required to do it.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
macan
Cacti Pro User
Posts: 886
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: replace the plug-in image

Post by macan »

I wil do it in few days
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests