Page 2 of 2
Re: SNMP file system monitoring question
Posted: Mon Feb 26, 2018 11:11 am
by andrewatmacys
Hi,
The above mentioned solution is not exactly what I am looking for as I am wanting to do an SNMP walk through file systems. Is there a way to pass the results from $ARG1$ into $ARG2$ to perform an exclusion on the results of the first exclusion?
Re: SNMP file system monitoring question
Posted: Mon Feb 26, 2018 5:20 pm
by kyang
There is no way to pass another exclusion in order for this to work. It's all based on the plugin itself.
Sorry if the check_usolved_disk.php did not work for you. It uses SNMP to check all partitions with PHP.
I have been playing around with the plugin options, but have not come across any success.
It doesn't allow multiple mounts in the -m $ARG$.
Re: SNMP file system monitoring question
Posted: Fri Mar 02, 2018 2:41 pm
by andrewatmacys
I have found a solution, this plugin is apparently capable of multiple file exclusions.
Using -m "(/run/user/1000|/sys/fs/cgroup)" will exclude the files /run/user/1000 and /sys/fs/cgroup.
Thank you for your help!
Re: SNMP file system monitoring question
Posted: Fri Mar 02, 2018 2:48 pm
by kyang
Good catch!
Yes I now see that it uses | to separate instead of a ,
Glad you got it working.
I'll be closing this thread!
If you have any more questions, feel free to create another thread.
Thanks for using the Nagios Support Forum!