BESClient (BIGFIX) Linux redhat - linux

I have a question about BESClient (bigfix ) config.
I want to install and config BESAgent-10.0.0.133-rhe6.x86_64 , using a puppet module to deploy it (on machines with RHEL6,7,8).
And I need know and understand, what does mean this parameter in config file besclient.config "effective date = Tue,%2003%20Nov%202020%2010:16:47%20+0100". I know that this is a timestamp.
I notice that , every time that puppet apply the configs on the machines, this timestamp change.
So , i donĀ“t know if this change in timestamp every time that puppet run on machines, have any bad effect on config.

The effective date only states the time stamp on which the setting was set by the bigfix client. It has no effect on the configuration itself.

Related

TZ (timezone) doesn't work in "/etc/crontab"

I've tried setting the timezone as:
export TZ=Europe/Paris
and as:
TZ=Europe/Paris
But none of them work.
The server is setup for UTC time. And it needs to remain that way.
My job needs to happen at 4:00am (Paris time) when the server it not being used. However it happens at 6:00am (because UTC time).
How can I fix this?
As this is flagged with CentOS, I assume that you use cron from CentOS:
https://www.unix.com/man-page/centos/5/crontab/
Use the CRON_TZ variable before a section of rules that you want to run scheduled based on a different time zone.
If you want the commands themselves use that same TZ, then you need to add that to the rules manually.

Generate auto increment sequence in logstash

I am pushing logs to Elastic Search from Logstash and then i need to get back the logs in the order they were written. Sorting by time stamp does not help because there could me multiple log statements in the same time. I followed the solution in Include monotonically increasing value in logstash field? and it worked perfectly in my windows system.
But when the code was moved to the linux production environment, logstash is not starting up. Failing with the below error
reason=>"Couldn't find any filter plugin named 'seq'. Are you sure
this is correct? Trying to load the seq filter plugin resulted in this
error: no such file to load -- logstash/filters/seq", :level=>:error}
Check if the seq.rb file is in the filter folder.
Also check if the line ending of your seq.rb are linux. If you transferred the file from a windows machine to a linux, the problem might come from here.

Apache Time Differs from Operating System Date and time?

I have apache-tomcat-5.5.17 that I run using the terminal manually the time on the instance is not the same as the operating system , I tried to configure the apache time using php.ini , that is located in /etc/php.ini , I added :
[Date]
date.timezome="MyTimeZone"
it didn't take an effect on the instance even so I restarted the application , and the services , is there something else needs modifying ??
well guys I figured out how to solve this problem , the trick is to modify catalina.sh script and add the time zone to the java options :
-Duser.timezone="one of the Time Zones that are allowed"

Using mailutils-config to set askcc to False

When it comes to email configuration, I am not a smart man. I know I need to use mailutils-config or mu-tools to change the default value of 'askcc' to False, likely in an /etc/mailutils.rc file ... However, this file doesn't exist. Do I populate it myself and then alter the settings? Is there a one-liner I can use?
I've been all over http://mailutils.org/manual/mailutils.html, and that's how I know what I need to do - but not how to do it. Can anyone help? Thank you.
edit: On Ubuntu 13.10
I installed mailutils just yesterday and today spent hours trying to set the mail variable "savekeep" to True. The mailutils documentation is poor but I got things to work after finding
2.4.7 Personal and System-wide Configuration Files. So then the task is to find out how to write the settings in a mailrc file. You can refer to .mailrc File Format on the ibm.com website.
You need to create the file ~you/.mailrc for user configuration or /etc/mail.rc for system wide configuration. Here is what you need to write in the file to set "savekeep" and "askcc".
set askcc=False;
set keepsave=True;

last-modified header and linux file system

im using httpclient and last-modified header in order to retrieve the last updated date of an html file however when i try this on a linux box it returns yesterdays date but when i use a windows machine it returns todays date. is anyone aware of issues using this header field in linux?
Perhaps, linux server has its clock set differently and this way "lives in the past"?
If you dualboot with Windows, you must make sure your Linux system is configured to not think the BIOS keeps the clock in GMT (or UTC), but in local time. Otherwise your Linux system's clock will keep being off when in Linux.
Also make sure that the /etc/localtime file is a symlink to the correct time zone file under /usr/share/zoneinfo.
After configuring those two things, verify your date and time is correct using the date command and set it correctly if it isn't, via:
date MMDDhhmmCCYY.ss
For example, for the current time at my end (19:41:27 on October 15th 2008) I would use:
date 101519412008.27
Just a thought - perhaps your filesystem was mounted with the noatime option. I'm making the assumption here that your html file wasn't modified, only accessed without changes and the 'updated' time wasn't recorded.
Can you see the timestamp of the file? Is it exactly 1 day out, or just sometime yesterday?
when i look at the date assocaiated with the time it is correct, but then the date that gets displayed after i call the http method is one day behind. Possibly a problem with caching

Resources