Cacti / cacti

Cacti ™
http://www.cacti.net
GNU General Public License v2.0
1.64k stars 405 forks source link

Description and/or hostname Automation Device Rules #5156

Closed Fabrice35 closed 1 year ago

Fabrice35 commented 1 year ago

Hi,

I have some Lightweight Access Points that only answer a ping, but if I create a Automation Device Rules for them, my switches will also match this rule ...

Could it be possible to add an Automation Template on the description and/or hostname in the Automation Device Rules ?

Thank you. BB

TheWitness commented 1 year ago

The process would be to create a Device Template for the AP's and then add the appropriate Data Queries and Graph Templates to it. From there, you can add an Automation Template based upon that Device Template. It's that easy. I use MikroTik AP's and wrote a wonderful plugin for monitoring them.

Fabrice35 commented 1 year ago

I understand, but I can't do that because my AP have no "intelligence". They are managed by a controller, they are so-called Lightweight Access Points that only respond to ping (no snmp).

bmfmancini commented 1 year ago

you would still be able to do this but it wouldn't be fully automated

1.) Create a template called ping 2.) scan the subnet with the AP's with the avability method being ICMP 3.) IP's that respond will be put into the discovered devices section 4.) select the devices add select the ping template

this saves you from manually adding one by one

Fabrice35 commented 1 year ago

This is exactly what I do, and what I hope to automate.

Sincerely,

BigBlue

TheWitness commented 1 year ago

So, I just went through the code, and you can place a sysName match in the Device Automation Template. So, if you have multiple sysName patterns, the automation will recognize them and apply the correct Device Template. So, this is not really an issue. My apologies. As such, I'm going to close this one.

Fabrice35 commented 1 year ago

Thank you for your answer.

Sorry, but sysName is "SNMP Name":

 automation_devices.php:
       'sysName' => array('display' => __('SNMP Name'), 'align' => 'left', 'sort' => 'ASC'),

As sysDescr is snmp_sysDescr ...

But my Lightweight Access Points are without snmp. That's why it should be possible to match the description and/or hostname.

Thanks

TheWitness commented 1 year ago

Look at recent commits around #412. I'm way down the rabbit hole, but now taking a few days break.

Fabrice35 commented 1 year ago

Can you reopen this unresolved issue ?

Fabrice35 commented 1 year ago

Hi,

I would like to filter on the "hostname" and/or "description" of a non-SNMP device (not on SNMP sys*** tables). Can you add this feature?

I'd rather not try to change the code, I'll make mush :-S

BB

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Fabrice35 commented 1 year ago

Hello,

Can anyone confirm the feasibility?

Thank you

BB

TheWitness commented 1 year ago

What? This is fixed in 1.3. But I'm still working on features, but had to double back to 1.2.25 for a while.

Fabrice35 commented 1 year ago

This is great news. Thank you very much. I'll just wait for v1.3...

BB