Device status unknown in the cacti application - cacti

I am trying to plot the graphs in cacti, but I am getting status as 'unknown' under device section , I dont know how to even debug this.What is the reason for this?

see
http://docs.cacti.net/faq
Status Unknown
If the status of your device remains 'Unknown', ensure that you have added graphs to that device.
If there are no graphs, Cacti will not poll the device, and the status will remain 'Unknown'.
make sure you add cron with the following command.
php cacti/poller.php

I had same issue. Mistake I was doing was-
While creating Graphs, I selected the interface and clicked on create graph directly without noticing option " Select a graph type".
Here you need to select "In/Out Bits" before clicking on create.
The new version of cacti is showing "Cisco LRE Stats" as the default option which is creating all this mess.
True - If there are no graphs, Cacti will not poll the device.

Related

How to simulate the status bar in Codename one?

I am currently trying to get a local notification to work on an example app. I was following the simple guide here and just copied its code to see it working:
https://github.com/codenameone/codenameone-demos/blob/master/LocalNotificationTest/src/com/codename1/tests/localnotifications/LocalNotificationTest.java
However, in the simulation, I cannot see any changes in the status bar. Is the status bar even simulated or just a static image? Do I have to build the app and send it to an actual device every time I want to test it? That would not only be tedious but also crunch on the available monthly builds.
Is there a setting in the simulator to activate this that I missed?
Thanks and best regards
Local notifications happen in the background which isn't supported by the simulator so this is something you will only see on the device. You can simulate the minimizing of the app (pause/resume) but the Codename One simulator is not a full mobile OS simulator.

Passbook is not opening in Safari

I'm currently developing backend for pass generation. I have created sample pass using all guidelines but it doesn't open up on Iphone. Is there any way to debug a problem, cause right now Safari is just showing message - "Safari could not download file".
Here is a link with sample pass:
"https://distributor-test.azurewebsites.net/api/v1/pass"
Thanks for any advance!
According to the errors logged in the console, you have more than one field with an ID of "front-primary". Each field must have a unique ID. Fix the names of the field and try again.
If you have a Mac, you can open the output from an iPhone using XCode or the syslog. This helps pinpoint issues with passes.

how to live view in Titanium?

My team have been developing Titanium in the past few months, and now we are facing a problem: when we make changes on the View code(change its font, its background or size) , it takes a long time ( about 1 minute ) until we see the result displayed on device. that is really a big waste of time.
I saw the TiShadow already, it's great, but it only support js code( like Alloy.createTableList... ), doesn't support the Alloy XML( I mean you can't see your changes displayed on the screen once change the .xml or .tss file )
I also checked 'forgedUI', but unfortunately it's just an UI design tool, and the bad news is its official website is shut down.
To reduce its compile time, I bought SSD disk for my team. The compile time indeed reduced from 60s to 40s. but it's still too long.
Is there any good tool that could make us debug the titanium faster? or how to reduce Titanium's compile time?
I am able to find following tools which are available for Titanium to reduce the time taken to test the application in device/simulator.
TiShadow : Most widely used and open source.
Rapiddev : Currently only for ios but under rapid development.
LiveView : Available with enterprise version of Titanium.
P.S : With TiShadow I was able to test changes made in tss/views along with controllers. Do monitor the terminal( from where tishadow command is triggered ) to see progress in re-compilation of code.
UPDATED at 2019-04-11: don't use titanium, use React Native or Flutter.
I was wrong.
tishadow allow you to "live view" your Alloy XML/style file when changes.
just use:
$ ti build --platform android --target device --shadow
nothing else to do, you will see your app will launch , and every code you change, your app will reload automatically.
no more "$ tishadow server", no more "$ tishadow apply" ....
really great !

Unable to add Game Center achievement and leaderboard: Lightbox Save Failure: Failed to takeValuesFromRequest => null

After adding all information (Language, Title, Pre-earned Description, Earned Description, Image) for a Language in iTunes connect for an achievement, and clicking Save, I get this message in a popup
Lightbox Save Failure: Failed to takeValuesFromRequest => null
I am unable to save the Language. Thus unable to add any achievement at all since they need Language.
Anyone got the same issue? Related to the current iOS Dev Center downage?
Thinking this is a browser issue (iTunes connect sometimes just doesn't work well outside of Safari), I also tried Safari as well as the initial Google Chrome. No luck. Same error.
Back this morning, I successfully added a new Leaderboard. I guess the bug might be fixed now.

Deciding if external display is activated or not

I'd like to be able to decide if the display on the computer where my app is running is currently active or shutdown. I need this for a media center software so I know if I need to activate the display before starting the playback of movies.
So far I tried to use this code:
CGError err0 = CGDisplayNoErr;
CGError err1 = CGDisplayNoErr;
CGDisplayCount dspCount = 0;
err0 = CGGetActiveDisplayList(0, NULL, &dspCount);
CGDisplayCount onlineCount = 0;
err1 = CGGetOnlineDisplayList(0, NULL, &onlineCount);
// Error handling omitted for clarity ;)
NSLog(#"Found %d active and %d online displays", dspCount, onlineCount);
But this code out puts always the same. When I try it on my mac mini, with the display turned off I get the following output:
Found 1 active and 1 online displays
The display is not in a standby mode as I disconnect the power to it when it is not in use. I also tried this on my mac book, which has an internal and an external display. And there it returns:
Found 2 active and 2 online displays
Here it is the same, I deactivate the display and disconnect the power to it but is still returns as beeing active.
The display on the mac mini is a tv-set connected with a dvi to hdmi cable. The display on the mac book is connected with a dvi to vga connector.
I hope somebody has an idea how to solve this. Thanks in advance.
It sounds like you want to know whether any connected display is asleep or not?
Have you looked at the CGDisplayIsAsleep function?
http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/Reference/reference.html#//apple_ref/c/func/CGDisplayIsAsleep
To close this open question. My final findings were that as soon as an external monitor is connected to the computer the given methods will return that it is there. And this also works when the monitor is powered of and not connected to the power source.
So as far as I can tell there is no way to find out what I would like to know :(
As I control the event which activates the monitor from my application (in my case its a TV which I control with a usb to ir box) I can get the state of the monitor in this way, but this only has the downside that when the application is crashing, I will lose the state. But thats the best solution I could find.