Server :: Rename The Hostname Without Affecting Current Time In Nagios?

Jan 27, 2011

How to change the hostname without affecting current status ie i dont need to change the already having time, just rename the hostname.. what is the command to refresh

View 2 Replies


ADVERTISEMENT

Programming :: Get The Current Time As Provided From NTP (not The Currently Set Time On The Server)?

Jun 9, 2010

Is there a way to get the current time as provided from NTP (not the currently set time on the server)?

View 4 Replies View Related

Ubuntu :: Delete The Old Build Without Affecting The Current One Using?

Dec 22, 2010

Since updating my ubuntu a little while ago, i have more than one linux build on my grub menu.

Is it possible to delete the old build without affecting the current one i'm using?

View 6 Replies View Related

General :: Retrieve The Current Time On A Server?

Feb 18, 2011

I want to know the time on a server accurate to the millisecond.there's this way:

local $ ssh user@servername
Welcome to server!
server $ date
Fri Feb 18 11:27:50 EST 2011

But I need more accuracy. Is there a command that will be more precise?

View 2 Replies View Related

Server :: Error: Cannot Open Log File '/usr/local/nagios/var/archives/nagios-07-08-2011-00.log' For Reading?

Jul 9, 2011

Error: Cannot open log file '/usr/local/nagios/var/archives/nagios-07-08-2011-00.log' for reading!

View 2 Replies View Related

Ubuntu :: Rename The Hostname So It Reads "ub-srv1"?

Apr 10, 2010

I installed Ubuntu Server and my current hostname is "ub-srv". Is it possible to rename the hostname so it reads "ub-srv1"?

View 9 Replies View Related

General :: Change The Creation Time Of All A Folder's Files To The Current Time?

Jun 19, 2011

Under a Linux shell, how can I change the creation time of all a folder's files to the current time?

View 2 Replies View Related

Software :: Get Nagios To Start At Boot Time?

Sep 19, 2010

I tried setting up Nagios 3.2.2 on Ubuntu 8.04 using this guide [URL]Every thing went well until trying 'make install-webconf', I then got the following error.

/usr/bin/install -c -m 644 sample-config/httpd.conf
> > /etc/httpd/conf.d/nagios.conf
> > /usr/bin/install: cannot create regular file

[code]...

View 1 Replies View Related

General :: How To Change Threshold Time In Nagios Services

Jan 5, 2010

I have installed nagios in a CentOS vm and now its monitoring the local host, one remote host which is also a vm with CentOS 5.3 and one windows xp system. Is there any option for me to change the threshold time for the services given? For e.g. I had a service of current_load which comes as a default plugin while installing nagios itself. What should I do to change the threshold value of the current_load so that I might get the warning or error alert some time earlier as it was now.

View 5 Replies View Related

Programming :: Bash/korn Script Rename Files To Same Name One At A Time?

Jun 23, 2009

I have scowered the internet for the answer to this one. I need a script to rename multiple files to the same exact name, run a program on the file then do the same for the next file. We have a unix backend system that is expecting to load the file with the filename of cards.in So I will have files named card.2009xxx, like i said i will have around 4 or five of those. I want the script to rename card.2009xxx to cards.in, run our unix program on cards.in which inturn changes the file name and once complete i want the script to rename the next cards.2009 to "cards.in"Until there are no more left in the directory and the unix program has processed all the files. All of this is occurring in the same directory. I have written some scripts but they fail by moving for example cards.200901 to cards.in then immediately moving cards.200902 to cards.in and that is not good because it is overwriting valuable data

View 10 Replies View Related

General :: Copy A File And Rename It At The Same Time While Copying It To The Same Exact Directory?

Jun 26, 2010

Create a copy of the file above and call it commands.sorted. Use the vi command to manually sort this file. I.e. use yy to copy a line, P or p to paste a line, and dd delete a line. Order the commands with the two lines starting with double quotes first. Then list the rest of the command in alphabetical order.

Anyone have any ideas what he's talking about? Can I copy a file and rename it at the same time while copying it to the same exact directory again? Now sure what the two lines things means either. I have an email out to him but it usually takes a long time for him to answer me. I got alot of work to do so everytime I get hung up it kills me.

View 2 Replies View Related

Ubuntu Multimedia :: Rename All JPEGs In A Folder By EXIF Date & Time Stamp?

Feb 24, 2011

