Re: "No output on stdout" error with check_snmp --rate
Posted: Wed Jul 06, 2016 4:22 pm
Here are the /var/ permissions:
I removed the check_snmp folder and ran the command again, but it did not recreate the folder and returned the segmentation fault again. I ran the 'test check command' again and it completed successfully, creating the folder and a file. (I think the earlier file had been deleted as part of troubleshooting several days ago, hence the previously empty directory. Sorry for the confusion.)
Here are the folder permissions after it was created by the 'test check command':
And here are the permission on the check_snmp plugin:
Code: Select all
ls -al /usr/local/nagios/var/
total 22524
drwxrwxr-x. 7 nagios nagios 4096 Jul 6 17:09 .
drwxr-xr-x. 9 root root 4096 Apr 23 2015 ..
drwxrwxr-x. 2 nagios nagios 24576 Jul 5 23:59 archives
drws------ 2 nagios nagios 4096 Jul 6 16:29 check_snmp
-rw-r--r-- 1 nagios nagios 4463 Jul 6 17:09 host-perfdata
-rw-r--r--. 1 nagios nagios 334 Jul 6 12:18 nagios.configtest
-rw-r--r-- 1 nagios nagios 6 Jul 6 12:18 nagios.lock
-rw-r--r-- 1 nagios nagios 329613 Jul 6 17:06 nagios.log
-rw-rw-r-- 1 nagios nagios 2020534 Jun 7 01:10 nagios.tmp0wn9h9
-rw-rw-r--. 1 nagios nagios 1493429 Nov 30 2015 nagios.tmpLRUcvC
-rw-rw-r-- 1 nagios nagios 1458405 Feb 1 01:22 nagios.tmpn3Rpv7
-rw-rw-r--. 1 nagios nagios 851554 Jun 27 2015 nagios.tmppLlwXn
-rw-r--r-- 1 nagios nagios 5 Jul 5 11:44 ndo2db.lock
-rw-r--r-- 1 nagios nagios 0 Jul 6 12:18 ndomod.tmp
srwxr-xr-x 1 nagios nagios 0 Jul 5 11:44 ndo.sock
-rw-r--r--. 1 nagios nagios 3388807 Jul 6 12:56 npcd.log
-rw-r--r--. 1 nagios nagios 1388234 Jul 6 12:18 objects.cache
-rw-r--r--. 1 nagios nagios 1388234 Jul 6 12:18 objects.precache
-rw-rw-r--. 1 nagios nagios 6494563 Jul 6 12:56 perfdata.log
-rw------- 1 nagios nagios 2070658 Jul 6 16:18 retention.dat
drwxrwsr-x. 2 nagios nagcmd 4096 Jul 6 12:18 rw
-rw-r--r-- 1 nagios nagios 16925 Jul 6 17:09 service-perfdata
drwxr-xr-x. 5 nagios nagios 4096 Apr 23 2015 spool
drwxr-xr-x. 2 nagios nagios 4096 Jul 6 17:09 stats
-rw-rw-r-- 1 nagios nagios 2060756 Jul 6 17:09 status.datHere are the folder permissions after it was created by the 'test check command':
Code: Select all
ls -al /usr/local/nagios/var/
total 22520
drwxrwxr-x. 7 nagios nagios 4096 Jul 6 17:19 .
drwxr-xr-x. 9 root root 4096 Apr 23 2015 ..
drwx------ 2 apache apache 4096 Jul 6 17:13 check_snmpCode: Select all
ls -al /usr/local/nagios/libexec/check_snmp
-rwsrwxr-x. 1 apache nagios 251289 Apr 23 2015 /usr/local/nagios/libexec/check_snmp