[SOLVED]cacti log file data

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Moderators, Developers

Post Reply
Author
Message
eholz1
Cacti User
Posts: 137
Joined: Mon Oct 01, 2018 10:09 am

[SOLVED]cacti log file data

#1 Post by eholz1 » Mon Apr 15, 2019 10:33 am

Hello Members,

Is there anyway to get the cacti log file to include the "description" of the device in addition
to the hostname? currently we have the device desciption as the "name" of the device, and the
hostname as the "ip" of the device: Description: location-site-bldg-device = lax-43-33-rtr1, where rtr1 = "router 1"

The device down error message in the log file reads:
SPINE: Poller[1] Device[163] Hostname[10.41.4.1] ERROR: HOST EVENT: Device is DOWN Message: Device did not respond to SNMP

so you can see there is no description in the DOWN message - there is in the threshold email message (yes, I know I could use the email message to get the description).

and the "UP" message:
SPINE: Poller[1] Device[163] Hostname[10.41.4.1] NOTICE: HOST EVENT: Device Returned from DOWN State

I am using the cacti.log file in syslog-ng, to forward messages to splunk and would like someway (other than reading the email messages, yes it works) to include the "description" with the hostname.

Thanks so much,
eholz1

Post Reply