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
ifDescr issue
Moderators: Developers, Moderators
Re: ifDescr issue
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
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
-
- Posts: 18
- Joined: Wed Nov 20, 2019 9:26 am
Re: ifDescr issue
i did not catch your question can you explain more detail
-
- Posts: 18
- Joined: Wed Nov 20, 2019 9:26 am
Re: ifDescr issue
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..
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..
Re: ifDescr issue
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!"
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
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
Who is online
Users browsing this forum: fpiorek and 7 guests