In the Windows world where I came from, Irfanview freeware easily renamed a large folder of JPEG photos by EXIF time & date stamps, appending a unique number if the time and date stamps were the same. Is there an equivalent rename-by-EXIF information batch command in Ubuntu 10.04 Lucid? For example, change (based solely on EXIF information): FROM:DSC_0001.JPG TO:20110224_09:34:56am.JPG

View 9 Replies View Related

Server :: Windows Machine Be Affecting The Password Settings?

Jan 28, 2010

I have a server running ubuntu 9.10 64 bit. It has samba running. I have ONE user that everytime she shuts down her windows machine I have to recreate the smbpasswd -a user. Every time, repeatable. A. How can a windows machine be affecting the password settings on the server. B. Refer back to A.

[Code]...

View 1 Replies View Related

Slackware :: Apple Time Capsule DHCP Sets Bogus Hostname?

Jan 20, 2011

During Slackware 13.1 setup, I chose the hostname stella-sl2. This hostname is also the one that the system is displaying before I configured network access. After configuring wired network access to my Apple Time Capsule, my hostname suddenly changed to INTERFACE='eth0'. As a result I'm noticing some very strange things, like the login prompt which has become "INTERFACE='eth0' login: ".

After configuring wireless network access to the Time Capsule, the hostname changed to "INTERFACE='wlan0'". Note that, during boot, wlan0 is brought up AFTER eth0.

Also strange is this:

bash-4.1$ cat /etc/HOSTNAME
INTERFACE='eth0'.DNSSERVERS='10.0.1.1'
bash-4.1$ /bin/hostname
INTERFACE='wlan0'
bash-4.1$

Until now, it was only a minor annoyance, it didn't prevent anything from happening, internet connection was not affected. But now I'm configuring sendmail which needs to talk to a relay SMTP server, and sendmail "HELO"'s itself using the bogus hostname:

>>> HELO INTERFACE='wlan0'
<<< 501 HELO requires valid address
554 5.0.0 Service unavailable

Probably this is caused by the Time Capsule not adhering to standards. However, the Time Capsule's firmware is the latest version, so I cannot fix this. Is there a way to prevent dhcp from changing the hostname? How can I make sure that the hostname that I configured during setup remains active?

View 2 Replies View Related

Server :: Install Different Version Of Perl+module Without Affecting The Existing One ?

May 10, 2011

I need to install different version of Perl with needed modules to Test Run a perl script (ASSP) without affecting the existing one as the old version of Perl is buggy with seg fault.

View 5 Replies View Related

Server :: Determining System Limits Affecting Apache - Specifically RLimitMEM

Mar 15, 2011

Our Apache server is pretty much configured straight out of the box, and I've noticed it is using far more CPU and less memory than another server where I have the following:

RLimitCPU 8
RLimitMEM 100000000
RLimitNPROC 24

The Apache documentation says that if these aren't set, the values are obtain from the OS. How can you tell what those are? I'd like to see if I can tune Apache's performance, but I don't even know if these values are higher or lower than what it's currently using...

View 5 Replies View Related

General :: Date - How To Set Current Time

Jun 26, 2011

Why is the output of the following commands different?

root@vmi2115:/var# hwclock
Sun 26 Jun 2011 01:21:38 PM CEST -0.273230 seconds
root@vmi2495:/var# date
Sun Jun 26 15:21:39 CEST 2011
root@vmi2115:/var#

And can I change the current time on Linux?

View 4 Replies View Related

Networking :: Put Current Date And Time On My Machine From Certain URL?

Dec 7, 2010

I am using the Terminal. I would like to know how do I put the current date and time on my machine and the date from a certain URL that has .php extension into a file.

View 3 Replies View Related

Software :: Display CURRENT Time In Prompt?

Jan 18, 2009

After much too often wondering "hey, when did I actually start this time-consuming command?", I'm considering adding a timestamp to my bash prompt.My first try was simple: PS1="(A) $PS1" which gives a display like:(16:58) exscape ~ #

However, the problem with that approach is that it displays the time when the line was written, not when the command on it was executed. So, if I run "ls" at 16:58, and get a new prompt "(16:58) ..." and then run the next command 2 hours later, it'll look like this:(16:58) exscape ~ # new-commandI of course want the line to display the time when the command was actually run, not when the prompt appeared.

View 9 Replies View Related

