This is a fork of the project https://github.com/marwan-abdellah/nvgpu-snmp which instead of using the NV-CONTROL X extension to retrieve data make a call to the nVidia binary nvidia-smi. The biggest advantage of this approach is that the snmp daemon does not need access to the X display.

Features

  • SNMP
  • nVidia GPU

Project Samples

Project Activity

See All Activity >

Follow nvgpu-smi-snmp

nvgpu-smi-snmp Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Ratings

★★★★★
★★★★
★★★
★★
3
0
0
0
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 2 / 5

User Reviews

  • Hello, I think there is a small error in the MIB file, the value nvCtrlVideoRamUsed is not in % it is in MiB Can't we just PR here ?
    1 user found this review helpful.
    Reply from nvgpu-smi-snmp
    Posted 2025-07-21
    Sorry for the late replies to the reviews section, I do not get any "ping" whenever anyone writes a review. At the time of this writing I do not have access to any nVidia card myself, but feel free to make a pull request. That part in the MIB file might have been a heritage from nvgpu-snmp which did not fetch data with nvidia-smi, or the output from nvidia-smi might have changed at some point. I now also see that the mrtg file in the contrib directory falsely says something about ram speed for that entry, so some fixing is needed.
  • Sourceforge has real issues with excessive punctuation and won't keep formatting, I had to rewrite this several times to pass their parser. I had some issues with the install, here's what I did: installed the libraries as listed in the README, libxml2 and net-snmp. Make fails with errors. This meant absolutely nothing to me but Rich said I ought to install the -dev libraries, so I did installed libxml2-dev and make had fewer errors but still errors, Rich suggested some more -dev libs. Added libsnmp-dev and did ldconfig. Rich was absolutely correct, successful make. Make install puts nvgpu-snmp.so here /usr/x86_64-linux-gnu/snmp/dlmod but looks for it here /usr/lib/x86_64-linux-gnu/snmp/dlmod/ so had to fix that. sudo install -d /usr/lib/x86_64-linux-gnu/snmp/dlmod; sudo install -m 644 -s nvgpu-snmp.so /usr/lib/x86_64-linux-gnu/snmp/dlmod/ Added 'dlmod nvCtrlTable nvgpu-snmp' to /etc/snmp/snmpd.conf, and restarted snmpd 'sudo service snmpd restart' but no joy. snmpwalk -c public -v2c localhost 1.3.6.1.4.1.2021.13.42.2; iso.3.6.1.4.1.2021.13.42.2 = No Such Object available on this agent at this OID. Started nvgpu_agentxd to see if that worked, it did, okay getting closer ./nvgpu_agentxd snmpwalk -c public -v2c localhost 1.3.6.1.4.1.2021.13.42.2 iso.3.6.1.4.1.2021.13.42.2.1.1.0 = INTEGER: 0 Rich said, You could create a system service to start the thing automatically but frankly it’s probably easier to just add it to cron. crontab -e -u root then add: @reboot /path/to/wherever/nvgpu_agentxd And be done with it… If I was going to stick with only net-snmp, this might have been a viable solution but having net-snmp installed in addition to snmpd broke existing probes as net-snmp bound port 161 before snmpd, so I didn't create this crontab entry. So remove net-snmp and reboot the box. Last hurdle, from the README: If you instead of descriptive human readable strings only see numeric identifiers you might have to add a line to the file /usr/share/snmp/snmp.conf : mibs +=NV-CTRL-MIB. This is incorrect, it should be mibs +NV-CTRL-MIB. Lastly, my /etc/snmp/snmpd.conf was constrained to .1.3.6.1.2, had to open it to .1.3.6.1: view systemonly included .1.3.6.1 and restart snmpd. Now I have no conflicts between net-snmp and snmpd and permitted access to the new mib, wonderful, thanks Rich for all the help, documented to help those who follow in my footsteps and may not have access to a Rich. snmpwalk -c public -v2c localhost 1.3.6.1.4.1.2021.13.42.2 NV-CTRL-MIB::nvCtrlGPU.0 = INTEGER: 0
    1 user found this review helpful.
    Reply from nvgpu-smi-snmp
    Posted 2025-07-21
    The Makefile does its best to guess where to install nvgpu-snmp.so by querying the command net-snmp-config, if you have multiple instances of net-snmp installed it might fool the Makefile to install the file at the wrong place.
  • required me to install libxml2-dev in Ubuntu 20.04LTS and I had to move the .so file from /usr/x86_64-linux-gnu/snmp/dlmod/ to /usr/lib/x86_64-linux-gnu/snmp/dlmod/ after that worked great, using it to monitor the usage on my GF1660 doing transcoding for plex with the unlocked NvENC patch
    2 users found this review helpful.
Read more reviews >

Additional Project Details

Registered

2019-02-10