Programming :: Wrote Code For An Application Called Nagios?
Sep 3, 2010
I suspect this will be beyond my abilities but thought I'd give it a try. A few months ago I wrote code for an application called nagios which would send me tweets when a system within my network ran into a problem (code below):
Code:
define command {
command_name notify-host-twitter
[code]....
View 7 Replies
ADVERTISEMENT
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
Apr 14, 2010
So, I have this application called Impact, it is an explicit time integration Finite Elements code written in Java...
[url]
I untar the pack, and launch the application calling a script, from within the untarred folder,
Code:
This launches a gui which allows me to setup a case, which needs some setup file, tipically some *.in and a mesh file, tipically some *.msh.
Other mode of executuion consists of calling the setup file as argument to Impact.sh script ( CLI execution mode, for g33k5 )
My problem is : I have packed the whole stuff into a Slackware .tgz, that places it in /usr/local/Impact, and placed a calling script in /usr/local/bin,
Code:
Code:
I decided to hack the ImpactGUI_OGL_linux_amd64.sh script from
Code:
Code:
no avail,
Code:
even after adding /usr/local/Impact/bin to PATH... won't go...
I can run this thing from within its directory... but I do not like messing within the directories of my applications, this is why I sent this to /usr/local, and placed a calling script in /usr/local/bin...
View 4 Replies
View Related
Jul 13, 2011
I feel there's a bit of a misunderstanding going on between C++ and me...My problem is that I have a deque of pointers to a class, and create objects then add them to the deque in a for loop. However, the destructor is called on the object as soon as the loop quits.
Code:
This prints:
Code:
Now, if I change the deque from deque<Test*> to deque<Test> then it works fine - I get:
Code:
However, I can't do this with my actual code, because I am creating a deque of pointers to an abstract class, so it won't let me instantiate the class. (This is all so that I can take advantage of polymorphism, and call functions on a set of similar objects without worrying what type of object I'm dealing with).
So, I suppose my question is: what is the correct way to create that deque of pointers to the abstract class? I don't seem to be barking up the right tree currently.
View 4 Replies
View Related
Nov 2, 2010
I have an application, probably cpu-intensive because sometimes it leaves the cpu with 0% idle (in top). Sometimes it hangs ("Done" does not print) when executing this part, but most of the time it executes just fine. Is there any wrong with this code?
View 2 Replies
View Related
Jul 26, 2010
Is there any software that can 'read' the log file in nagios and produce a so-called 'scoreboard' (something like a graph) to display the status of the services? I was told that one could 'read' the log file stored in nagios and create a scoreboard.
View 12 Replies
View Related
Sep 25, 2010
I found a great application called Freecorder. Is there a Linux equivalent? [URL]..
View 6 Replies
View Related
Feb 24, 2010
There is an application for Windows called CutePDF that is a printer driver that converts any document, website, etc. into PDF when I print to it. Is there a universal application like this for Ubuntu?
View 2 Replies
View Related
Mar 8, 2010
i am trying to use a small application called toonel. its in jar format and it helps to compress traffic. i can run it succesfully but i cant seem to be able to get my applications e.g firefox to communicate with it!
normally in windows i just start the app, then set my browser proxy to 127.0.0.1:8080 which is where it listens for connections but so far in ubuntu i cant seem to be able to get it to work.
View 2 Replies
View Related
Aug 7, 2010
i was told by some members to use svn to view nagios plugins source code. i'm currently use nagios checker, i want to view the source code behind it, i want to see how the codes behind the nagios checker work.
[URL]
i've installed subversion using sudo apt-get install subversion, after that followed by this command: svn co [URL] subversion but when i issued the second command i got this:
Code:
...
Setting up subversion (1.6.5dfsg-1ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
[code]...
View 6 Replies
View Related
Jul 28, 2011
I wrote a driver that scans on startup dynamically for available EEPROM's on a certain IC bus. For each EEPROM a new character device is created in /dev like:
/dev/bus0eepromA0
/dev/bus0eepromA1
/dev/bus0eepromA2 ...
[code]....
View 1 Replies
View Related
Aug 2, 2010
I am trying to get the application NagVis to run on our Nagios server. The installation appeared to complete successfully, but when I access the web pages, I get the following on-screen error:
[Code]....
View 1 Replies
View Related
Mar 30, 2011
I need to rewrite the selenium java code into its equivalent php code.
View 5 Replies
View Related
Nov 27, 2010
I'm wondering about this kind of GUI Interfaces like Slackware setup program
What is called ? Also, Can it be used with Python?
View 6 Replies
View Related
Jan 6, 2010
I have our own C written program code which is communicating with a third party C++ written program code to run a moving device. We have successfully communicated with the third party code with wrapper functions. (Thanks to member in LQ that helped me solved this.)Now, we tried to run some functions to move the device. I think it is better for me to attach the related code first. pro.c (The source code we used to run the device)
Code:
#include<stdio.h>
#include "wrapper.h"
[code]....
View 7 Replies
View Related
Jul 13, 2010
I have written a code in which i have used vectors:
vector< vector<double> > arr;
arr.resize(x,vector<double>(x,0));
x is a variable which is taken from a very beg text file > 64MB
first line of my code is
cout<<"
Wait Running...";
my code takes text file as an input, takes its data and generates an output text file....
Code is running fine for small data tried till x= 10
but while trying to run with large data ie x = 5000000 approx it is giving error
Even the first line of the code is not displayed. NOTE: variable is declared global but its size is defined in main.
The error that i am getting after approx 2-3 minutes is:
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Wait Running...Aborted (core dumped)
View 6 Replies
View Related
Feb 14, 2011
What is the Terminology called of a Binary using a file that is not part of it's self? An example would be when a browser uses a HTML file for it's interface. The binaries code has to know how to find it and so on. I imagine that the applications binary uses a system call and that another application takes over.
View 1 Replies
View Related
Oct 11, 2010
I thought about this a while ago when reading through a Python tutorial and I googled some and couldn't find an answer. Now I want to know it for Ruby, also, and it's more important now because I want to invoke Ruby with -w.
How can you use:
Code:
with a -w option to ruby, like:
Code:
This doesn't work and I can't find an explanation of how to do it.
Code:
View 1 Replies
View Related
Dec 18, 2008
I have installed some applications thru 'apt-get' command. I found that it is much different with Windows where normally the installed program is in one folder while in Ubuntu, the program will located in many folders. I wonder whether I can get the full source code for the application I have installed thru 'apt-get'? Where to locate them?
This is because I have faced problem in using the Kphone installed thru 'apt-get' and installed thru compilation of source code from tarball. I get quite bad voice quality when I called using Kphone SI 'sudo make install' from the source tarball downloaded from sourceforge.net. However, good voice quality is obtained when I used Kphone installed thru 'sudo apt-get' command. Is that the source code different or is that because of Kphone is differs with Kphone SI?
View 11 Replies
View Related
Jun 21, 2010
I am new to centOS and one of my application need linux source code as such I am failed to find suitable link for that. Any suitable link for Linux kernel version: 2.6.18-194.el5.
View 2 Replies
View Related
Mar 18, 2010
Script programming question for the experts. I have written a bash script that works fine if I execute from the shell interactively. However, once I schedule it to be executed via cron, it just wouldn't work. I believe this has to do with cron running in a different environment than the one I am in when I putty in.
The bash shell script does refer to environment variables in the .cshrc file. I guess these aren't available to the cron? How can I load them into the script if I want them to be available to the cron locally within the script?
View 1 Replies
View Related
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
Dec 11, 2009
I got a trouble about communicating between host application and HID device (with a button) in a embedded Debian Linux OS. The both of them are working fine on ubuntu. When I insert my HID device on my embedded debian linux Unit, following message show up:
# usb 1-1: new low speed USB device using ehci_marvell and address 3
usb 1-1: configuration #1 chosen from 1 choice
HID device not claimed by input or hiddev
and in /dev folder some usbdev files are generated:
usbdev1.3
usbdev1.3_ep00
usbdev1.3_ep02
usbdev1.3_ep81
usbdev1.3_ep83
When I run my host app, and press the button, no any data transferring happened (check with CATc captured data). I know the host app run fine on uBuntu, because I know how to open /dev/usb/hiddev0 in my code. I don't know how to open this kind of file in debian linux. I tried use each files above, the button still doesn't work. Can anyone help me to point out if it is HID driver issue or coding issue.
View 1 Replies
View Related
Mar 20, 2010
what are the series of files that are called when a user make copy operation from usb mass storage to hard disk?i have reached the code of the usb mass storage in linux kernel 2.6.33 and i want the exact code the make the copy how can i do that?
View 2 Replies
View Related
Jul 15, 2011
So we monitor all of our disk space, but only get pages for critical. What we would like to do is have one email sent to our team every month with all the "Warnings" for our disk. I have been searching and haven't found a way to do this. Any suggestions?
View 1 Replies
View Related
Mar 2, 2011
I am using Debian linux. I have 100 timers running. If a timer expired which will generate a signal and it was mapped to a same function handler. All the timers are mapped to one function handler. The problem is if the timer expires one at a time, the function handler called at a time. But if the 2 timers expires at a time, the function handler is called one time only instead 2 times. Is it possible to invoke the function handler as many times based on timer expirary happens simultaneoulsy?
View 14 Replies
View Related
Jul 7, 2009
I wanna write a file in kernel space but from my searching I can to know that instead of writeing file in kernel space ,I can write data to user space by copy_to_user space.
But link is missing ...I dont know how will my user space will access kernel space means my function in kernel space which will do copy_to_user /....How my user space function will call my kernel level function ..
Can any one of you provide me with some example file which are doing this .I know every char driver is using it ...but i could not trace back how user level function is accessing it ...i m confused between user space and kernel space.
View 2 Replies
View Related
Mar 26, 2010
Lets say i have an empty DVD (4,7G)
I write on it data 2G with k3b.
Is it possible later to add some more files in this DVD with k3b ?
View 3 Replies
View Related
Jun 6, 2011
I am working on a project with a lot of vector math and I'd like to find a way to speed it up.eading about SSE, but I've found no explanation on how to actually use it in code (was looking for some kind of hello-world example, complete with compilation instructions).Does the gcc compiler automatically make use of SSE, if you add the -sse(2,3) option on the command line? Or are their specific functions/libraries you need to call?
View 12 Replies
View Related
Sep 4, 2011
I wrote a few minutes ago open Suse 11.04 instead 11.4, I got confused with Ubuntu's last version.
View 2 Replies
View Related