ifDescr issue

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

Moderators: Developers, Moderators

Post Reply
freeman2019
Posts: 18
Joined: Wed Nov 20, 2019 9:26 am

ifDescr issue

Post by freeman2019 »

Hello, we have such kind a problem: after changing network switch ethernet interface description graph Title not updating even after with doing (Verbose Query).
one solution is deleting graph and re-great again. do you have solution about this problem ? cacti Version 0.8.8h
Rno
Cacti Pro User
Posts: 711
Joined: Wed Dec 07, 2011 9:19 am

Re: ifDescr issue

Post by Rno »

Did you try to do a 'reapply suggested name' on the management of the graph ?
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
freeman2019
Posts: 18
Joined: Wed Nov 20, 2019 9:26 am

Re: ifDescr issue

Post by freeman2019 »

i did not catch your question :( can you explain more detail
freeman2019
Posts: 18
Joined: Wed Nov 20, 2019 9:26 am

Re: ifDescr issue

Post by freeman2019 »

sorry :) ok i find reapply suggested name and it works ,

another one question : if you know how i can do rescan scheduler or automation script or mybe cacti have such feature i do not remember
because want to have upto date information about interface descriptions and interface modules , otherwise i must do it manualy..
Rno
Cacti Pro User
Posts: 711
Joined: Wed Dec 07, 2011 9:19 am

Re: ifDescr issue

Post by Rno »

You can create a call to this function:
poller_reindex_hosts.php
it's under cli subfolder.

And I find that scrip who was working with Cacti 0.8.x didn't try yet on cacti 1.x
The script was made by Howie (the weathermap guy)

# re-indexing script
#!/bin/sh

# rescan all the switch ports, and then re-apply the names to the graphs

CACTIBASE="/usr/share/cacti"
CACTILOG="/var/log/cacti"


while [ -f $CACTIBASE/poller-running ]
do
echo "Poller Running. Waiting."
sleep 10
done

echo "Blocking poller for a moment..."
echo
echo
touch $CACTIBASE/poller-disable

#DEVICES="7 138 129 101 15 339 337 340 342 343 394 411"
DEVICES="All"

for dev in ${DEVICES}; do
/usr/bin/php $CACTIBASE/cli/poller_reindex_hosts.php -id=$dev
done


echo
echo
echo "Unblocking poller..."
rm $CACTIBASE/poller-disable

echo "Renaming graphs..."

for dev in ${DEVICES}; do
/usr/bin/php $CACTIBASE/cli/poller_graphs_reapply_names.php -id=$dev
done

echo "Done!"
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests