You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the config it asks that you run the command printf 'Defaults!PFIFGW !log_allowed\n' | sudo tee -a /usr/local/etc/sudoers > /dev/null. This however, always returned an error for me PFIFGW: Event not found.
I found that the only way to rectify it was to manually add Defaults!PFIFGW !log_allowed To the sudoers file.
The following needs some extra care, messing with the sudoers file can potentially not go well. Fixing this will just prevent the sudo logs from appearing in the opnsense logging at System > Log Files > General. The solution is as follows.
open a root ssh terminal to your opnsense instance
Using the command visudo open the sudoers file
Its critical you only use visudo to prevent messing with the sudoers file incorrectly
Scroll to the bottom using the arrow keys, if you ran the previous commands from the configuration instructions you should see telegraf ALL=(root) NOPASSWD: /usr/local/bin/telegraf_pfifgw.php and Cmnd_Alias PFIFGW = /usr/local/bin/telegraf_pfifgw.php at the bottom
Press the I key to enter Insert mode
Carefully type out the Defaults!PFIFGW !log_allowed line, copy paste will not work don't try
Press Esc Key to enter command mode
Type :wq to save and quit the file
you can run sudo visudo -c after to ensure it will work
Hope this helps
The text was updated successfully, but these errors were encountered:
In the config it asks that you run the command
printf 'Defaults!PFIFGW !log_allowed\n' | sudo tee -a /usr/local/etc/sudoers > /dev/null
. This however, always returned an error for mePFIFGW: Event not found.
I found that the only way to rectify it was to manually add
Defaults!PFIFGW !log_allowed
To the sudoers file.The following needs some extra care, messing with the sudoers file can potentially not go well. Fixing this will just prevent the sudo logs from appearing in the opnsense logging at System > Log Files > General. The solution is as follows.
visudo
open the sudoers filetelegraf ALL=(root) NOPASSWD: /usr/local/bin/telegraf_pfifgw.php
andCmnd_Alias PFIFGW = /usr/local/bin/telegraf_pfifgw.php
at the bottomI
key to enter Insert modeDefaults!PFIFGW !log_allowed
line, copy paste will not work don't tryEsc
Key to enter command mode:wq
to save and quit the filesudo visudo -c
after to ensure it will workHope this helps
The text was updated successfully, but these errors were encountered: