Note this is currently beta functionality. |
The NMIS RPC Service is a new daemon designed to enhance SNMP functionality in NMIS 9.5.1 and later versions. This guide will walk you through the installation and configuration process.
Download the latest version of the NMIS RPC daemon:
wget https://dl-nmis.opmantek.com/spacelift/latest/nmis-rpc-linux |
Make the file executable:
chmod +x nmis-rpc-linux |
Verify the installation by checking the version:
./nmis-rpc-linux -version |
You should see output similar to: nmis-rpc version v0.0.3 (built 2024-07-25 06:34:20)
Create a service file at /etc/systemd/system/nmis-rpc.service
with the following content:
[Unit] Description=NMIS RPC Service After=network.target [Service] ExecStart=/usr/local/nmis9/bin/nmis-rpc-linux WorkingDirectory=/usr/local/bin Restart=always RestartSec=10 Environment=PATH=/usr/local/bin:/usr/bin:/bin [Install] WantedBy=multi-user.target |
Reload the systemd daemon and start the service:
sudo systemctl daemon-reload sudo systemctl start nmis-rpc.service |
Enable the service to start on boot:
sudo systemctl enable nmis-rpc.service |
wget https://dl-nmis.opmantek.com/nmis9-9.5.1a.run chmod +x nmis9-9.5.1a.run sudo ./nmis9-9.5.1a.run |
Edit the NMIS configuration file:
sudo nano /usr/local/nmis9/conf/Config.nmis |
Locate the nmis_rpc_url
setting and set it to:
'nmis_rpc_url' => "http://localhost:9000", |
Save the file and exit the editor.
Restart the NMIS service:
sudo systemctl restart nmis9d |
To use the new RPC service for a specific node:
Next poll cycle this node will use the new engine.