Software :: Get The Current Time With Nano Seconds On A Box Using C++?

Jan 9, 2009

I need to know how to get the current time with nano seconds on a linux box using c++?

View 3 Replies View Related

Programming :: Detect Current OS In Compile Time?

Dec 8, 2010

Code:

#if defined(WIN32) || defined(WIN64)
#define WINDOWS
#endif

[code]....

what is the directive thats required to detect a linux system? i want to to be able to detect which platform im compiling on automatically.

View 5 Replies View Related

Programming :: Getting Current Time Zone Offset?

Jun 18, 2010

I'm looking for a function (prefer POSIX, but Linux specific would do if it has to) to get the current timezone offset. For my location, eastern USA, that should be -14400 when daylight time is in effect, and -18000 otherwise.

View 1 Replies View Related

Fedora :: Screen Saver That Displays Current Time?

Jul 24, 2010

Does anyone know if there exists a screen saver which simply displays the current time? That would allow me to quickly determine what time it is whether I'm sitting at my computer or sitting across the room

View 2 Replies View Related

General :: How To See The Code Behind The Nagios Plugin: Nagios Checker

Aug 4, 2010

How to see the code behind the nagios plugin: Nagios Checker? I opened the folder which i have downloaded. After that where do i have to go to see the codes? Is it in App_Codes?

View 14 Replies View Related

Server :: Unable To Receive Mails Sent By Nagios On Remedy Server

Oct 29, 2009

I have two situations here :

1) I have my Nagios running on the linux box and BMC Remedy Server on the Solaris box. I have simulated a mail from Nagios to be delivered to the Remedy server. But the Remedy Server does not receive it. I even tried snooping on port 25 but nothing has reached the box.

2) I have my Nagios running on the linux box and BMC Remedy Server on the Solaris box. I have simulated a mail from Nagios to be delivered to the Remedy server. I snooped on port 25 on the Solaris box. I could see the mail reaching the box, but it is not being forwarded to the Remedy inbox.

View 5 Replies View Related

General :: Tricking Apps About Current Time With Environment Variables?

May 21, 2010

Sometimes it is possible to trick a Linux app by calling it like this:

HOME=/tmp/foo myapp

This would make myapp think /tmp/foo is the home directory, it won't try to get the user id, find its home directory via getpwent(). This is useful when myapp must be forced to dump some of its config files into a non-standard location different than ~.

A similar trick can be done like this: LANG=foo LC_ALL=bar myapp

This is useful when myapp needs to be called once with a different locale without having to make the change persistent by using the export bash built-in or even modify stuff in /etc/profile.

Is it possible to pull the same trick with time and date? The goal is to make an app use another time than the system ones. The final goal - to make timestamps that appear in logs/commit messages not being tied to the system time.

View 1 Replies View Related

General :: Current Time - File Path No Longer Valid

Aug 21, 2011

I am reading about jiffies in linux kernel. In one of the related example in the book Linux Device Driver, the author use
head -8 /proc/currentime
to print out some time information.

However this file is not present in my linux installation (kernel: 2.6.32-131.6.1.el6.x86_64). Why is it the case? Is it because the file path is no longer valid, or it is a distribution feature thing? It is not present in OSX too. What would be an equivalent in OSX?

View 1 Replies View Related

Ubuntu :: Show Current Date And Time In Screen Saver

Jan 20, 2011

[URL] While I could follow it: For what I am trying to do, it did not work. how to get it working?

View 8 Replies View Related

General :: Search A String In Logs Of Last 15 Minutes From Current Time?

Aug 26, 2010

I want to run a script that runs after every 15 minutes that i will do using crontab. But in script want to search a string from the last 15 minutes logs in log file containing data of whole day.

how i can search the string according to time difference that is logs from from current time and current time - 15 minutes.

Sample logs are as follows:

26-Aug-2010 16:38:46,055|9172310750|subscription_app|31ba267e%3A12aadd47bdc%3A50e9|ChargeAmount|ChargingIntercep tor - subscriber details processed sucessfully- {arg0.referenceCode=balanceEnquiry:true;subsChannel:Unknown;channelType:Subscription;transactionId:3

[Code]....

View 6 Replies View Related

Programming :: Print The Current Time Of My System With A Batch File ?

Dec 25, 2010

How can I print the current time of my system with a batch file. My os is ubuntu.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved