Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
My system is an up-to-date Devuan 1.0.0 LTS, with Nagios Core 4.3.4. My first unexpected issue was that check_snmp wouldn't run for the nagios user. I had to suid root check_snmp. It's running now, but giving me
Only the root user has permissions to write to that folder but not the nagios group.
Try giving the nagios group the ability to read and write to that folder and see if that fixes the issue.
Run this as root to fix it and test the plugin again.
tgriep wrote:Only the root user has permissions to write to that folder
Hey there, yes, obviously. My question is, what makes nagios want to write to /usr in the first place? AFAICR everthing used to go to /var (or /usr/local/nagios/var), which would make sense, but not /usr.
Matthias
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
I am guessing that you are using the Rate Calculation option for the check_snmp command and when you do that, it saves the state information in to a file and uses that for it's calculation.
I took a look at the latest check_snmp source file and found this entry that states where the state file should be stored.
It could be when the plugin was compiled, the state directory was changed and that could be the reason the plugin is trying to store the file in that other folder.
Be sure to check out our Knowledgebase for helpful articles and solutions!