Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

After building and installing (see Prime VoIP Monitoring) the package, one must set the Poller type from cmd.php to spine:

...

This is needed if we add a new graph (i.e. traffic diagram) in the cable modem device template. Only newly added modems would display the traffic diagram. In order to deploy the new diagram for all modems we can regenerate all modems with the following command:

Code Block
languagebash
php /usr/share/cacti/cli/remove_device.php --ip=cm-* --confirm
php /var/www/nmsprime/artisan nms:cacti

Especially the second command may take a while.

Develop with cactis script server

A good starting point is the Cacti Documentation for the script server. However for NMS Prime we made some adjustments. Following are the commands to test and develop scripts for the cacti script server.

Code Block
languagebash
titleDevelop with the cacti script server
# change user to apache
su -s /bin/bash apache
# start cacti script server
# make sure to restart after every code change
php /usr/share/cacti/script_server.php
# /var/www/nmsprime/modules/[Module]/Console/cacti/ss_[script_name].php [function] [hostname] [snmp_community]
# make sure to link the file to /var/lib/cacti/scripts/ss_[script_name].php
# example:
/var/www/nmsprime/modules/ProvMon/Console/cacti/ss_docsis.php ss_docsis cm-100096.demo.nmsprime.com